摘要: <?php highlight_file(__FILE__); $key1 = 0; $key2 = 0; $a = $_GET['a']; $b = $_GET['b']; if(isset($a) && intval($a) > 6000000 && strlen($a) <= 3){ if(i 阅读全文
posted @ 2022-10-07 22:14 hithub 阅读(473) 评论(0) 推荐(0) 编辑
摘要: <?php //php5.5.9 $stuff = $_POST["stuff"]; $array = ['admin', 'user']; if($stuff $array && $stuff[0] != 'admin') { $num= $_POST["num"]; if (preg_match 阅读全文
posted @ 2022-10-07 20:00 hithub 阅读(149) 评论(0) 推荐(0) 编辑
摘要: <?php echo 1; ?> 正常写法 <? echo 1; ?> 短标签写法,5.4 起 <?= 'hello'; <? echo 'hello'; <?= phpinfo();?> <% echo 1; %> asp 风格写法 <script language="php"> echo 1; 阅读全文
posted @ 2022-10-07 14:55 hithub 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 看到ini_set('session.serialize_handler', 'php');让我不由自主的想起了session反序列化漏洞的一道题。直接百度会有很多文章这里不多介绍。 那么我们如何找到代码入口将利用代码写入到session文件?想要写入session文件就得想办法在$_SESSION 阅读全文
posted @ 2022-10-07 14:47 hithub 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 题目附件代码如下: # Author: # Achilles # Time: # 2022-9-20 # For: # ctfshow import base64 import pickle, pickletools import uuid from flask import Flask, requ 阅读全文
posted @ 2022-10-07 14:17 hithub 阅读(343) 评论(0) 推荐(1) 编辑
摘要: 首先get传递参数mode=0得到源码 Your mode is the guest!hello,the repairman! <?php error_reporting(0); session_start(); $config['secret'] = Array(); include 'confi 阅读全文
posted @ 2022-10-07 13:45 hithub 阅读(150) 评论(0) 推荐(0) 编辑