滴~

2019-04-26  本文已影响0人  Yix1a
  u«Z:�f {ø"f;m«�64,<?php
  /*
   * https://blog.csdn.net/FengBanLiuYun/article/details/80616607
   * Date: July 4,2018
   */
  error_reporting(E_ALL || ~E_NOTICE);


  header('content-type:text/html;charset=utf-8');
  if(! isset($_GET['jpg']))
        header('Refresh:0;url=./index.php?jpg=TmpZMlF6WXhOamN5UlRaQk56QTJOd  z09');
  $file = hex2bin(base64_decode(base64_decode($_GET['jpg'])));
  echo '<title>'.$_GET['jpg'].'</title>';
  $file = preg_replace("/[^a-zA-Z0-9.]+/","", $file);
  echo $file.'</br>';
  $file = str_replace("config","!", $file);
  echo $file.'</br>';
  $txt = base64_encode(file_get_contents($file));

  echo "<img src='data:image/gif;base64,".$txt."'></img>";
  /*
   * Can you find the flag file?
   *
   */

  ?>
u«Z:�f {ø"f;m«�64,<?php
include('config.php');
$k = 'hello';
extract($_GET);
if(isset($uid))
{
    $content=trim(file_get_contents($k));
    if($uid==$content)
    {
        echo $flag;
    }
    else
    {
        echo'hello';
    }
}

?>
上一篇 下一篇

猜你喜欢

热点阅读