Hacking I: Scanning networks
In some cases, we need to identify the network ranges of a company ourselves for penetration testing. In the case of a pure black box pentest, we would only know the company name in our role as an attacker. Here we encounter two problems: if we don’t know the IP address range, we cannot estimate the effort needed in advance, and we must ensure that we don’t accidentally penetrate IT systems of third parties when carrying out an attack. For these reasons, the necessary information, such as the network ranges of the IT infrastructure to be examined, is usually provided by the client. In our scenario, network 10.250.53.0/24 of Dubius Payment Ltd. will be subjected to a penetration test.
So far, the task of compromising Dubius Payment Ltd. may have seemed a bit abstract. To shine a light on the situation, we must first identify the accessible servers and services in a network range. To do so, we must have a clear understanding of the unique values of a network connection: a network connection is uniquely identified by its source and target IP address, its source and target port and the transfer protocol.
A service can be addressed both over IPv4 and over IPv6, while we will only focus on the TCP and UDP transfer protocols for Dubius Payment Ltd. Also present are 65536 ports (0 - 65535), where a service might be listening for an incoming connection. It should be noted that opening a port below 1024 requires administrative rights. These values indicate the attack surface of a network and can establish connections to servers and services.
But as you might imagine, under no circumstances will we manually search for existing servers and services, as this task is easy to implement with a program or tool. Instead of sending out the same command thousands of times over to establish connections, we will “only“ use the nmap (network mapper) tool. But nmap offers much more than just automatically identifying servers and services.
Sub Articles
Pentest Training
Take a look at the pentest training chapters and learn penetration testing:
- Preface
- Introduction
- Legal Framework
- Hacking vs. Penetration Testing
- Classification
- Meaningfulness of Penetration Tests
- Penetration Testing Standards
- The Hacking Guide
- Hacking I: Scanning networks
- Hacking II: Password attacks
- Hacking III: Web application attacks
- Hacking IV: Privilege Escalation
- Hacking V: Tunnelling Techniques
- Hacking VI: Vulnerability scanner and penetration testing frameworks
- Demonstration of a Penetration Test
- Risk Assessment of Identified Vulnerabilities
- Structure of Documentation and Reporting
- Insider stories: Tales from Dubius Payment Ltd.
binsec academy GmbH – Advanced Pentest Training Lab
binsec academy GmbH operates the Pentest Training Lab, a highly practical online platform dedicated to real penetration testing. Simulating complex corporate networks and advanced real-world attack scenarios within isolated lab environments, it is engineered to sharpen the skills of aspiring and professional penetration testers. Upon conquering our rigorous, fully practical examination, participants earn the distinguished Binsec Academy Certified Pentest Professional (BACPP) designation — proving their technical capability to methodically uncover and evaluate vulnerabilities in modern IT infrastructures.
Explore the Pentest Training Lab
binsec GmbH – Experts in Penetration Testing
As the operative pentesting core of the binsec group, binsec GmbH has provided high-end, human-led penetration testing since 2013. Rejecting automated scans, our permanently employed, certified senior pentest experts deliver manual deep-dive assessments of web applications, APIs, mobile apps, complex network infrastructures, cloud environments, and advanced red team simulations. Specializing in high-regulation sectors like Payment, Banking, and Healthcare, we provide clear risk evaluations and actionable reports to effectively assess your business-critical systems.
Get Manual Expert Penetration Testing Services