Lab 2.1: Port Scanning 1
Summary:
During this lab we worked on understanding nmap more and mad a custom script to take in a list of hosts and ports then use /dev/tcp/$host/$port to see if the ports are open.
Port Scanner Program:
Code:
Sources:
https://stackoverflow.com/questions/48294077/regex-to-validate-the-numbers-between-0-to-65535
https://stackoverflow.com/questions/6482377/check-existence-of-input-argument-in-a-bash-shell-script
https://stackoverflow.com/questions/13777387/check-for-ip-validity
Notes:
There is a difference when running nmap commands with sudo and without sudo:
Last updated