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

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47)
+----- Thread: (Kali Linux Tutorial) How to scan for open ports with built-in Metasploit Scanner (/showthread.php?tid=5987090)



(Kali Linux Tutorial) How to scan for open ports with built-in Metasploit Scanner - Sigma - Jul 6, 2019

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]


RE: (Kali Linux Tutorial) How to scan for open ports with built-in Metasploit Scanner - VoIPv2 - Jul 6, 2019

Any special reason why you choose metasploit for scanning? Nmap pretty much is the goto in my book.


RE: (Kali Linux Tutorial) How to scan for open ports with built-in Metasploit Scanner - moveddisk - Jul 6, 2019

Its very helpful for me thank u


RE: (Kali Linux Tutorial) How to scan for open ports with built-in Metasploit Scanner - Sigma - Jul 7, 2019

(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.


RE: (Kali Linux Tutorial) How to scan for open ports with built-in Metasploit Scanner - Dimeblade - Aug 10, 2020

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