Metasploit Basic Command Tutorial
Metasploit Basic Command Tutorial
Msfconsole
Help
Help: it will show you the basic commands of Metasploit.
Show payloads
Show payloads: it will show you all the available payloads on Metasploit.
Show exploits
Show exploits: it will show you all exploits in Metasploit.
msf> use | to use a exploit or payload |
msf exploit (name)> set payload | To add specified payload |
msf exploit (name)> set rhost | To add victim ip address to specified exploit# |
msf exploit (name)> set lhost | To add attacker ip address to specified exploit# |
msf exploit (name)> unset rhost | To remove rhost value |
msf exploit (name)> unset lhost | To remove lhost value |
msf exploit (name)> setg rhost | To add victim ip address globally |
msf exploit (name)> setg lhost | To add localhost(attacker) ip address globally |
msf exploit (name)> sessions -l -v | To see list of sessions |
Comments
Post a Comment