Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

(Kali Linux Tutorial) How to scan for open ports with built-in Metasploit Scanner

There are multiple scanners you can use for open ports using Metasploit. But for this tutorial, we will just be using the TCP scanner.

*You will need to be running Kali Linux in order to complete this tutorial. Or have an installation of the framework.*

Step 1: Open up a terminal and type in "msfconsole" to get the Metasploit framework started.
[Image: sj7OgiX.png]

Step 2: If you type in "Search Scanner" you will be able to see all the scanners you are able to use within Metasploit. We are going to be using something called "auxiliary/scanner/portscan/tcp". If you keep scrolling you will eventually find it, or you can add some keywords to make it easier to find.
[Image: zmYUWZD.png]

Step 3: To use this scanner, type "use" followed by the exact scanner "auxiliary/scanner/portscan/tcp"
[Image: l987TaA.png]

Step 4: We will then type "show options" so we know what tweaks we need to make to scan our selected target.
[Image: jRXY03z.png]

Step 5: As you can see, there are multiple different options to choose from, for now, we are going to change the target option (RHOST) to our specific target IP address. To do this we type "set RHOST" followed by the targets IP address.
[Image: p4EMXS5.png]

Step 6: Next we will set the Ports you would like to scan, so just like before we will type "set" followed by the port numbers.
[Image: rrPoALj.png]

Final step: Type "run" to start the scan!
[Image: X8qnuPc.png]
[Image: qMQpt9c.gif]
Any special reason why you choose metasploit for scanning? Nmap pretty much is the goto in my book.
Its very helpful for me thank u
(Jul 6, 2019 09:03 PM)VoIPv2 Wrote:  Any special reason why you choose metasploit for scanning? Nmap pretty much is the goto in my book.

No particular reason.
[Image: qMQpt9c.gif]
Nice tut. I beleive you can also set a list of ips to rhost and can use exploits / brutepass smtp mysql etc. Last time got very few resiults because of vps lag. Havent tried long time though
Your threads are really interesting and can use for good use


Possibly Related Threads...
Thread / Author Replies Views Last Post
[The Brotherhood] by HackersMar 16, 2026 08:35 PM 26 1,166 Mar 16, 2026 08:35 PM
Last Post: Stanley
by BuddaFolconJul 3, 2025 02:06 AM 1 327 Jul 3, 2025 02:06 AM
Last Post: svox1
by DevenderApr 12, 2024 08:55 AM 0 130 Apr 12, 2024 08:55 AM
Last Post: Devender