下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
RainbowCrackTutorial
Introduction
RainbowCrackisageneralproposeimplementationofPhilippeOechslin'sfastertime-memorytrade-offtechnique.Functionofthissoftwareistocrackhash.
Thestraightforwardwaytocrackhashisbruteforce.Inbruteforceapproach,allcandidateplaintextsandcorrespondinghashesarecomputedonebyone.Thecomputedhashesarecomparedwiththetargethash.Ifoneofthemmatches,theplaintextisfound.Otherwisetheprocesscontinuesuntilfinishsearchingallcandidateplaintexts.
Intime-memorytradeoffapproach,thetaskofhashcomputingisdoneinadvancewiththeresultsstoredinfilescalled"rainbowtable".Afterthat,hashescanbelookedupfromtherainbowtableswheneverneeded.Thepre-computationprocessneedsseveraltimestheeffortoffullkeyspacebruteforce.Butoncetheonetimepre-computationiscomplete,thetablelookupperformancecanbehundredsorthousandstimesfasterthanbruteforce.
ThisdocumentexplainsthestepstomaketheRainbowCracksoftwareworkingforfirsttimeuser.Mostcontentsinthisdocumentareimplementationspecific,whileothersaregenerictotime-memorytradeoffalgorithm.
TheRainbowCracksoftwareincludesthreetoolsthatmustbeusedinsequencetomakethingsworking.
Step1:Usertgenprogramtogeneraterainbowtables.
Step2:Usertsortprogramtosortrainbowtablesgeneratedbyrtgen.
Step3:Usercrackprogramtolookuprainbowtablessortedbyrtsort.
Thetablelookupprocessinfinalstepisequivalenttothehashcrackingprocess.
Thewaytousetheseprogramswillbeexplainedinthisdocument.Allofthemarecommandlineprograms.
Step1:Usertgenprogramtogeneraterainbowtables
Thertgenprogramneedseveralparameterstogeneratearainbowtable,thesyntaxofthecommandlineis:
rtgenhash_algorithmcharsetplaintext_len_minplaintext_len_maxtable_indexchain_lenchain_numpart_index
Explanationoftheseparameters:
parameter
meaning
hash_algorithm
Thehashalgorithm(lm,ntlm,md5andsoon)usedintherainbowtable.
charset
Thecharsetofallplaintextsintherainbowtable.Allpossiblecharsetaredefinedinthecharset.txtfile.
plaintext_len_min
plaintext_len_max
Thesetwoparametersdefinethepossiblelengthofallplaintextsintherainbowtable.Ifcharsetisnumeric,plaintext_len_minis1,andplaintext_len_maxis5.Thentheplaintext"12345"islikelyincludedinthetable,but"123456"willnotbeincluded.
table_index
chain_len
chain_num
part_index
Thesefourparametersarereallydifficulttoexplaininsimplewords.Toreadandunderstand
PhilippeOechslin'soriginalpaper
canhelptoknowtheexactmeaning.
Thetable_indexisrelatedtothe"reducefunction"thatisusedinrainbowtable.
Thechain_lenisthelengthofeach"rainbowchain"intherainbowtable.A"rainbowchain"sized16bytesisthesmallestunitinarainbowtable.Arainbowtablecontainslotsofrainbowchains.
Thechain_numisthenumberofrainbowchainsintherainbowtable.
Thepart_indexparameterdetermineshowthe"startpoint"ineachrainbowchainisgenerated.Itmustbeanumber(orbeginwithanumber)inRainbowCrack1.3&1.4.InRainbowCrack1.2,thisparametercanbeanystringbecauserandom"startpoint"isused,while1.3&1.4usethesequential"startpoint".
Therightvaluesofalltheparametersdependonwhatyouneed,toselectgoodparametersrequiresomeunderstandingofthetime-memorytradeoffalgorithm.
Onereadytoworkconfigurationisgivenbelow,asanexample:
hash_algorithm
lm,ntlmormd5
charset
alpha-numeric=[ABCDEFGHIJKLMNOPQRSTUVWXYZ]
or
loweralpha-numeric=[abcdefghijklmnopqrstuvwxyz]
plaintext_len_min
1
plaintext_len_max
7
chain_len
3800
chain_num
33554432
keyspace
36^1+36^2+36^3+36^4+36^5+36^6+36^7=
keyspaceisthenumberofpossibleplaintextsforthecharset,plaintext_len_minandplaintext_len_maxselected.
tablesize
3GB
successrate
0.999
Thetime-memorytradeoffalgorithmisaprobabilisticalgorithm.Whatevertheparametersareselected,thereisalwaysprobabilitythattheplaintextwithintheselectedcharsetandplaintextlengthrangeisnotcovered.Thesuccessrateis99.9%withtheparametersusedinthisexample.
tablegenerationcommands
Theactualrtgencommandsusedtogeneratetherainbowtablesare:
rtgenmd5loweralpha-numeric1703800335544320
rtgenmd5loweralpha-numeric1713800335544320
rtgenmd5loweralpha-numeric1723800335544320
rtgenmd5loweralpha-numeric1733800335544320
rtgenmd5loweralpha-numeric1743800335544320
rtgenmd5loweralpha-numeric1753800335544320
Ifntlmorlmtableisdesired,replace"md5"incommandsabovewith"ntlm"or"lm".
Ifalpha-numericcharsetisdesired,replace"loweralpha-numeric"incommandsabovewith"alpha-numeric".
Iflmtableistobegenerated,pleaseCONFIRMthecharsetisalpha-numericinsteadofloweralpha-numeric.ThelmalgorithmNEVERuseslowercaselettersasplaintext.
Nowitistimetogeneraterainbowtable.
ChangethecurrentdirectoryofyourcommandprompttoRainbowCrack'sdirectory,andexecutefollowingcommand:
rtgenmd5loweralpha-numeric1703800335544320
Thiscommandtakesabout4hourstocompleteonCore2DuoE7300processor.ItissafetostopthecomputationanytimebypressingCtrl+C.Nexttimeifthertgenprogramisexecutedwithexactlysamecommandlineparameters,itwillresumefromwherethecomputationisstoppedandcontinuethetablegeneration.
Whenthecommandisfinished,afilenamed"md5_loweralpha-numeric#1-7_0_3800x33554432_0.rt"sized512MBwillbeinplace.Thefilenameissimplyallthecommandlineparametersconnected,withthe"rt"extension.Thercrackprogramtobeexplainedlaterneedthispieceofinformationtoknowparametersoftherainbowtable.Sodon'trenamethefile.
Remainingtablescanbegeneratedinsamewaywithcommands:
rtgenmd5loweralpha-numeric1713800335544320
rtgenmd5loweralpha-numeric1723800335544320
rtgenmd5loweralpha-numeric1733800335544320
rtgenmd5loweralpha-numeric1743800335544320
rtgenmd5loweralpha-numeric1753800335544320
Finally,thesefilesaregenerated:
md5_loweralpha-numeric#1-7_0_3800x33554432_0.rt
512MB
md5_loweralpha-numeric#1-7_1_3800x33554432_0.rt
512MB
md5_loweralpha-numeric#1-7_2_3800x33554432_0.rt
512MB
md5_loweralpha-numeric#1-7_3_3800x33554432_0.rt
512MB
md5_loweralpha-numeric#1-7_4_3800x33554432_0.rt
512MB
md5_loweralpha-numeric#1-7_5_3800x33554432_0.rt
512MB
Nowtherainbowtablegenerationprocesscomplete.
Step2:Usertsortprogramtosortrainbowtables
Therainbowtablesgeneratedbyrtgenprogramneedsomepostprocessingtomaketablelookupeasier.Thertsortprogramisusedtosortthe"endpoint"ofallrainbowchainsinarainbowtable.
Usefollowingcommands:
rtsortmd5_loweralpha-numeric#1-7_0_3800x33554432_0.rt
rtsortmd5_loweralpha-numeric#1-7_1_3800x33554432_0.rt
rtsortmd5_loweralpha-numeric#1-7_2_3800x33554432_0.rt
rtsortmd5_loweralpha-numeric#1-7_3_3800x33554432_0.rt
rtsortmd5_loweralpha-numeric#1-7_4_3800x33554432_0.rt
rtsortmd5_loweralpha-numeric#1-7_5_3800x33554432_0.rt
Eachcommandabovetakesabout1to2minutestocomplete.Thertsortprogramwillwritethesortedrainbowtabletotheoriginalfile.
Don'tinterruptthertsortprogram;otherwisetherainbowtablebeingsortedwillbedamaged.
Ifthefreememorysizeofyoursystemissmallerthanthesizeoftherainbowtablebeingsorted,temporaryharddiskspaceaslargeastherainbowtablesizewillbeneededtostoreintermediatedata.
Nowtherainbowtablesortingprocesscomplete.
Step3:Usercrackprogramtolookuprainbowtables
Thercrackprogramisusedtolookuptherainbowtables.Itonlyacceptssortedrainbowtables.
Assumethesortedrainbowtablesareplacedinc:\rtdirectory,tocracksinglehashthecommandlinewillbe:
rcrackc:\rt\*.rt-hyour_hash_comes_here
Thefirstparameterspecifiesthepathtotherainbowtablestolookup.The"*"and"?"charactercanbeusedtospecifymultiplefiles.
Normallyittakessecondsortensofsecondstofinish,iftheplaintextiswithintheselectedcharsetandplaintextlengthrange.Otherwise,ittakesmuchlongertimetosearchallthetablesonlytofindnothing.
Tocrackmultiplehashes,placeallthehashesinatextfilewitheachhashinaline.Andthenspecifyfilenameinrcrackcommandline:
rcrackc:\rt\*.rt-lhash_list_file
Iftherainbowtablesyougenerateuselmalgorithm,thercrackp
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 單位管理制度分享匯編【職工管理篇】十篇
- 高中語文常見的修辭方法及其辨析
- 單位管理制度呈現(xiàn)合集【職工管理篇】十篇
- 單位管理制度呈現(xiàn)大合集【人員管理篇】
- 《壽險經(jīng)營的命脈》課件
- 《看見學(xué)生的需要》課件
- 《班孫楠消防日》課件
- 物流行業(yè)人事工作總結(jié)
- 過年小學(xué)作文15篇
- 寵物行業(yè)寵物護(hù)理培訓(xùn)總結(jié)
- 快速出具舊機(jī)動車評估報告
- 人員保有培訓(xùn)課件
- 中職課程思政說課比賽 課件
- 臺大歐麗娟《紅樓夢》公開課全部筆記
- 公司報價管理辦法
- 農(nóng)貿(mào)市場安全生產(chǎn)風(fēng)險分級管控和隱患排查治理雙體系方案全套資料2019-2020完整實施方案模板
- 網(wǎng)絡(luò)安全設(shè)備巡檢報告
- 人教版 五年級上冊道德與法治全冊各課及單元同步檢測試卷【含答案】
- T梁濕接縫及橫隔梁施工方案
- 掛籃檢查驗收記錄表
- 小學(xué)勞動教育培訓(xùn)心得體會
評論
0/150
提交評論