Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'flag.php';
- if (!empty($_SERVER['QUERY_STRING'])) {
- $query = $_SERVER['QUERY_STRING'];
- $res = parse_str($query);
- if (!empty($res['action'])){
- $action = $res['action'];
- }
- }
- if ($action === 'auth') {
- if (!empty($res['user'])) {
- $user = $res['user'];
- }
- if (!empty($res['pass'])) {
- $pass = $res['pass'];
- }
- if (!empty($user) && !empty($pass)) {
- $hashed_password = hash('md5', $user.$pass);
- }
- if (!empty($hashed_password) && $hashed_password === 'c019f6e5cd8aa0bbbcc6e994a54c757e') {
- echo $flag;
- }
- else {
- echo 'fail :(';
- }
- }
- else {
- highlight_file(__FILE__);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement