In this page we gonna show you how to scan ports with MSF.
[LETS MAKE IT WORK]
1. Open terminal and type:
assault@kalivm:~$ sudo msfconsole
*Inside MSF type 1 by 1*
msf > use auxiliary/scanner/portscan/tcp
msf auxiliary (tcp) > show options
*And we will get this output*
As you can see up here, this is the default settings of the port scan module, so let’s change them to our settings.
msf auxiliary (tcp) > set RHOSTS 192.168.50.7
RHOSTS => 192.168.50.7
msf auxiliary (tcp) > set PORTS 1-500
PORTS => 1-500
msf auxiliary (tcp) > set THREADS 50
THREADS => 50
*Ok, let’s understand what we did up here*
RHOSTS value = we can choose the target that we want.
PORTS value = We can choose the ports range (which is a good plus).
THREAD value = basically, thread mean how tasks we want to execute in parallel.
msf auxiliary (tcp) > show option
*As you can see now, the values are OK, so what we left to do is*
msf auxiliary (tcp) > run
*Now, we just need to wait patiently till we will get some results*
Here is an example by Gamer Forever