BASH: How to check if your router has a door open
December 30, 2015 Leave a comment
You want to check if your router has correctly open a door ?
k dude here we go
the fist get your ip from internet
the second command uses NMAP , sudo apt-get install nmap
it checks a range of port UDP and TCP from 20000 to 20001
brainless should not try this at home 😀 but with UDP THERE IS A PROBLEM WITH THIS CODE SO SEE THE NEXT
ip=$(dig +short myip.opendns.com @resolver1.opendns.com); nmap -p U:20000-20001,T:20000-20001 $ip
USE ROOT USER TO RUN THIS :d
ip=$(dig +short myip.opendns.com @resolver1.opendns.com); nmap -T5 -A -p 20000 -sU $ip