Skip to content

Commit 744c8e6

Browse files
authored
Picopass save partial (#85)
1 parent ebb6ce8 commit 744c8e6

5 files changed

+14
-9
lines changed

.catalog/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ NOTE: If the screen says “Got std key” AND stays on 0/18, then loclass isn't
1919

2020
1. Download the loclass log (_sdcard/apps_data/picopass/.loclass.log_) from your Flipper Zero.
2121
2. Use [loclass.ericbetts.dev](https://loclass.ericbetts.dev/) or a tool of your choice to calculate the key
22-
3. Copy the key to _iclass_elite_dict_user.txt_ and place in _sdcard/apps_data/picopass/_
22+
3. Copy the key to _iclass_elite_dict_user.txt_ and place in _sdcard/apps_data/picopass/assets/_
2323
4. Run _Elite Dict. Attack_ from the picopass main menu
2424
5. Present card to the back of the Flipper Zero.
2525

.catalog/changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.10
2+
- Fix missing folder in readme
3+
- Allow partial save for any read failure
14
## 1.9
25
- Fix bug (#77) with loclass
36
- Better loclass notes

application.fam

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ App(
1010
],
1111
stack_size=4 * 1024,
1212
fap_description="App to communicate with NFC tags using the PicoPass(iClass) format",
13-
fap_version="1.9",
13+
fap_version="1.10",
1414
fap_icon="125_10px.png",
1515
fap_category="NFC",
1616
fap_libs=["mbedtls"],

scenes/picopass_scene_card_menu.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ void picopass_scene_card_menu_on_enter(void* context) {
2323
PicopassBlock* AA1 = picopass->dev->dev_data.AA1;
2424

2525
bool sio = 0x30 == AA1[PICOPASS_ICLASS_PACS_CFG_BLOCK_INDEX].data[0];
26+
bool no_key = picopass_is_memset(pacs->key, 0x00, PICOPASS_BLOCK_LEN);
2627

27-
if(pacs->se_enabled) {
28+
if(no_key) {
2829
if(sio) {
2930
submenu_add_item(
3031
submenu,

scenes/picopass_scene_read_card_success.c

+7-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ void picopass_scene_read_card_success_on_enter(void* context) {
5252
if(pacs->se_enabled) {
5353
furi_string_cat_printf(credential_str, "SE enabled");
5454

55-
widget_add_button_element(
56-
widget,
57-
GuiButtonTypeRight,
58-
"More",
59-
picopass_scene_read_card_success_widget_callback,
60-
picopass);
6155
} else if(!hid_csn) {
6256
furi_string_cat_printf(credential_str, "Non-HID CSN");
6357
}
@@ -68,6 +62,13 @@ void picopass_scene_read_card_success_on_enter(void* context) {
6862
"Menu",
6963
picopass_scene_read_card_success_widget_callback,
7064
picopass);
65+
widget_add_button_element(
66+
widget,
67+
GuiButtonTypeRight,
68+
"More",
69+
picopass_scene_read_card_success_widget_callback,
70+
picopass);
71+
7172
} else if(empty) {
7273
furi_string_cat_printf(wiegand_str, "Empty");
7374
widget_add_button_element(

0 commit comments

Comments
 (0)