예제 #1
0
파일: hound.py 프로젝트: wsppt/hound
			time.sleep(0.3)



		sql = "select count(*) from %s where recursion != 0  and url = '%s' " % (url_tables,url);
		if hound_db.query(sql) == 0 :
			blast.blast_url(url,thread,lis,url_tables); #爆破域名 并且等待结束
			sql = "update %s set recursion = 1 where url = '%s'" % (url_tables,url);
			hound_db.increase(sql);
		for black_ip in core.Blacklist_ip:
			sql = "delete from %s where ip = '%s' " % (url_tables,black_ip);
			hound_db.increase(sql);
			time.sleep(0.3); 
		if Interface == 'good': #如果调用接口
			'''调用接口查询'''
			i_lis = call_interface.jiekou1(url); #获取接口输出的域名
			
			if len(i_lis) > 1:#如果获取到的域名超过一个的话
				is_url = simple(); #new 对象
				print '\033[1;32;1m  Call interface to get the domain name...√  \033[0m';
				time.sleep(1);
				print '\033[1;32;1m  A total of %i domain names  \033[0m' % (len(i_lis));
				print '\033[1;32;1m  May consume a little time -_-  \033[0m'
				t1 = threading.Thread();
				t2 = threading.Thread();
				t3 = threading.Thread();
				t4 = threading.Thread();
				t5 = threading.Thread();
				t6 = threading.Thread();
				t7 = threading.Thread();
				t8 = threading.Thread();
예제 #2
0
파일: hound.py 프로젝트: shuixi2013/hound
        sql = "select count(*) from %s where recursion != 0  and url = '%s' " % (
            url_tables, url)
        if hound_db.query(sql) == 0:
            blast.blast_url(url, thread, lis, url_tables)
            #爆破域名 并且等待结束
            sql = "update %s set recursion = 1 where url = '%s'" % (url_tables,
                                                                    url)
            hound_db.increase(sql)
        for black_ip in core.Blacklist_ip:
            sql = "delete from %s where ip = '%s' " % (url_tables, black_ip)
            hound_db.increase(sql)
            time.sleep(0.3)
        if Interface == 'good':  #如果调用接口
            '''调用接口查询'''
            i_lis = call_interface.jiekou1(url)
            #获取接口输出的域名

            if len(i_lis) > 1:  #如果获取到的域名超过一个的话
                is_url = simple()
                #new 对象
                print '\033[1;32;1m  Call interface to get the domain name...√  \033[0m'
                time.sleep(1)
                print '\033[1;32;1m  A total of %i domain names  \033[0m' % (
                    len(i_lis))
                print '\033[1;32;1m  May consume a little time -_-  \033[0m'
                t1 = threading.Thread()
                t2 = threading.Thread()
                t3 = threading.Thread()
                t4 = threading.Thread()
                t5 = threading.Thread()