ss – man 1st

dpkg -L iproute2 –n, –numeric don’t resolve service names -r, –resolve : resolve host hostnames. -l, –listening display listening sockets…

Continue Reading →

Posted in: net

wireshark

“hp’s MAC address” eth.addr_resolved contains hp “source MAC address of hp” eth.src_resolved contains hp “destination MAC address of hp” eth.dst_resolved…

Continue Reading →

Posted in: net

netcat

Cheat sheet: https://www.sans.org/security-resources/sec560/netcat_cheat_sheet_v1.pdf Port scanner: nc -v -w 1 myhost -z 1-49151, scan myhost port 1-49151, 1 sec timeout for…

Continue Reading →

RegEx Cheatsheet

https://www.debuggex.com/cheatsheet/regex/pcre https://remram44.github.io/regex-cheatsheet/regex.html http://whyjoseph.blogspot.com/2011/04/pcre-cheat-sheet-article-201102.html Character classes . any character except newline \w\d\s word, digit, whitespace \W\D\S not word, digit, whitespace [abc]…

Continue Reading →