Created
December 28, 2019 07:50
-
-
Save naveen17797/abe4e0e34e680f583583c6d7a3f2d60a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include "flag.php"; | |
show_source(__FILE__); | |
class user { | |
var $name; | |
var $pass; | |
var $secret; | |
} | |
if (isset($_GET['id'])) { | |
$id = $_GET['id']; | |
$usr = unserialize($id); | |
if ($usr) { | |
$usr->secret = $flag1; | |
if ($usr->name === "admin" && $usr->pass === $usr->secret) { | |
echo "Congratulation! Here is something for you... " . $usr->pass; | |
if (isset($_GET['caption'])) { | |
$cap = $_GET['caption']; | |
if (strlen($cap) > 45) { | |
die("Naaaah, Take rest now"); | |
} | |
if (preg_match("/[A-Za-z0-9]+/", $cap)) { | |
die("Don't mess with the best language!!"); | |
} | |
eval($cap); | |
// Try to execute echoFlag() | |
} else { | |
echo "NVM You are not eligible"; | |
} | |
} else { | |
echo "Oh no... You can't fool me"; | |
} | |
} else { | |
echo "are you trolling?"; | |
} | |
} else { | |
echo "Go and watch some Youthoob Tutorials Kidosss!!"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment