is there a way to bypass !== or a way to know what is in $slat? or the solution is different in the below CTF?
Note: we don't know what is $salt so I guess MD5 collision is not possible.
$second = $_GET['second_flag'];
$third = $_GET['sechalf_flag'];
if(isset($_GET['second_flag']) && isset($_GET['sechalf_flag'])){
if($second !== $third){
if(hash('md5', $salt . $second) == hash('md5', $salt . $third)){
echo $flag2;
}
else{
die();
}
}
else{
die();
}
}
else{
die();
}