Browse Source

added strace to one-liners

- signed-off-by: trimstray <trimstray@gmail.com>
pull/1/merge
trimstray 5 years ago
parent
commit
aaeacb8965
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      README.md

+ 17
- 0
README.md View File

@@ -331,6 +331,7 @@ Linux Security Expert</b></a> - 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 , <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))

###### Kill a process running on port


Loading…
Cancel
Save