ctf-writeups

Writeups for CTFs solved by DarkKnight

View on GitHub

CyberTalents

Web Security

Challenge Name:

Easy Message

Challenge Description

I Have a Message for you.

Link: http://35.240.62.111/easymessage/

Solution

$user = $_POST[‘user’]; $pass = $_POST[‘pass’];

include(‘db.php’);

if ($user == base64_decode(‘Q3liZXItVGFsZW50’) && $pass == base64_decode(‘Q3liZXItVGFsZW50’) { success_login(); } else { failed_login(); }

?>

* Decode this string with base64 command to know the username and password
```sh
echo 'Q3liZXItVGFsZW50' | base64 -d

..-. .-.. .- –. -.–. .. -….- -.- -. —– .– -….- -.– —– ..- -….- .- .-. …– -….- – —– .-. … …– -.–.- ```

The Flag

15716a249064f7e9684a816dcdb05282