n0fate / chainbreaker

Mac OS X Keychain Forensic Tool
GNU General Public License v2.0
816 stars 157 forks source link

Handle multiple key candidates, print undumped data, refactor code #8

Closed gquere closed 4 years ago

gquere commented 5 years ago

Hello,

Hope this can help your projet!

Modifications:

Although I successfully tested on the few keychains I had, I might have broken a few things. You should consider adding unit/functional tests.

getaaron commented 5 years ago

Thanks for the PR

gquere commented 5 years ago

Should we delete all the commented hexdumps?

Might be sometimes useful to print hex data, although here the hexdump dependency is useless IMO and breaks things on my debian based system (no such import exists and there is no package named as such although I haven't searched more).

A simple ''.join('{:02x}'.format(data_byte) for data_byte in data) would surely do the trick.

n0fate commented 5 years ago

I will change a code for printing result soon.

      1. 오후 8:39, gquere notifications@github.com 작성:

Should we delete all the commented hexdumps? Might be sometimes useful to print hex data, although here the hexdump dependency is useless IMO and breaks things on my debian based system (no such import exists and there is no package named as such although I haven't searched more).

A simple ''.join('{:02x}'.format(data_byte) for data_byte in data)` would surely do the trick.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/n0fate/chainbreaker/pull/8?email_source=notifications&email_token=AANECFD55VXU26TYEBFWMN3PV7THDA5CNFSM4HN2CMR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWNAFY#issuecomment-493670423, or mute the thread https://github.com/notifications/unsubscribe-auth/AANECFFEFAOYLXKOM6JCUXTPV7THDANCNFSM4HN2CMRQ.

gquere commented 5 years ago

Hello,

Any plans to merge? I can change the PR a bit if there are missing things