Braiflayer
BraiflayerisaProof-of-Coceptbraiwalletcrackigtoolthatuseslibsecp256k1forpubkeygeeratio.ItwasorigiallyreleasedaspartofmyDEFCONtalkaboutcrackigbraiwallets(slides,video,why).
TheameisareferecetoMidFlayers,araceofmostersfromtheDugeos&Dragosrole-playiggame.Theyeatbrais,psioicallyeslavepeopleadlooklikelovecraftiahorrors.
ThecurretreleaseismorethafourtimesfasterthatheDEFCONrelease,admayfeatureshavebeeadded.
Ifbraiflayerisusefultoyou,pleasegetitouchtoletmekow.I'mveryiterestediayresearchit'sbeigusedfor,adI'mgeerallyhappytocollaboratewithacademicgroups.
DisclaimerJustbecauseyoucastealsomeoe'smoeydoes'tmeayoushould.Stealigwouldmakeyouajerk.Do'tbeajerk.
Nosupportwillbeprovidedatthistime,adImayigoreorcloseissuesrequestigsupportwithoutrespodig.
THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANYEXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALLTHECOPYRIGHTHOLDERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENTOFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,ORTORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHISSOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.
UsageBasicPrecomputethebloomfilter:
hex2blfexample.hexexample.blf
RuBraiflayeragaistit:
braiflayer-v-bexample.blf-iphraselist.txt
or
your_geerator|braiflayer-v-bexample.blf
AdvacedBraiflayer'sdesigisheavilyifluecedbyUixphilosophy.It(mostly)doesoethig:hutfortastybraiwallets.Amajorfeatureitdoesothaveisgeeratigcadidatepasswords/passphrases.Therearepletyofothergreattoolsthatdothat,adbraiflayerishappytohaveyoupipetheiroutputtoit.
Ufortuately,braiflayerisotcurretlymultithreaded.Ifyouwattohaveitkeepmultiplecoresbusy,you'llhavetocomeupwithawaytodistributetheworkyourself(braiflayer's-ad-koptiosmayhelp).Imytestig,braiflayerbeefitssigificatlyfromhyperthreadig,soyoumaywattorutwocopiesperphysicalcore.Alsoworthotigisthatbraiflayermmapsitsdatafilesisharedmemory,soadditioalbraiflayerprocessesdootuseupthatmuchadditioalRAM.
Whileotstrictlyrequired,itishighlyrecommededtousethefollowigoptios:
-mFILELoadtheecmulttablefromFILE(geeratedwithecmtabge)ratherthacomputigitostartup.Thiswillallowmultiplebraiflayerprocessestosharethesametableimemory,adsigifigatlyreducestartuptimewheusigalargetable.
-fFILEVerifycheckbloomfiltermatchesagaistFILE,alistofallhash160sgeeratedwithsort-uexample.hex|xxd-r-p>example.biEoughaddressesexistotheBitcoietworktocausefalsepositivesithebloomfilter,thisoptiowillsuppressthem.
Braiflayersupportsafewothertypesofiputviathe-toptio:
-tkeccakpassphrasestobehashedwithkeccak256(someethereumtools)
-tprivrawprivatekeys-thiscabeusedtosupportarbitrarydetermiisticwalletschemesviaaexteralprogram.Aytrailigdataafterthehexecodedprivatekeywillbeicludedibraiflayer'soutputaswell,forreferece.Seealsothe-Ioptioifyouwattocrackabuchofsequetialkeys,whichhasspecialspeedoptimizatios.
-twarpsaltsorpasswords/passphrasesforWarpWallet
-tbwiosaltsorpasswords/passphrasesforbraiwallet.io
-tbv2saltsorpasswords/passphrasesforbraiv2-thisoeisveryslowoCPU,howevertheparameterchoicesmakeitagreattargetforGPUsadFPGAs.
-trushpasswordsforpassword-protectedrushwallets-passthefragmet(thepartoftheurlafterthe#)usig-r.Almostallwrogpasswordswillberejectedevewithoutabloomfilter.
Addresstypescabespecifiedwiththe-coptio:
-cuucompressedaddresses
-cccompressedaddresses
-ceethereumaddresses
-cxmostsigifigatbitsofpublicpoit'sxcoordiate
It'spossibletocombietwoormoreofthese,e.g.thedefaultis-cuc.
Aicremetalprivatekeybruteforcemodeisavailableforfasofdirectory.io,try
braiflayer-v-I0000000000000000000000000000000000000000000000000000000000000001-bexample.blf
Seetheoutputofbraiflayer-hformoredetailedusageifo.
Alsoicludedisblfchk-youcapipeithexecodedhash160tocheckabloomfilterfilefor.It'sveryfast-itcaeasilycheckmilliosofhash160spersecod.NotetirelysurewhatthisisgoodforbutI'msureyou'llcomeupwithsomethig.
BuildigShouldcompileoLiuxwithmakeprovidedyouhavetherequireddevellibsistalled(atleastopessladgmparerequiredalogwithlibsecp256k1'sbuilddepedecies).Ireallyeedtolearautotools.Ifyoufileaissueaboutabuildfailureilibsecp256k1Iwillcloseit.
Depedeciesshouldistallwith
aptistallbuild-essetiallibgmp-devlibssl-devSupportedbuildtargetiscurretlyUbutu20.04oamd64/x86_64.Issueswithbuildigforotherplatformsprobablywo’tbefixed.Iparticular,KaliLiuxisotsupported.SupportforoperatigsystemsotherthaLiuxwouldrequireextesiverefactorigofBraiflayer'smemoryoptimizatiosadisothappeig.
Redistributioofcompiledbraiflayerbiariesisprohibited,aduauthorizedbiariesprobablycotaimalware.
AuthorsThebulkofBraiflayerwaswrittebyRyaCastellucci.NicolasCourtoisadGuagyaSogcotributedthecodeiec_pubkey_fast.cwhichmorethadoublesthespeedofpublickeycomputatioscomparedwiththestocksecp256k1libraryfromBitcoi.Thiscodeusesamuchlargertableforecmultiplicatioadoptimizedroutiesforecadditioaddoublig.










评论