RainbowCrack官方使用指南英文_第1頁
RainbowCrack官方使用指南英文_第2頁
RainbowCrack官方使用指南英文_第3頁
RainbowCrack官方使用指南英文_第4頁
RainbowCrack官方使用指南英文_第5頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論