#web
一点一点慢慢写
5月15号在邢职比赛2阶段,有一个题把我难到了,后来回来发现是两个函数,在此记录
分别是file_get_contents、file_put_contents
file_put_contents($path,file_get_contents(另外一个路径))
u
r
l
=
url=
url=_GET[‘url’];
$path =
G
E
T
[
′
p
a
t
h
′
]
;
i
f
(
_GET['path']; if (
GET[′path′];if(url) {
file_put_contents(
u
r
l
,
f
i
l
e
g
e
t
c
o
n
t
e
n
t
s
(
url,file_get_contents(
url,filegetcontents(path));
echo ‘seccues’;
}else{
echo ‘qwe’;
}
但是具体flag怎么获取就不知道了,欢迎大家指点