OP 19 August, 2019 - 12:34 AM
need a little help for a competition but im bad at phpand webserver shit.
how can i fix this? speed is impportant atm :D
<?php
// Welcome to the next step. You will be exploiting the vulnerable in this authentication script.
// Hosted here also: https://auth.autodidactbots.xyz/challenge
$json = file_get_contents('php://input');
$data = json_decode($json, true);
$password = '14ofQrct98a';
$received_password = $data['password'];
if ($password == $received_password && md5($received_password) !== md5($password)) {
echo 'Access Granted'; //final request must go to server, it will have a secret response.
} else {
echo 'Access Denied';
}
?>
thanks in advance!
how can i fix this? speed is impportant atm :D
<?php
// Welcome to the next step. You will be exploiting the vulnerable in this authentication script.
// Hosted here also: https://auth.autodidactbots.xyz/challenge
$json = file_get_contents('php://input');
$data = json_decode($json, true);
$password = '14ofQrct98a';
$received_password = $data['password'];
if ($password == $received_password && md5($received_password) !== md5($password)) {
echo 'Access Granted'; //final request must go to server, it will have a secret response.
} else {
echo 'Access Denied';
}
?>
thanks in advance!