Advertisement
P22DX

CTF

Dec 9th, 2019
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. // UwU
  3. include "flag.php";
  4. class Account{
  5.     var $input;
  6.     var $secret;
  7. }
  8. if(isset($_GET['input'])){
  9.     $obj = unserialize($_GET['input']);
  10.  
  11.     if($obj) {
  12.         $obj->secret = rand(500000,999999);
  13.         if($obj->input === $obj->secret) {
  14.             echo FLAG;
  15.         }
  16.     }
  17. }
  18. show_source(__FILE__);  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement