mirror of
https://github.com/trimstray/the-book-of-secret-knowledge.git
synced 2024-10-01 01:26:00 -04:00
added strace to one-liners
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
cdae056d00
commit
aaeacb8965
17
README.md
17
README.md
@ -331,6 +331,7 @@ Linux Security Expert</b></a> - trainings, howtos, checklists, security tools an
|
|||||||
* [fuser](#tool-fuser)
|
* [fuser](#tool-fuser)
|
||||||
* [ps](#tool-ps)
|
* [ps](#tool-ps)
|
||||||
* [top](#tool-top)
|
* [top](#tool-top)
|
||||||
|
* [strace](#tool-strace)
|
||||||
* [kill](#tool-kill)
|
* [kill](#tool-kill)
|
||||||
* [find](#tool-find)
|
* [find](#tool-find)
|
||||||
* [diff](#tool-diff)
|
* [diff](#tool-diff)
|
||||||
@ -624,6 +625,22 @@ top -p $(pgrep -d , <str>)
|
|||||||
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
##### 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))
|
##### Tool: [kill](https://en.wikipedia.org/wiki/Kill_(command))
|
||||||
|
|
||||||
###### Kill a process running on port
|
###### Kill a process running on port
|
||||||
|
Loading…
Reference in New Issue
Block a user