当前位置:网站首页>[wp][入门]刷弱类型题目
[wp][入门]刷弱类型题目
2022-07-05 03:33:00 【_小飒】
<?php
include "flag.php";
highlight_file(__FILE__);
error_reporting(0);
$a = $_GET['param1'];
$b = $_POST['param2'];
$c = $_GET['param3'];
$d = $_POST['param4'];
if($a!==$b && md5($a)===md5($b) && $c!==$d && sha1($c)===sha1($d)){
echo $flag2;
die(" xiu_er_!!");
}else{
echo "fail";
}
?>
2.
<?php
include "flag.php";
highlight_file(__FILE__);
error_reporting(0);
if(isset($_GET['param1'])){
$a = $_GET['param1'];
switch ($a) {
case $a>=0:
echo 0;
break;
case $a>=10:
echo $flag3;
break;
default:
echo 2;
break;
}
}
?>
?param1=0
<?php
include "flag.php";
highlight_file(__FILE__);
error_reporting(0);
if(isset($_GET['param1'])){
$a = $_GET['param1'];
switch ($a) {
case $a>=0:
echo 0;
break;
case $a>=10:
echo $flag3;
break;
default:
echo 2;
break;
}
}
?>
?param1=0
<?php
include "flag.php";
highlight_file(__FILE__);
error_reporting(0);
$msg = json_decode($_GET['param1']);
if($msg->key == $key){
echo $flag5;
die(" xiu_er_!!");
}else{
echo "fail";
}
?>
?param1={“key”:0}
<?php
include "flag.php";
highlight_file(__FILE__);
error_reporting(0);
$s = $_GET['a'];
if(!is_numeric($s)){
if($s+1 === 1000){
die($flag7);
}
}
?>
?a=999a
<?php
include "flag.php";
highlight_file(__FILE__);
error_reporting(0);
$param2 = 'param2';
extract($_GET);
if (isset($param1)) {
if ($param1 == $content){
foreach($arr as $key => $value){
$$key = $value;
}
if($param2==='getflag'){
echo $flag9;
}
}else{
echo "Oh..nooo";
}
}
?>
?param1=1¶m2=getflag&content=1
<?php
include "flag.php";
highlight_file(__FILE__);
error_reporting(0);
if(isset($_GET['password'])){
if(ereg("^[a-zA-Z0-9]+$", $_GET['password'])===false){
echo "must be alphanumeric";
}elseif (strpos($_GET['password'], '--')!=false) {
die($flag8);
}else{
echo "Invalid password";
}
}
?>
?password=a%00–
<?php
include "flag.php";
highlight_file(__FILE__);
error_reporting(0);
$flag = 'test';
extract($_GET);
if($a!=$b && md5($a)==md5($b) && $c!==$d && sha1($c)===sha1($d)){
if(gettype($a)=='array' && gettype($b)=='array'){
die('Oh..no..');
}
if($$flag==='getflag'){
die($flag11);
}
}
?>
?a=QNKCDZO&b=s878926199a&c[]=3&d[]=4&flag=test&test=getflag
<?php
include "flag.php";
highlight_file(__FILE__);
error_reporting(0);
$paa = 'come_baby';
var_dump($_GET['param']);
parse_str($_GET['param']);
if($arr[1]==="i want" && $paa!=='come_baby' && $a_b==='haha'){
die($flag10);
}else{
echo "Oh..no..";
}
?>
?param=arr[1]=i want%26paa=1%26a_b=haha
边栏推荐
- Azkaban概述
- Eight days of learning C language - while loop (embedded) (single chip microcomputer)
- Flex flexible layout
- Single box check box
- Quick start of UI component development of phantom engine [umg/slate]
- Anchor free series network yolox source code line by line explanation Part 2 (a total of 10, ensure to explain line by line, after reading, you can change the network at will, not just as a participan
- Devtools的简单使用
- MySQL winter vacation self-study 2022 11 (9)
- 【做题打卡】集成每日5题分享(第三期)
- 为什么腾讯阿里等互联网大厂诞生的好产品越来越少?
猜你喜欢
How to define a unified response object gracefully
Yyds dry goods inventory intelligent fan based on CC2530 design
腾讯云,实现图片上传
2021 Li Hongyi machine learning (1): basic concepts
1. Five layer network model
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
New interesting test applet source code_ Test available
2. Common request methods
v-if VS v-show 2.0
Voice chip wt2003h4 B008 single chip to realize the quick design of intelligent doorbell scheme
随机推荐
Pat grade a 1119 pre- and post order traversals (30 points)
Apache Web page security optimization
问下,这个ADB mysql支持sqlserver吗?
FBO and RBO disappeared in webgpu
Tencent cloud, realize image upload
Devtools的簡單使用
Pdf things
LeetCode146. LRU cache
The latest blind box mall, which has been repaired very popular these days, has complete open source operation source code
Easy processing of ten-year futures and stock market data -- Application of tdengine in Tongxinyuan fund
线程基础知识
Talk about the SQL server version of DTM sub transaction barrier function
Learning notes of raspberry pie 4B - IO communication (I2C)
有個疑問 flink sql cdc 的話可以設置並行度麼, 並行度大於1會有順序問題吧?
Three line by line explanations of the source code of anchor free series network yolox (a total of ten articles, which are guaranteed to be explained line by line. After reading it, you can change the
2021 Li Hongyi machine learning (2): pytorch
[luat-air105] 4.1 file system FS
VM in-depth learning (XXV) -class file overview
Subversive cognition: what does SRE do?
Delphi read / write JSON format