BASH: How to check if your router has a door open


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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: