andresriancho / vpc-vpn-pivot

Pivot into private VPC networks using a VPN connection
GNU General Public License v3.0
40 stars 9 forks source link

EC2 instance ID as parameter #2

Open andresriancho opened 4 years ago

andresriancho commented 4 years ago

As a user I might have a lot of privileges and only care about the target instance I want to attack. The tool should be able to figure out the subnet-id, vpc-id, and any other required parameters for the connection.

Instead of calling vpc-vpn-pivot using:

./vpc-vpn-pivot create --subnet-id subnet-...

I would like to call it using:

./vpc-vpn-pivot create --instance-id ...

The tool should use the AWS APIs to find the subnet-id where the EC2 instance lives, and create a VPN connection for me to be able to attack it.