Port Scanning

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

Learn Metasploit - DDos: http://linuxphilosophy.com/rtfm/metasploit/ddos/

*Inside MSF type 1 by 1*

msf > use auxiliary/scanner/portscan/tcp
msf auxiliary (tcp) > show options

*And we will get this output*

port_s1

As you can see up here, this is the default settings of the port scan module, so let’s change them to our settings.

*Let’s continue*

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

*Like this*

port_s2

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

 

*Let’s continue*

msf auxiliary (tcp) > show option

port_s3

*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*

ENJOY 🙂

 

Here is an example by Gamer Forever