| Blog ,frontpge

When performing a scan, all hackers prefer NMAP, even if there are other tools out there that can do the same. In this article, we will learn to do a scan using Metasploit.

Metasploit is an open-source project that helps us investigate security vulnerabilities. This Framework has much more functionalities but in here, we will only perform a scan.

To follow these steps you must have Metasploit installed, in case you use windows I recommend using Pentesbox that has them installed, and works without a hitch.

We start the Metasploit console with the following command.

msfconsole

Then we do a search of everything related to portscan as shown in the following image.

search portscan

We choose the next assistant and look at the options he has.

use scanner/portscan/tcp

show options
port => 1-1000

rhosts => 192.168.1.1/24

threads => 50

run

Where:

Set ports 1-1000: It will scan the first 1000 ports.
Set rhosts 192.168.1.1/24: Sets the network segment to be mapped.
Set threads 50: Number of threads you will use in the scan.

 

In the previous image, we have the results obtained from the scan.

Related courses of infosecaddicts:

4 for $50

Ultimate Cisco Security Certification Bundle

References: