Exemplo n.º 1
0
def main():
    root = "https://www.shiyanlou.com/"
    threadNum = 10
    # CDN Check
    print "CDN check...."
    msg,iscdn =  fun_until.checkCDN(root)
    print msg
    if iscdn:
        #IP Ports Scan
        ip = common.gethostbyname(root)
        print "IP:",ip
        print "START Port Scan:"
        pp = PortScan.PortScan(ip)
        pp.work()
    
    # DIR Fuzz
    dd = webdir.webdir(root,threadNum)    
    dd.work()
    dd.output()
    
    #webcms
    ww = webcms.webcms(root,threadNum)
    ww.run()
    
    #spider
    w8 = SpiderMain(root,threadNum)
    w8.craw()
Exemplo n.º 2
0
def spider():
    pc.print_yellow_text('请输入URL(用单引号包含):')
    root = str(input())
    root = root.replace('\'', '')
    threadNum = 10
    #spider
    wgd = SpiderMain(root, threadNum)
    wgd.craw()
Exemplo n.º 3
0
def main():
    parser = argparse.ArgumentParser(description='Rose Scanner Help.')
    parser.add_argument("-t", "--target", type=str, help="Add root url of the target site!")
    parser.add_argument("-n", '--number', type=int, help="Add thread number!")
    args = parser.parse_args()
    root = args.target
    threadNum = args.number

    crawler1 = SpiderMain(root, threadNum)
    crawler1.craw()
Exemplo n.º 4
0
def main():
	root = "https://blog.yesfree.pw/"
	threadNum = 10

	#webcms
	ww = webcms.webcms(root, threadNum)
	ww.run()
	#spider
	w8 = SpiderMain(root, threadNum)
	w8.craw()
Exemplo n.º 5
0
def start_check():
    global root, threadNum
    root = a.get()
    threadNum = int(b.get())
    print("start..........")
    c.insert('insert', "开始检查:" + root + "\n\n")
    test1 = SpiderMain(root, threadNum)
    test1.craw()
    #command = "python scan.py \"" + root + "\""
    #os.system(command)
    file_name = 'log.txt'
    with open(file_name) as file_obj:
        for content in file_obj:
            c.insert('insert', content + "\n")
Exemplo n.º 6
0
def main():
    root = "https://shiyanlou.com"
    threadNum = 10
    ip = common.gethostbyname(root)
    print "IP:", ip
    print "Start Port Scan:"
    pp = PortScan.PortScan(ip)
    pp.work()

    #webcms
    ww = webcms.webcms(root, threadNum)
    ww.run()

    #spider
    w8 = SpiderMain(root, threadNum)
    w8.craw()
Exemplo n.º 7
0
def main():
    #root = "http://www.shiyanlou.com/"
    root = "http://ctf5.shiyanbar.com/423/web/?id=1"
    threadNum = 10
    ip = common.gethostbyname(root)
    print("IP:", ip)
    print("Start Port Scan:")
    pp = PortScan.PortScan(ip)
    pp.work()

    #webcms
    ww = webcms_check.webcms()
    ww.run()

    #spider
    sbs = SpiderMain(root, threadNum)
    sbs.craw()
Exemplo n.º 8
0
def main():
    root = "https://www.shiyanlou.com/"
    threadNum = 10
    ip = common.gethostbyname(root)
    print('IP:', ip)
    print("start Port Scan:")

    # portscan
    pp = PortScan.PortScan(ip)
    pp.work()

    # DIR Fuzz
    dd = webdir.WebDir(root, threadNum)
    dd.work()
    dd.output()

    # webcms
    ww = webcms.webcms(root, threadNum)
    ww.run()

    # spider
    sm = SpiderMain(root, threadNum)
    sm.craw()
Exemplo n.º 9
0
def main():
    root = "https://www.shiyanlou.com/"
    domain = common.w8urlparse(root)
    threadNum = 10
    output = outputer.outputer()
    # CDN Check
    print "CDN check...."
    iscdn = True
    try:
        msg, iscdn = fun_until.checkCDN(root)
        output.add("cdn", msg)
        output.build_html(domain)
        print msg
    except:
        print "[Error]:CDN check error"

    if iscdn:
        #IP Ports Scan
        ip = common.gethostbyname(root)
        print "IP:", ip
        print "START Port Scan:"
        pp = PortScan.PortScan(ip)
        pp.work()
        output.build_html(domain)

    # DIR Fuzz
    dd = webdir.webdir(root, threadNum)
    dd.work()
    dd.output()
    output.build_html(domain)
    #webcms
    ww = webcms.webcms(root, threadNum)
    ww.run()
    output.build_html(domain)
    #spider
    w8 = SpiderMain(root, threadNum)
    w8.craw()
Exemplo n.º 10
0
def main():
    checkEnvironment()  #检测环境
    common.setPaths(modulePath())  # 为一些目录和文件设置了绝对路径

    #目标url,一些参数设置
    parser = argparse.ArgumentParser(description="Ajatar scan must a url")
    parser.add_argument("-u", "--url", help="url")
    args = parser.parse_args()
    root = args.url
    #root = "http://www.imufe.edu.cn/"

    #判断是否为Windows
    if IS_WIN:
        #Windows界面颜色
        windowsColorInit()
    #Banner()

    try:
        configFileParser(os.path.join(paths.Ajatar_ROOT_PATH, "config.conf"))
        #线程数
        threadNum = initOption(args)
    except Exception as e:
        raise e

    #拆解url 得到netloc
    domain = common.Ajurlparse(root)
    #输出报告对象
    output = outputer.outputer()

    # CDN Check
    print "CDN check...."
    iscdn = True
    try:
        msg, iscdn = fun_until.checkCDN(root)
        #获取数据生成报告
        output.add("cdn", msg)
        #build html
        output.build_html(domain)
        print msg
    except:
        print "[Error]:CDN check error"

    if iscdn:
        #IP Ports Scan
        #获取ip
        ip = common.gethostbyname(root)
        print "IP:", ip
        print "Start Port Scan:"
        #ip端口扫描
        pp = PortScan.PortScan(ip)
        pp.work()
        output.build_html(domain)

    # DIR Fuzz
    dd = webdir.webdir(root, threadNum)
    dd.work()
    dd.output()
    output.build_html(domain)

    #webcms
    ww = webcms.webcms(root, threadNum)
    ww.run()
    output.build_html(domain)

    #spider
    Aj = SpiderMain(root, threadNum)
    Aj.craw()
Exemplo n.º 11
0
def main():
    root = "https://www.shiyanlou.com/"
    threadNum = 10
    #spider
    wgd = SpiderMain(root, threadNum)
    wgd.craw()
Exemplo n.º 12
0
def action(root, threadNum):
    wgd = SpiderMain(root, threadNum)
    wgd.craw()