From aaeacb8965a8269065f9ddc7ae46ef66c7d5bda0 Mon Sep 17 00:00:00 2001 From: trimstray Date: Wed, 18 Jul 2018 12:54:35 +0200 Subject: [PATCH] added strace to one-liners - signed-off-by: trimstray --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index efc2bca..981b901 100644 --- a/README.md +++ b/README.md @@ -331,6 +331,7 @@ Linux Security Expert - trainings, howtos, checklists, security tools an * [fuser](#tool-fuser) * [ps](#tool-ps) * [top](#tool-top) + * [strace](#tool-strace) * [kill](#tool-kill) * [find](#tool-find) * [diff](#tool-diff) @@ -624,6 +625,22 @@ top -p $(pgrep -d , ) ___ +##### Tool: [strace](https://en.wikipedia.org/wiki/Strace) + +###### Track the open request of a network port + +```bash +strace -f -e trace=bind nc -l 80 +``` + +###### Track the open request of a network port (show TCP/UDP) + +```bash +strace -f -e trace=network nc -lu 80 +``` + +___ + ##### Tool: [kill](https://en.wikipedia.org/wiki/Kill_(command)) ###### Kill a process running on port