Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to collect Metasploit information

Shulou Source: shulou.com Published: 2022-06-01 15:23:19 10月02日 Update

What this article shares with you is about how to collect Metasploit information. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

I. MSF updates

1 、 apt-get update

2 、 apt-get install metasploit-framework

Second, sensitive catalogue collection

1. Find the dir_scanner module

Search dir_scanner type:auxiliary

2. Select the auxiliary module used for scanning

Use 0 or use auxiliary/scanner/http/dir_scanner

3. View the parameters that need to be set

Show options

4. Set the target host

Set RHOSTS 192.168.1.

5. Set the port

Set RPORT 8003

6. Set the number of threads

Set THREADS 50

7. Run, run

8. Scan results

9. Dictionary directory, you can add your own dictionary

Third, host discovery

1. Available scanning modules

Auxiliary/scanner/discovery/arp_sweep

Auxiliary/scanner/discovery/empty_udp

Auxiliary/scanner/discovery/ipv6_multicast_ping

Auxiliary/scanner/discovery/ipv6_neighbor

Auxiliary/scanner/discovery/ipv6_neighbor_router_advertisement

Auxiliary/scanner/discovery/udp_probe

Auxiliary/scanner/discovery/udp_sweep

2. Take arp scanning as an example to view the options you need to set.

Show options

3. Set the host range

Set rhosts 192.168.1.0/24

4. Set the number of threads during scanning

Set threads 50

5. Run run

IV. Port scanning

1. Available modules

Auxiliary/scanner/portscan/ack

Auxiliary/scanner/portscan/ftpbounce

Auxiliary/scanner/portscan/syn

Auxiliary/scanner/portscan/tcp

Auxiliary/scanner/portscan/xmas

2. Take syn scanning as an example to view the parameters to be set.

3. Set the target ip

Set rhosts 192.168.1.135

4. Set the number of threads

Set threads 50

5. Run, run

5. Obtain service details

Nmap-sS-Pn 192.168.1.135-sV

6. Find hosts that specifically open a certain service

1. Hosts that open telnet services

Select module: use auxiliary/scanner/telnet/telnet_version

Set the ip range: set rhosts 192.168.1.0 take 24

Setting thread: set threads 100

Run: run

2. Hosts that open SSH services

Select module: use auxiliary/scanner/ssh/ssh_version

Set the ip range: set rhosts 192.168.1.0 take 24

Setting thread: set threads 100

Run: run

The above is how to collect Metasploit information. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Hosts modules threads runs services information scope openness selection parameters dictionaries more directories goals knowledge ports articles utility that is work will Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Microsoft OPPO Reno NVidia Huawei