
PHP代码审计(偏基础的)
giunwr
业余爱好
展开
-
绕过过滤的空白字符
<?php $info = ""; $req = [];$flag="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; ini_set("display_error", false); //为一个配置选项设置值error_reporting(0); //关闭所有PHP错误报告 if(!isset($_GET['number'])){ head...原创 2019-04-01 19:43:20 · 2761 阅读 · 0 评论 -
多重加密
<?php include 'common.php'; $requset = array_merge($_GET, $_POST, $_SESSION, $_COOKIE); //把一个或多个数组合并为一个数组 class db { public $where; function __wakeup() {...原创 2019-04-09 20:42:10 · 1435 阅读 · 0 评论 -
SQL注入_WITH ROLLUP绕过
题目地址http://ctf5.shiyanbar.com/web/pcat/index.php<?php error_reporting(0); if (!isset($_POST['uname']) || !isset($_POST['pwd'])) { echo '<form action="" method="post">'....原创 2019-04-09 21:44:19 · 1114 阅读 · 0 评论 -
ereg正则截断
<?php $flag = "flag";if (isset ($_GET['password'])) { if (ereg ("^[a-zA-Z0-9]+$", $_GET['password']) === FALSE) { echo '<p>You password must be alphanumeric</p>'; } els...原创 2019-04-16 21:12:48 · 499 阅读 · 0 评论 -
shal()函数绕过和session验证绕过
一、shal()函数绕过<?php$flag = "flag";if (isset($_GET['name']) and isset($_GET['password'])) { if ($_GET['name'] == $_GET['password']) echo '<p>Your password can not be your name!...原创 2019-04-18 14:53:25 · 3078 阅读 · 1 评论 -
密码MD5比较绕过和urldecode二次绕过
<?php//配置数据库if($_POST[user] && $_POST[pass]) { $conn = mysql_connect("********, "*****", "********"); mysql_select_db("phpformysql") or die("Could not select database"); if (...原创 2019-04-18 15:29:24 · 1267 阅读 · 0 评论 -
MD5加密相等绕过和intval函数四舍五入
一、MD5加密相等绕过<?php$md51 = md5('QNKCDZO');$a = @$_GET['a'];$md52 = @md5($a);if(isset($a)){if ($a != 'QNKCDZO' && $md51 == $md52) { echo "nctf{*****************}";} else { echo ...原创 2019-04-19 21:03:59 · 1747 阅读 · 0 评论 -
strpos数组绕过NULL、密码md5比较绕过、MD5函数===绕过
<?php$flag = "flag"; if (isset ($_GET['nctf'])) { if (@ereg ("^[1-9]+$", $_GET['nctf']) === FALSE) echo '必须输入数字才行'; else if (strpos ($_GET['nctf'], '#biubiubiu') ...原创 2019-05-06 20:26:44 · 3590 阅读 · 0 评论