Commit ca9482b4 authored by bobloblaw's avatar bobloblaw
Browse files

Updates port_forwarding_and_tunneling.md

Auto commit by GitBook Editor
parent 512d089d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@
    * [Online password cracking](online_password_cracking.md)
    * [Pass the hash - reusing hashes](pass_the_hash_-_reusing_hashes.md)
* [Pivoting - Port forwarding - Tunneling](port_forwarding_and_tunneling.md)
    * [Pivoting](pivoting.md)
* [Bypassing antivirus](bypassing_antivirus.md)
* [Binary Exploitation](binary_exploitation2.md)
    * [Tools](tools.md)
+15 −0
Original line number Diff line number Diff line
@@ -174,6 +174,21 @@ Now facebook will be available on address localhost:8080.
ssh -L 8080:www.facebook.com:80 localhost
```

You can also forward ports like this:

```

ssh username@<remote-machine> -L localport:target-ip:target-port

ssh sean@192.168.1.111 -L 10000:192.168.1.222:10000
```

Now this port will be available on your localhost.
So you go to:

```
nc localhost:10000
```

### Remote port forwarding