Information collection commands for Metasploit notes

Source: Internet
Author: User
Tags postgres database

Book reference: Metasploit penetration Guide

Nmap: Use Ubuntu automatically prompt to install command when not used

Usage:

NMAP-SS-PN 192.168.1.0

-SS: Performing a Stealth TCP scan

-PN: Do not use the ping command to pre-determine whether the host is alive, but the default is that all hosts are alive

Metasploit using the PostgreSQL database:

Reference: http://www.cnblogs.com/zheh/p/4024723.html

MSF > Db_connect postgres: Your database password @127.0.0.1/msfbook

Postgres Database default name

To view the database connection status:

MSF > Db_status

Import Nmap output results into the Metasploit

Namp-pn-ss-a-ox XML file name 192.168.1.1

Import the file into the database with Db_import after XML generation

MSF > Db_import XML file name

MSF > hosts view information such as IP in the database

Information collection commands for Metasploit notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.