TLDRBins TLDRBins / Nmap


Usage Tips:

  • Click on a keyword to enable inline editing.
  • Click inside a code block to copy (excludes comments).
  • Use the button to view examples.
  • Click outside to collapse all examples.

Nmap Scan

target=<TARGET>
Sample Output: TO-DO
nmap -p- --min-rate 10000 -oA ./nmap-alltcp $target
Sample Output: TO-DO
ports=$(cat nmap-alltcp.nmap| grep -Eo "^[0-9]+" | tr '\n' ',' | sed -r 's/,$//')
Sample Output: TO-DO
nmap -p $ports -sCV -oA ./nmap-tcpscripts $target
Sample Output: TO-DO
target=<TARGET>
Sample Output: TO-DO
nmap -sU --min-rate 10000 -oA ./nmap-udp $target
Sample Output: TO-DO
ports=$(cat nmap-udp.nmap| grep -Eo "^[0-9]+" | tr '\n' ',' | sed -r 's/,$//')
Sample Output: TO-DO
nmap -p $ports -sU -sCV -oA ./nmap-udpscripts $target
Sample Output: TO-DO

Update scripts DB

nmap --script-updatedb
Sample Output: TO-DO

Search scripts

# e.g. ftp nmap --script-help ftp*
Sample Output: TO-DO

Scan with a script

# e.g ftp-anon nmap --script=ftp-anon -sV -sC -p 21 <TARGET>
Sample Output: TO-DO

Scan with wildcard

# e.g. smb-vuln* nmap --script=smb-vuln* -sV -sC -p 445 <TARGET>
Sample Output: TO-DO

Run script with args

nmap -p <TARGET_PORT> <TARGET> --script <SCRIPT_NAME> --script-args='<SCRIPT_ARGS>'
Sample Output: TO-DO