This is a dockerized website cloning tool utilizing wpull
Build and tag using your prefered name.
docker build -t wpull-website-clone:latest .
Run your image passing your variables.
docker run --rm -it -e WEBSITE=http://testphp.vulnweb.com/login.php -e LEVEL=1 -e WAIT=0.01 -v ${PWD}:/app wpull-website-clone:latest
You need to specify mount volumes for this to properly work and produce the expected results. The user running this container is root
and has to be in order to be able to pull up the web server.
Check Dockerfile
for all variables you can pass inside the docker environment.
You can also instantly run a web server that hosts your cloned website by adding a simple SRV_PORT
parameter to your environment and expose this port.
docker run --rm -it -p 80:80 -e WEBSITE="http://testphp.vulnweb.com/login.php" -e LEVEL=1 -e WAIT=0.01 -e SRV_PORT=80 -e IFACE="eth0" -v ${PWD}:/app wpull-website-clone:latest
Additionally, a sniffing python script logs traffic and any login credentials made to this cloned website.
After running files are created on your filesystem (wherever you specified them). Also when running the web server you need these files to serve your cloned website so you should not delete them. This is not best practice, but it works pretty well and does your trick.
Also cloning websites and tricking users into harvesting traffic or credentials is not legal and you should use only for educational purposes.
This will produce a directory that includes all website specified cloned contents, a log file and a warc zipped file.
If you specify an SRV_PORT
you will also host a simple HTTP web server and serve your cloned content and log traffic and login credentials.