A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.
awesomeawesome-listbsdcheatsheetsdevopsguidelineshackinghackshowtoslinuxlistsmanualsone-linerspentestersresourcessearch-enginessecuritysecurity-researcherssysops
updated and fixed strace one-liners - signed-off-by: trimstray <[email protected]>
trimstray74d49eb29357
diff --git a/README.md b/README.mdindex 6ac2053..3162b80 100644--- a/README.md+++ b/README.md@@ -1438,24 +1438,30 @@ ___##### Tool: [strace](https://en.wikipedia.org/wiki/Strace)-###### Track child process+###### Track with child processes```bashstrace -f -p $(pidof glusterfsd)```-###### Track process after 30 seconds+###### Track process with 30 seconds limit```bashtimeout 30 strace $(< /var/run/zabbix/zabbix_agentd.pid)```-###### Track child process and redirect output to a file+###### Track processes and redirect output to a file```bashps auxw | grep '[a]pache' | awk '{print " -p " $2}' | xargs strace -o /tmp/strace-apache-proc.out```+###### Track with print time spent in each syscall and limit length of print strings++```bash+ ps auxw | grep '[i]init_policy' | awk '{print " -p " $2}' | xargs strace -f -e trace=network -T -s 10000+ ```+###### Track the open request of a network port```bash