示例#1
0
def main():
    show_banner()
    options = input_parse()
    print("[*]Start to scan shell script privilege escalation...")
    write_result("[*]Scan Task at " + str(datetime.datetime.now()))
    write_result("[*]Scan Path: " + options.path)
    write_result("[*]High Privilege User: "******"[*]Low Privilege User: "******"[*]Finished.")
    write_result("[*]Finished.")
示例#2
0
文件: m7-04.py 项目: mi1k7ea/M7-04
def main():
    show_banner()
    params = input_parse()

    # 识别扫描类型,根据输入选择进行Flash XSS或Flash CSRF扫描
    if params.type.lower() == "xss":
        print("[*]Start to scan Flash XSS vulnerability...")
        scanner = FlashXSSScanner(os.getcwd() + "/tmp", params.file)
        scanner.scan()
    elif params.type.lower() == "csrf":
        print("[*]Start to scan Flash CSRF vulnerability...")
        scanner = FlashCSRFScanner(params.url)
        scanner.scan()

    print("[*]Finished.")
示例#3
0
def main():
    show_banner()
    params = input_parse()
    if params.url[-1] == "/":
        url = params.url
    else:
        url = params.url + "/"
    # url = "https://www.qhlingwang.com/"
    threads_count = params.count
    sleep_time = params.sleep
    scan_interval = 3

    # 先输出fofa指纹库中匹配的信息
    print("[*]Using fofa database to scan...")
    logger.info("use fofa database to scan")
    fofa = FofaCmsFinger(url)
    fofa.run()

    # 分别使用whatweb api和不同指纹库扫描识别CMS
    time.sleep(scan_interval)
    print("[*]Using whatweb api to scan...")
    logger.info("use whatweb api to scan")
    if not whatweb_scan(url):
        time.sleep(scan_interval)
        print("[*]Using fingerprint database1 to scan...")
        logger.info("use fingerprint database1 to scan")
        if not load_db1_scan(url, threads_count, sleep_time):
            time.sleep(scan_interval)
            print("[*]Using fingerprint database2 to scan...")
            logger.info("use fingerprint database2 to scan")
            if not load_db2_scan(url, threads_count, sleep_time):
                time.sleep(scan_interval)
                print("[*]Using fingerprint database3 to scan...")
                logger.info("use fingerprint database3 to scan")
                if not load_db3_scan(url, threads_count, sleep_time):
                    print("[-]Not found CMS.")
                    logger.info("not found cms")

    print("[*]Finished.")
    logger.info("finished")
示例#4
0
def main():
    show_banner()
    params = input_parse()
    scanner = WebDirBruter(params)
    scanner.start()
示例#5
0
 def show_banner(self):
     banner.show_banner(self.version)
     return