Advertisement
Gordinho434

http network scan

Mar 14th, 2022
1,171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. echo "
  3.    __    __  __                      __                      __                          
  4.   / /_  / /_/ /_____     ____  ___  / /__      ______  _____/ /__   ______________ _____
  5.  / __ \/ __/ __/ __ \   / __ \/ _ \/ __/ | /| / / __ \/ ___/ //_/  / ___/ ___/ __ `/ __ \
  6. / / / / /_/ /_/ /_/ /  / / / /  __/ /_ | |/ |/ / /_/ / /  / ,<    (__  ) /__/ /_/ / / / /
  7. /_/ /_/\__/\__/ .___/  /_/ /_/\___/\__/ |__/|__/\____/_/  /_/|_|  /____/\___/\__,_/_/ /_/
  8.             /_/                                                                          
  9. By your mom                                                                                                                                    
  10. "
  11. $port = (80)
  12. $range = (1..254)
  13. $ErrorActionPreference= ‘silentlycontinue’
  14. Foreach ($add in $range){
  15. $ip = "192.168.0."+$add
  16. echo "scanning $ip"
  17. % { echo ((new-object Net.Sockets.TcpClient).Connect($ip,80)) "Port 80 is open in $ip -----------" } 2>$null
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement