上传文件至 src

This commit is contained in:
jiangsir 2024-09-12 18:09:24 +08:00
commit f72c9e195b
3 changed files with 19 additions and 0 deletions

3
src/flag.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
sed -i "s/FLAGFLAGFLAG/$GZCTF_FLAG/" /var/www/html/flllllllllllllag.txt
export GZCTF_FLAG=""

1
src/flllllllllllllag.txt Normal file
View File

@ -0,0 +1 @@
FLAGFLAGFLAG

15
src/index.php Normal file
View File

@ -0,0 +1,15 @@
<?php
if(isset($_GET['jiangsir'])){
$code=$_GET['jiangsir'];
if (!preg_match('/sys|pas|read|file|ls|cat|tac|head|tail|more|less|php|base|echo|cp|\$|\*|\+|\^|scan|\.|local|next|all|hex2bin|im|shell/i',$code)){
echo '如果你这么做jiangsir会告诉你不可以!!';echo '<br>';
eval($jiangsir);
}
else{
die("额你在幻想些什么??");
}
}
else{
echo "孩子别学了......";
show_source(__FILE__);
}