5. Network scanning using various tools
1. Scan using Metasploit
service postgresql start
msfconsolecheck whether the db is running or not
db_statusif its not running exit it and then run the commands
msfdb init
service postgresql restartStart the nmap scan from msf terminal
nmap -sS -Pn -A -oX test 192.168.18.0/24After the scan completes, Nmap displays the host information in the target network along with open ports, service and OS enumeration.
Now type the following to import the results.
db_import testhosts //to view all hoststype service or db-services to see running services.
use port scan aux modules
use auxiliary/scanner/portscan/syn
set interface eth0
set PORTS 80
set RHOSTS 192.168.18.110-125
set THREADS 50Other Important Modules
auxiliary/scanner/portscan/tcp
use auxiliary/scanner/smb/smb_versionLast updated
Was this helpful?