当前位置:网站首页>[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
边栏推荐
- 【软件逆向-基础知识】分析方法、汇编指令体系结构
- 1.五层网络模型
- Redis6-01nosql database
- Kuboard
- C file in keil cannot be compiled
- Azkaban安装部署
- Why are there fewer and fewer good products produced by big Internet companies such as Tencent and Alibaba?
- Tiny series rendering tutorial
- Class inheritance in C #
- New interesting test applet source code_ Test available
猜你喜欢
随机推荐
单项框 复选框
Learning notes of raspberry pie 4B - IO communication (I2C)
端口,域名,协议。
Acwing game 58 [End]
Use UDP to send a JPEG image, and UPD will convert it into the mat format of OpenCV after receiving it
Machine learning experiment report 1 - linear model, decision tree, neural network part
Sqoop installation
Smart pointer shared_ PTR and weak_ Difference of PTR
Kubernetes - Multi cluster management
Necessary fonts for designers
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Yuancosmic ecological panorama [2022 latest]
[groovy] loop control (number injection function implements loop | times function | upto function | downto function | step function | closure can be written outside as the final parameter)
Technology sharing swift defense programming
有个疑问 flink sql cdc 的话可以设置并行度么, 并行度大于1会有顺序问题吧?
Azkaban installation and deployment
Dart series: collection of best practices
Unity implements the code of the attacked white flash (including shader)
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Bumblebee: build, deliver, and run ebpf programs smoothly like silk








