Advertisement
smirnov

Pipe masscan output over network

Jan 25th, 2021 (edited)
1,003
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. # Receive (run first)
  2.  
  3. $ (nc -l RECV_SERVER_PORT > result.txt) & disown
  4.  
  5.  
  6. # Send
  7.  
  8. $ (cat <(sudo masscan 0.0.0.0/4 -pT:22,23 --rate 1000000 --open-only --no-reset -oL /dev/stdout | awk '{print $4":"$3}' | sed '1d; $d') 1> /dev/tcp/RECV_SERVER_IP/RECV_SERVER_PORT) &> /dev/null & disown
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement