SmpleKye is an information security challenge in the Web category, and was presented to participants of KAF CTF 2019
No story
Basic POW (Bruteforcing hashes)
<?php
const LEN = 7;
$to = "00";
r($to);
function r($to){
foreach(str_split("01234567890abcdef") as $c){
if(strlen($to) === LEN - 1){
if(strpos(hash("sha256", $to . $c), $to . $c) !== false)
echo $to . $c . "\n";
}else{
r($to . $c);
}
}
}
Clone the repository, then type the following command to build the container:
docker build . -t smplekye
To run the challenge, execute the following command:
docker run --rm -d -p 1080:80 smplekye
You may now access the challenge interface through your browser: http://localhost:1080
Flag is:
KAF{ju57_4_51mpl3_pr00F_0F_w0Rk}