#!/usr/local/bin/python #-*- coding: UTF-8 -*- ################################################ import class_Queue #消息队列维护 import C_openrul #URL采集 import time import Class_url_cms import Cclose_open #结束进程 在从新开启进程 if __name__ == '__main__': #结束进程在从新开启进程 解决MYSQL连接错误 Cclose_open_threads = [] #线程 for i in range(1): #nthreads=10 创建10个线程 Cclose_open_threads.append(Cclose_open.CS_close_open()) for thread in Cclose_open_threads: #不理解这是什么意思 是结束线程吗 thread.start() #start就是开始线程 threads0 = [] #线程 消息队列维护 for i in range(1): threads0.append(class_Queue.Csqlite_Queue()) for t in threads0: t.start() threads1 = [] #线程 数据采集 for i in range(1): threads1.append(C_openrul.CS_openurl(i)) for t in threads1: t.start() #线程cms识别 threads2 = [] #线程cms识别
def Crun(): #启动 thrint = 1 t_h = Sthread.CS_Cthread() Copenurl_nthreads = t_h.openurl() #采集URL地址 Copenftp_nthreads = t_h.openftp() #采集FTP地址 ClinkFTP_nthreads = t_h.linkftp() #FTP爆破 print "-" * 60 #time.sleep(10) ########################### #结束进程在从新开启进程 解决MYSQL连接错误 Cclose_open_threads = [] #线程 Cclose_open_nthreads = 1 for i in range(Cclose_open_nthreads): #nthreads=10 创建10个线程 Cclose_open_threads.append(Cclose_open.CS_close_open()) for thread in Cclose_open_threads: #不理解这是什么意思 是结束线程吗 thread.start() #start就是开始线程 ########################### #检测更新数据库 t_delete = Ssqlite_delete.CS_mysql_delete() t_delete.open_mysql() #读取URL print "-" * 60 Cmysql_delete_threads = [] #线程 Cmysql_delete_nthreads = 1 for i in range(Cmysql_delete_nthreads): #nthreads=10 创建10个线程 Cmysql_delete_threads.append(Ssqlite_delete.CS_mysql_delete()) for thread in Cmysql_delete_threads: #不理解这是什么意思 是结束线程吗 thread.start() #start就是开始线程 ########################### #FTP权限检查 CpasswordFTP_threads = [] #线程 CpasswordFTP_nthreads = 1 for i in range(CpasswordFTP_nthreads): #nthreads=10 创建10个线程 CpasswordFTP_threads.append(SpasswordFTP.CS_passwordFTP()) for thread in CpasswordFTP_threads: #不理解这是什么意思 是结束线程吗 thread.start() #start就是开始线程 ########################### #采集URL地址 Copenurl_threads = [] #线程 for i in range(Copenurl_nthreads): #nthreads=10 创建10个线程 Copenurl_threads.append(Sopenurl.CS_openurl(thrint)) thrint = thrint + 1 for thread in Copenurl_threads: time.sleep(1) thread.start() #start就是开始线程 ########################### #采集FTP地址 Copenftp_threads = [] #线程 for i in range(Copenftp_nthreads): #nthreads=10 创建10个线程 Copenftp_threads.append(Sopenftp.CS_openftp(thrint)) thrint = thrint + 1 for thread in Copenftp_threads: time.sleep(1) thread.start() #start就是开始线程 ########################### #FTP爆破 ClinkFTP_threads = [] #线程 for i in range(ClinkFTP_nthreads): #nthreads=10 创建10个线程 ClinkFTP_threads.append(SlinkFTP.CS_linkftp(thrint)) thrint = thrint + 1 for thread in ClinkFTP_threads: time.sleep(1) thread.start() #start就是开始线程
def Crun(): #启动 thrint = 1 t_h = Cthread.CS_Cthread() Copenurl_nthreads = t_h.openurl() #采集URL地址 Copenftp_nthreads = t_h.openftp() #采集FTP地址 ClinkFTP_nthreads = t_h.linkftp() #FTP爆破 # time.sleep(5) # config = ConfigParser.ConfigParser() # config.readfp(open("gost.ini")) # Copenurl_nthreads = int(config.get("DATA","th_openurl")) # Copenftp_nthreads = int(config.get("DATA","th_openftp")) # ClinkFTP_nthreads = int(config.get("DATA","th_ftppassword")) ########################### #检测更新数据库 Cmysql_delete_threads = [] #线程 Cmysql_delete_nthreads = 1 for i in range(Cmysql_delete_nthreads): #nthreads=10 创建10个线程 Cmysql_delete_threads.append(Cmysql_delete.CS_mysql_delete()) for thread in Cmysql_delete_threads: #不理解这是什么意思 是结束线程吗 thread.start() #start就是开始线程 ########################### #结束进程在从新开启进程 解决MYSQL连接错误 Cclose_open_threads = [] #线程 Cclose_open_nthreads = 1 for i in range(Cclose_open_nthreads): #nthreads=10 创建10个线程 Cclose_open_threads.append(Cclose_open.CS_linkftp()) for thread in Cclose_open_threads: #不理解这是什么意思 是结束线程吗 thread.start() #start就是开始线程 ########################### #采集URL地址 Copenurl_threads = [] #线程 for i in range(Copenurl_nthreads): #nthreads=10 创建10个线程 Copenurl_threads.append(Copenurl.CS_openurl(thrint)) thrint = thrint + 1 for thread in Copenurl_threads: time.sleep(1) thread.start() #start就是开始线程 ########################### #采集FTP地址 Copenftp_threads = [] #线程 for i in range(Copenftp_nthreads): #nthreads=10 创建10个线程 Copenftp_threads.append(Copenftp.CS_openftp(thrint)) thrint = thrint + 1 for thread in Copenftp_threads: time.sleep(1) thread.start() #start就是开始线程 ########################### #FTP爆破 ClinkFTP_threads = [] #线程 for i in range(ClinkFTP_nthreads): #nthreads=10 创建10个线程 ClinkFTP_threads.append(ClinkFTP.CS_linkftp(thrint)) thrint = thrint + 1 for thread in ClinkFTP_threads: time.sleep(1) thread.start() #start就是开始线程 ########################### #FTP权限检查 CpasswordFTP_threads = [] #线程 CpasswordFTP_nthreads = 1 for i in range(CpasswordFTP_nthreads): #nthreads=10 创建10个线程 CpasswordFTP_threads.append(CpasswordFTP.CS_passwordFTP()) for thread in CpasswordFTP_threads: #不理解这是什么意思 是结束线程吗 thread.start() #start就是开始线程
def Crun(): thrint = 1 t_h = Sthread.CS_Cthread() Copenurl_nthreads = t_h.openurl() Copenftp_nthreads = t_h.openftp() ClinkFTP_nthreads = t_h.linkftp() print "-" * 60 #time.sleep(10) ########################### Cclose_open_threads = [] Cclose_open_nthreads = 1 for i in range(Cclose_open_nthreads): Cclose_open_threads.append(Cclose_open.CS_close_open()) for thread in Cclose_open_threads: thread.start() ########################### t_delete = Ssqlite_delete.CS_mysql_delete() t_delete.open_mysql() print "-" * 60 Cmysql_delete_threads = [] Cmysql_delete_nthreads = 1 for i in range(Cmysql_delete_nthreads): Cmysql_delete_threads.append(Ssqlite_delete.CS_mysql_delete()) for thread in Cmysql_delete_threads: thread.start() ########################### CpasswordFTP_threads = [] CpasswordFTP_nthreads = 1 for i in range(CpasswordFTP_nthreads): CpasswordFTP_threads.append(SpasswordFTP.CS_passwordFTP()) for thread in CpasswordFTP_threads: thread.start() ########################### Copenurl_threads = [] for i in range(Copenurl_nthreads): Copenurl_threads.append(Sopenurl.CS_openurl(thrint)) thrint = thrint + 1 for thread in Copenurl_threads: time.sleep(1) thread.start() ########################### Copenftp_threads = [] for i in range(Copenftp_nthreads): Copenftp_threads.append(Sopenftp.CS_openftp(thrint)) thrint = thrint + 1 for thread in Copenftp_threads: time.sleep(1) thread.start() ########################### ClinkFTP_threads = [] for i in range(ClinkFTP_nthreads): ClinkFTP_threads.append(SlinkFTP.CS_linkftp(thrint)) thrint = thrint + 1 for thread in ClinkFTP_threads: time.sleep(1) thread.start()