forked from tjnull/TJ-JPT
-
Notifications
You must be signed in to change notification settings - Fork 7
Ping Sweep_ Nmap method
TheGetch edited this page May 14, 2021
·
2 revisions
Ping Sweep: Nmap method
To perform a ping sweep in nmap, the -sn flag is vital. In its simplest form, any of the following three options could be used for scanning:
nmap -sn x.x.x.x/24
nmap -sn x.x.x.1-254
nmap -sn x.x.x.*
You can also grep out the IPs and cut out fluf:
nmap -sn 172.x.x.x/24 | grep "172" | cut -f 5 -d ' '
A slower, more stealthier approach that utilizes the files containing the IP address split (as seen in the first section above) would be:
nmap --randomize-hosts -sn -T2 -oN nmap_discoveryScan_x.x.x.x-16.txt -iL x.x.x.x_IP_range.split.txt
This will export the results into a text file (-oN). Randomized hosts is optional, depending on the customer and the testing situation. The flag, -oA, can be used in place of -oX or -oN, as -oA will output the results to all output formats.
The results for both command options shown above will be the list of hosts that responded to the ping, thus are up and alive.
_Sidebar
1. Recon
- Ping Sweep: Windows Method
- Ping Sweep: Bash Method
- NetDiscover (ARP Scanning
- Nbtscan
- Ping Sweep: Python Method
- Ping Sweep: PowerShell Method
- Ping Sweep: Nmap method
- HTTP General Notes
- Cross-Site Scripting (XSS)
- SQL Injection (SQLi)
- Deserialization
- Directory Fuzzing
- IDOR Testing
- Intigriti Bug Bounty Tips
- Out of band exploitation
- Server-Side Template Injection (SSTI) Help
- Subdomain Enumeration
- WebFOCUS
- XXE Cheatsheet
- C2 Frameworks
- BloodHound
- Powershell Empire Quick Start Cheatsheet
- Pivoting/Tunneling
- Impacket
- Rubeus
- Mimikatz
- Identifying Hash Types
-
Dumping Hashes
-
- Cracking Hashes Offline
-
- Cracking Hashes Online
-
- Metasploit Meterpreter Migrate Process
- VMWare Port Forwarding
- Veil Simple Usage
- SSH: Generate OpenSSL RSA Key Pair from the Command Line
- Skipfish
- sed & awk: set root password in etc/shadow
- Search for ssh key quickly
- Python Proxy to Burp
- Python Convert .py to .exe
- PuttySCP Commands
- Powershell tidbits
- Password List - Generate quick list
- OS Enumeration - Ping
- Kerberos: Get KDC name and DNS name
- Impacket Scripts Error
- Gcc Compile Windows Executable in Linux
- Find Command: Filter out permission denied errors
- Excel Injection
- Digitally Sign Files (PowerShell Example)
- CSRF Tokens as Cookie Note
- Clear bash
- Burp Intruder Match/Replace
- Apache headers Test
- Windows Trial VMs
- Subdomain Brute Force
- Spawning TTY Shell
- Reserve Shell Cheat Sheet
- Pass-the-Hash
- Common Meterpreter Commands
- gcc & wine
- File Transfers
- Enable RDP - Windows
- DNS Reverse Lookup Brute Force
- Adding Users