Exemple #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()
def main():
    url = "http://localhost/wordpress/wp-login.php"
    tnum = 10
    ip = common.gethostbyname(url)
    print "IP:", ip
    print "Start Port Sccan:"
    pp = portscan.portscan(ip)
    pp.work()
    #webcms
    ww = webcms.webcms(url, tnum)
    ww.run()
    #spider
    test = spidermain(url, tnum)
    test.craw()
Exemple #3
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()
Exemple #4
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()
Exemple #5
0
def main():
    root = "http://www.sunbridgegroup.com"
    # root = "http://www.china-zmc.com"
    threadNum = 10

    domain = urlparse(root).netloc

    # CDN_Scan
    print("CDN检查中")
    msg, iscdn = CDN_Scan.checkCDN(root)
    print(msg)
    output.add("CDN", msg)
    if iscdn:
        # IP Port Scan
        ip = common.gethostbyname(root)
        print("IP:", ip)
        print("Start Port Scan:")
        pp = PortScan.PortScan(ip)
        pp.work()
        output.build_html(domain)
Exemple #6
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()
Exemple #7
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()
Exemple #8
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()