clintmint / secshep-userauth2

Token generator for the User Authentication Challenge 2 in OWASP's Security Shepherd platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Authentication Challenge 2

Token generator for the User Authentication Challenge 2 in OWASP's Security Shepherd platform.

Instructions

Method 1 is easy and method 2 is less easy.

Method 1

Easiest way to run the program is using repl.it.

https://repl.it/@clintmint/userAuth2#Main.java

Method 2

Clone it

cd
git clone https://github.com/clintmint/secshep-userauth2.git
cd secshep-userauth2

Linux Instructions

Download OpenJDK binaries, extract and set PATH. This method should work on all Linux systems. It doesn't require sudo nor a package manager and environment modifications will go away after you close the terminal. Download size is ~190M.

curl -o openjdk-14.0.2_linux-x64_bin.tar.gz https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_linux-x64_bin.tar.gz

tar xf openjdk-14.0.2_linux-x64_bin.tar.gz

export PATH=$HOME/secshep-userauth2/jdk-14.0.2/bin/:$PATH

Verify version is 14

java -version
javac -version

Compile and Run

javac Main.java
java Main

resetPasswordToken

Use the token within 10 minutes.

How to use the token

You'll need to inspect the source code of the challenge (look in the iframe). Send an existing POST request to Burp Repeater. Set URL and POST parameters.

Burp Request/Response

About

Token generator for the User Authentication Challenge 2 in OWASP's Security Shepherd platform.

License:GNU General Public License v3.0


Languages

Language:Java 100.0%