Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Requires aha to output the results into html file.
  4. #nc iplist.txt | aha >file.html
  5. #Make sure to specify the file with the list of urls
  6.  
  7. #Future improvements - Use nmap xml file
  8. #Future improvements - Remove blank outputs
  9.  
  10. if [[ $# -eq 0 ]]; then
  11. echo ' This will send a bunch of As to netcat based on a provided list of ips and ports.'
  12. echo ''
  13. echo '"nccheck iplist.txt | aha >file.html"'
  14. exit
  15. fi
  16.  
  17. #Variables, future improvements - check the file exists
  18.  
  19. list=$1
  20. touch a.txt | echo "aaaaaaaaaaaaaaaaaaaaaaaaaaa" > a.txt
  21.  
  22. while read i; do
  23. echo $i
  24. timeout 10 nc $i < a.txt
  25. echo ""
  26. echo ""
  27. done < $list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement