Assignment -
Part I -
1. Run the following NMap commands and note the differences in the output. (If the directory containing the program you want to run is not in your path, either specify the full pathname when running the command, or modify your PATH environment variable).
Tool
|
Command
|
Target Address
|
Type of Scan
|
nmap
|
-sT
|
-F IP-address
|
TCP connect scan
|
nmap
|
-sS
|
-F IP-address
|
SYN scan
|
nmap
|
-sU
|
-F IP-address
|
Scan UPD ports
|
nmap
|
-sF
|
-F IP-address
|
FIN scan
|
nmap
|
-O
|
-F IP-address
|
Determine OS
|
nmap
|
-p22
|
-O IP-address
|
Determine OS on port 22
|
nmap
|
-p 1-
|
-30,40-65535 IP-address
|
Scan given port ranges
|
2. Record your output (Screenshot). Did you get the output you expected?
Part II -
1. Write a simple shell script, which will scan the ports for protocols: FTP, SSH, SMTP, HTTP, for the first 10 hosts in the network 192.168.1.0/24
2. Run the script
3. Take a screenshot.
4. Upload it to BB.