Advertisement
flycat

nmap

Nov 19th, 2013
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. # Fast scan port 22
  2. nmap -p 22 -n -P0 -sT 10.1.110.0/24|tr "\n" " "|sed "s/Nmap scan report for /\n/g"|grep open
  3.  
  4. # Or
  5. PORT=5432
  6. nmap -n -P0 -sT -p$PORT 10.10.1.0/16 >>postgres-scan.txt
  7. cat postgres-scan.txt |tr "\n" " "|sed "s/postgres/postgres\n/g"|grep open|awk '{print $4}'|sed "s/://g"|tee|xargs -n1 nslookup|grep arpa
  8.  
  9. # Расширенная инфа nmap
  10. nmap -sV -O 10.1.110.13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement