Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 529 Bytes

challenge-42.md

File metadata and controls

27 lines (25 loc) · 529 Bytes

Challenge

<?php
error_reporting(0);
require_once('flag.php');
if(!isset($_GET['sss'])){
    show_source('index.php');
    die();
}
$sss=$_GET['sss'];
if(strlen($sss)==666){
    if(!preg_match("/[^0-6]/",$sss)){
        eval('$sss='.$sss.';');
        if($sss!=='0x666'){
            if($sss=='0x666'){
                echo $flag;
            }
        }
    }
}
?>

Solutioin

Refference