标签:图片 code echo ctf die fetch soc request http
111
<?php require("conf/config.php"); if (isset($_REQUEST[‘id‘])) { $id = $_REQUEST[‘id‘]; if (preg_match("/\d.+?\D.+/is",$id)){ die("Attack detected"); } $query = "SELECT text from UserInfo WHERE id = " . $id. ";"; $results = $conn->query($query); echo "学号:" . $id . ",成绩为: ".$results->fetch_assoc()[‘text‘]; } ?>
标签:图片 code echo ctf die fetch soc request http
原文地址:https://www.cnblogs.com/jasy/p/13246936.html