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.


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

threads => 50



Set ports 1-1000: It will scan the first 1000 ports.
Set rhosts 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:




Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.