forked from xk11z/unauthorized_com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
35 lines (26 loc) · 1.38 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import random, time, os, sys
from pyfiglet import Figlet
choices=['zookeeper', 'ftp','elasticsearch','ldap','weblogic','vnc','hadoopyarn','rsync','kibana',
'docker','dockerregistry','couchdb','jboss','jenkins','activemq','nfs','mongodb','zabbix','druid',
'dubbo','swaggerui','harbor','ipc','actuator','btphpmyadmin','wordpress','uwsgi','kong','thinkadminv6',
'phpfpm','solr','jupyter','kubernetes','redis','apachespark','memcached','atlassian','rabbitmq']
def banner():
print('命令行版未授权漏洞检测')
print('version:1.0 | made by xkllz | date:2023/05/02')
print('**********************************************************************')
print('----------------------------------------------------------------------')
f = Figlet(font='slant',width=400)
print(f.renderText('unauthorized'))
print('----------------------------------------------------------------------')
print('**********************************************************************')
def get_time():
return time.strftime("@ %Y-%m-%d /%H:%M:%S/", time.localtime())
import random
# 打开 useragents.txt 文件并读取所有行
with open('user-agents.txt', 'r') as f:
useragents = f.readlines()
# 随机选择一个 user agent
random_useragent = random.choice(useragents).strip()
headers={
'user-agent':random_useragent
}