写在前面
组委会太逆天了,pwn环境挂了,群里没人理的
web
进入首页有个提示,查看源码后psw.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <?php highlight_file( __FILE__ ); function encode($string,$option='encode'){ if ($option=='encode') {
$lenght=strlen($string);
for ($x=0;$x<$lenght;$x++) {
@$tmp=substr($string,$x,1);
$ord=ord($tmp)+10;
@$result=$result.chr($ord); } echo $result.'</br>';
}elseif($option=='decode'){ } } encode('_Y^kdg_k','decode'); ?>
|
把这段代码放到本地用phpstudy跑起来,最后调用时decode换成encode,跑出来个密码,为ichunqiu,输入到首页即可获得flag
misc
一张图片,直接stegsolve
往右点,有一张二维码
扫下来base32解密即可得到flag。