I find myself every once in a while wanting to checkout a website but not from my IP address.
You might want to do the same. Possibly for anonymous reasons (ie: checking out a competitor),
testing or maybe u want to want a lot more bandwidth that you usually have.
The script will create a brand new base Amazon Linux instance, then install docker, and setup
Google Chrome over SSH using X-forwarding and then load up Chrome with the website of your choosing.
When you close the webpage it will delete the instance. All without any interaction from you.
You may want to modify the script for something other than AWS or just use the container locally
If you are looking at using it for something else checkout the base image here
It is setup to work with Amazon's free tier instances.
Docker Images Structure
KEYNAME=yantisec2 SUBNETID=subnet-d260adb7 REGION=us-west-2
Then just copy "instant-chrome" over to your /usr/bin directory
To run it just type it instant-chrome and the website name like:
Here is a screenshot of Google Chrome running on an AWS ec2 instance.
There are security implications associated with X-Forwarding.
It is advisable to read up on it. This is a good post
As an example you might actually be less secure by running chrome without a sandbox to not have to run the
container as privileged than simply running as privileged with sandbox mode enabled since the machine
you are connecting from might be more important to secure than the server. If that is the case you can
simply remove the --no-sandbox flag on chrome and add a ---privileged on docker.
(Would love to know your thoughts on this. Maybe I should change the default around?)
Either way you should just assume you are being hacked all the time