mirror of
https://github.com/trimstray/the-book-of-secret-knowledge
synced 2024-12-26 09:58:40 +01:00
Merge pull request #114 from r0mflip/remote-shell-nc
Change nc remote shell command to work on wide distros
This commit is contained in:
commit
c31ab1729f
1 changed files with 6 additions and 0 deletions
|
@ -3235,8 +3235,14 @@ client> tar czvfp - /path/to/dir | nc 10.240.30.3 5000
|
|||
###### Launch remote shell
|
||||
|
||||
```bash
|
||||
# 1)
|
||||
server> nc -l 5000 -e /bin/bash
|
||||
client> nc 10.240.30.3 5000
|
||||
|
||||
# 2)
|
||||
server> rm -f /tmp/f; mkfifo /tmp/f
|
||||
server> cat /tmp/f | /bin/bash -i 2>&1 | nc -l 127.0.0.1 5000 > /tmp/f
|
||||
client> nc 10.240.30.3 5000
|
||||
```
|
||||
|
||||
###### Simple file server
|
||||
|
|
Loading…
Reference in a new issue