RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
3.62k stars 979 forks source link

Auto load "mf_user_keys.dic" from spiffs [idea] #2405

Open ghiki opened 2 weeks ago

ghiki commented 2 weeks ago

Is your feature request related to a problem? Please describe.

When you do some attack, to load the keys file (whe you know, for testing for example) is very repetitive to do "-d xxx.dic" or "mem load -f xxxx" before doing

Describe the solution you'd like

Dictionary file (or files) in spiffs that loads when starting any type of attack (obviously, this will do only when "ifdef WITH_FLASH")

Describe alternatives you've considered

Load manually before with

mem load -f mfc_default_keys -m         -> upload MFC keys
mem load -f t55xx_default_pwds -t       -> upload T55XX passwords
mem load -f iclass_default_keys -i      -> upload iCLASS keys

or passing to the attack command manually

Additional context

iceman1001 commented 1 week ago

you only need to upload the default dictionaries once on a RDV4 / spifffs based device. Its stored in eeprom and read from eeprom when called in a function that takes advantage of that functionality.

ghiki commented 1 week ago

Yep, but for example, a "hf mf autopwn" or any other, doesn't use any dic file although this file exists in the spiffs (only uses the hardcoded ones), the main idea is to use if the device has flash memory and a file with user Keys exist on It (now, if you want to use It, you need to load previously with "mem/data" command)

iceman1001 commented 1 week ago

In that case are you thinking about updating hf mf autopwn to take advantage of the stored dictionary.

Uploading before to spiffs shouldn't affect autopwn to use it. Like I said you only need to upload once. Well, if the default dictionary file gets some additions you will of course re-upload it. Doesn't happen that often.