1 Star 0 Fork 0

张博/Attack_Defense_Framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
exploit_all.py 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
WangYihang 提交于 2017-10-08 05:35 . [+] Beauty get_flag.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
from core.exploit.submit_flag import *
from core.exploit.get_flag import *
token = "DqSXgARhK0brh2im8plcH4EdvluS2KmW8MpJCb0oeWQJoSYBrnLLdDtqzAbd78nAbZP9wFBjFEb"
def exploit(host, port):
flag = get_flag(host, port)
submit_flag(flag, token)
def exploit_all():
with open("targets") as f:
for line in f:
host = line.split(":")[0]
port = int(line.split(":")[1])
print "[+] Exploiting : %s:%d" % (host, port)
exploit(host, port)
def main():
print "[+] Starting attack framework..."
round_time = 60 * 5
print "[+] Round time : %s seconds..." % (round_time)
wait_time = round_time / 2
print "[+] Wait time : %s seconds..." % (wait_time)
while True:
exploit_all()
print "[+] This round is finished , waiting for the next round..."
for i in range(wait_time):
print "[+] The next attack is %d seconds later..." % (wait_time - i)
time.sleep(1)
if __name__ == "__main__":
main()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/zhangbo123321/Attack_Defense_Framework.git
git@gitee.com:zhangbo123321/Attack_Defense_Framework.git
zhangbo123321
Attack_Defense_Framework
Attack_Defense_Framework
master

搜索帮助