viper25

Network Tests & Port testing

Nov 5th, 2017 (edited)
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Test-NetConnection machine_hostname -Port 3389
  2. paping.exe machine_hostname -p 22
  3.  
  4. Listen on a port
  5. sudo nc -lv 443
  6.  
  7. Check if port is open on 172.22.235.208
  8.  (>/dev/tcp/172.22.235.208/139) &>/dev/null && echo "Open" || echo "Closed"
Advertisement
Add Comment
Please, Sign In to add comment