You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gawk already can talk to a network without assistance from external utilities by utilizing special type of files.
From man:
The following special filenames may be used with the |& coprocess operator for creating TCP/IP network connections:
/inet/tcp/lport/rhost/rport
/inet4/tcp/lport/rhost/rport
/inet6/tcp/lport/rhost/rport
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 servers bash, gawk and so on has 700 permission and root: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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: