2018-4-9
BugKu-变量1
原题链接
http://120.24.86.145:8004/index1.php
分析
flag In the variable ! <?php
error_reporting(0);
include "flag1.php";
highlight_file(__file__);
if(isset($_GET['args'])){
$args = $_GET['args'];
if(!preg_match("/^\w+$/",$args)){
die("args error!");
}
eval("var_dump($$args);");
}
?>
```
发现一个比较特别的东西,$$args,可变变量!
关于可变变量,其实就是(变量的值)为名的变量:
<div class="se-preview-section-delimiter"></div>
flag
Bugku{YOU_DID_IT_BY_SECOND}
#
flag
Bugku{YOU_DID_IT_BY_SECOND}