Open CompuRoot opened 1 year ago
Thanks for the comment. I can make a different version of the script for Linux, but at the moment my targets are also BSD systems.
SOCAT is a nice compromise, since it allows the use of standard awk (not gawk) and generic shells (like KSH)
gawk
already can talk to a network without assistance from external utilities by utilizing special type of files.From
man
:So listening loop can be much simpler, as a prove of concept, below is the simplest web server in plain
gawk
BTW, the same can be done with
bash
and that the reason why on production serversbash
,gawk
and so on has 700 permission androot:root
ownership, to make hackers live harder because the first thing they do if they get access to user's accounts, - utilizing network capability of bash/gawk to create reverse shell.