代码拉取完成,页面将自动刷新
同步操作将从 stemmm/AUTO-EARN 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import sys
import time
import shodan
from lib import config, subdomain_collect, run_html, waf_check, sql_connect, craw_to_xray
from lib.read_target import read_target
from rich.console import Console
from rich.table import Column, Table
console = Console()
# banner生成函数
def banner():
msg = '''
▄▄▄ █ ██ ▄▄▄█████▓ ▒█████ ▓█████ ▄▄▄ ██▀███ ███▄ █
▒████▄ ██ ▓██▒▓ ██▒ ▓▒▒██▒ ██▒ ▓█ ▀▒████▄ ▓██ ▒ ██▒ ██ ▀█ █
▒██ ▀█▄ ▓██ ▒██░▒ ▓██░ ▒░▒██░ ██▒ ▒███ ▒██ ▀█▄ ▓██ ░▄█ ▒▓██ ▀█ ██▒
░██▄▄▄▄██ ▓▓█ ░██░░ ▓██▓ ░ ▒██ ██░ ▒▓█ ▄░██▄▄▄▄██ ▒██▀▀█▄ ▓██▒ ▐▌██▒
▓█ ▓██▒▒▒█████▓ ▒██▒ ░ ░ ████▓▒░ ░▒████▒▓█ ▓██▒░██▓ ▒██▒▒██░ ▓██░
▒▒ ▓▒█░░▒▓▒ ▒ ▒ ▒ ░░ ░ ▒░▒░▒░ ░░ ▒░ ░▒▒ ▓▒█░░ ▒▓ ░▒▓░░ ▒░ ▒ ▒
▒ ▒▒ ░░░▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░ ░ ▒ ▒▒ ░ ░▒ ░ ▒░░ ░░ ░ ▒░
░ ▒ ░░░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ▒ ░░ ░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
'''
console.print(msg, style="bold red")
table = Table(show_header=True, header_style="bold magenta")
table.add_column("ABOUT", style="dim", width=30)
table.add_column("AUTHOR", style="dim", width=30)
table.add_column("PLUGINS", style="dim", width=30)
help_table = Table(show_header=True, header_style="bold magenta")
help_table.add_column("ID", style="dim", width=30)
help_table.add_column("参数", style="dim", width=30)
help_table.add_column("说明", style="dim", width=30)
table.add_row(
"一款SRC漏洞挖掘辅助工具",
"Echocipher",
"OneForAll"
)
table.add_row(
"",
"",
"Masscan"
)
table.add_row(
"",
"",
"Nmap"
)
table.add_row(
"",
"",
"Wafw00f"
)
table.add_row(
"",
"",
"Crawlergo"
)
table.add_row(
"",
"",
"Xray"
)
help_table.add_row(
"1",
"Subdomain_Collect",
"获取子域"
)
help_table.add_row(
"2",
"Port_Check",
"端口检测"
)
help_table.add_row(
"3",
"Waf_Check",
"WAF检测"
)
help_table.add_row(
"4",
"Craw_To_Xray",
"爬虫爬取 + 漏洞探测 + 消息通知"
)
help_table.add_row(
"5",
"View",
"查看"
)
help_table.add_row(
"6",
"Exit",
"退出"
)
console.print(table)
console.print('参数说明', style="#ADFF2F")
console.print(help_table)
# 结束函数
def end():
console.print("shutting down at {0}".format(time.strftime("%X")), style="#ADFF2F")
def main():
banner()
while True:
console.print('请输入要执行的参数ID:[bold cyan]1-6[/bold cyan]', style="#ADFF2F")
args = input('> ')
if args == '1':
subdomain_collect.oneforall_collect(config.target_file_path)
elif args == '2':
try:
SHODAN_API_KEY = config.SHODAN_API_KEY
api = shodan.Shodan(SHODAN_API_KEY)
api.info()
console.print('Shodan密钥验证成功', style="#ADFF2F")
from lib import port_check
except:
console.print('Shodan密钥验证失败',style="bold red")
sys.exit()
elif args == '3':
waf_check.waf_check(sql_connect.read_task_sql())
elif args == '4':
craw_to_xray.craw_to_xray(sql_connect.read_task_sql())
elif args == '5':
run_html.main()
elif args == '6':
break
else:
console.print('输入参数有误,请检查后输入', style="bold red")
sys.exit()
end()
if __name__ == '__main__':
main()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。