예제 #1
0
파일: Medusa.py 프로젝트: wcxxxxx/Medusa
async def MedusaScan(city: str) -> str:
    Url = city
    #设置一个时间搓这样可以直接用时间搓查
    ThreadPool = ClassCongregation.ThreadPool()  #定义一个线程池
    Values = ClassCongregation.AgentHeader().result("None")
    San(ThreadPool, Url, Values, ProxyIp=None, Module=None)
    return ""
예제 #2
0
async def MedusaScan(url: str, token: str) -> str:
    ThreadPool = ClassCongregation.ThreadPool()  #定义一个线程池
    Values = ClassCongregation.AgentHeader().result("None")
    BotScan(ThreadPool, url, Values, token)
    ThreadPool.Start(30)  # 启动多线程
    number_of_scan_results = ClassCongregation.BotNumberOfLoopholes()  #输出个数
    return number_of_scan_results
예제 #3
0
    InputFileName = args.InputFileName  #批量扫描文件所在位置
    Url = args.url
    Values = args.agent  #判断是否使用随机头,判断写在Class里面
    Module = args.Module  #单独模块扫描功能
    SubdomainEnumerate = args.SubdomainEnumerate  #开启深度子域名枚举,巨TM耗时间
    Subdomain = args.Subdomain  #开启子域名枚举
    ThreadNumber = args.ThreadNumber  #要使用的线程数默认15
    proxies = args.ProxiesIP  #代理的IP
    if Values == None:  #使用随机头
        agentHeader = "None"
    else:
        agentHeader = Values

    #暂时关闭NMAPScan和数据库爆破功能

    ThreadPool = ClassCongregation.ThreadPool()  #定义一个线程池
    Token = str(int(time.time())) + "medusa"  #获取赋予的token
    if ThreadNumber == None:  #如果线程数为空,那么默认为15
        ThreadNumber = 15

    if Url == None and InputFileName == None:  #如果找不到URL的话直接退出
        print(
            "\033[1;40;31m[ ! ] Incorrect input, please enter -h to view help\033[0m"
        )
        os._exit(0)  #直接退出整个函数
    elif Url != None and InputFileName != None:  #如果既输入URL又输入URL文件夹一样退出
        print(
            "\033[1;40;31m[ ! ] Incorrect input, please enter -h to view help\033[0m"
        )
        os._exit(0)  #直接退出整个函数
예제 #4
0
async def MedusaScan(Url: str, token: str) -> str:
    ThreadPool = ClassCongregation.ThreadPool()  #定义一个线程池
    Values = ClassCongregation.AgentHeader().result("None")
    San(ThreadPool, Url, Values, token, Module=None)
    ThreadPool.Start(30)  # 启动多线程
    return ""