Commit graph

717 commits

Author SHA1 Message Date
noproto
92122b2cdf NFC app UI updates, MVP 2024-09-03 15:19:12 -04:00
noproto
3cb3eab118 Update TODO 2024-09-03 11:36:19 -04:00
noproto
2e0cd320c7 Static encrypted nonce collection 2024-09-03 09:26:14 -04:00
noproto
6e9fe1edd8 Don't recalibrate hard PRNG tags 2024-09-03 05:54:59 -04:00
noproto
2cb2f05ea9 Backdoor nested calibration 2024-09-02 22:34:44 -04:00
noproto
9c7120ec91 Backdoor working up to calibration 2024-09-02 18:53:39 -04:00
noproto
ccc4326574 Backdoor read 2024-09-02 12:45:39 -04:00
noproto
2abeb071fd Fix regression for regular nested attack 2024-09-02 10:28:50 -04:00
noproto
90d0c3d095 Hardnested support 2024-09-01 22:30:37 -04:00
noproto
4c14594ebb Relocate backdoor detection 2024-08-28 09:26:59 -04:00
noproto
c0331ba2e2 Should be detecting both backdoors now 2024-08-27 19:35:33 -04:00
noproto
0b33c85b8b Collect nonces again 2024-08-27 16:16:38 -04:00
noproto
5235592054 Only use dicts in search_dicts_for_nonce_key if we have them 2024-08-27 06:32:00 -04:00
noproto
26845cbdc5 Misc bugfixes 2024-08-21 00:50:27 -04:00
noproto
c1f01ce66a Code cleanup 2024-08-20 18:04:07 -04:00
noproto
75a0e4bc9d Update found keys, second attempt 2024-08-20 16:33:13 -04:00
noproto
bbc10cdfaf Update found keys, initial attempt 2024-08-20 16:31:39 -04:00
noproto
b7e63bf499 Hard PRNG support for accelerated dictionary attack 2024-08-19 23:00:36 -04:00
noproto
08ca794b7d Renaming some variables 2024-08-19 07:37:21 -04:00
noproto
0af28fb221 Refactor to nested dictionary attack 2024-08-19 07:33:17 -04:00
noproto
79bc887f95 Initial accelerated dictionary attack for weak PRNGs 2024-08-18 20:38:24 -04:00
noproto
cc8cae770f FM11RF08S backdoor detection 2024-08-15 17:58:37 -04:00
noproto
8d1a2203ae Merge remote-tracking branch 'origin/dev' into nestednonces 2024-08-15 10:58:32 -04:00
noproto
01b19483c5 First attempt disambiguous nonce implementation 2024-08-14 02:25:57 -04:00
noproto
6332ec7478 Fix valid_nonce 2024-08-11 14:30:26 -04:00
noproto
3acba77070 Clean redundant code 2024-08-09 22:08:35 -04:00
noproto
5feeae8972 Fix nonce logging 2024-08-09 22:01:43 -04:00
noproto
4b44288c96 Add note to fix nonce logging 2024-08-09 20:38:45 -04:00
noproto
8dd3daf625 Fixed parity bit collection 2024-08-09 20:22:19 -04:00
daubsi
4f75d92747
Added protocol for Dickert MAHS garage door remote control (#3826)
* Added Dickert MAHS protocol
* Update protocol_items.c
* Added Dickert MAHS protocol reference
* Update protocol_items.h
* Removed logging and some defines
* Reworked the send code to properly adhere to Dickert timings
* Added subghz unit test for Dickert MAHS
* Minor fix in encoding length
* Added Dickert Decoder Test to subghz unit tests and set repeat=10
* SubGhz: cleanup dickert mahs code and documentation
* SubGhz: correct type in for statement in dickert mahs

Co-authored-by: あく <alleteam@gmail.com>
2024-08-09 17:24:57 +09:00
RebornedBrain
3672efa7da
Now fifo size in ST25 chip is calculated properly (#3829)
Co-authored-by: あく <alleteam@gmail.com>
2024-08-09 16:08:05 +09:00
Georgii Surkov
f4122a924a
[FL-3841] FuriEventLoop Pt.2 (#3703)
* Abstract primitive type from main logic in FuriEventLoop
* Remove message_queue_i.h
* Add stream buffer support for event loop
* Add semaphore support for event loop
* Add temporary unit test workaround
* Make the linter happy
* Add mutex support for event loop
* Implement event subscription and unsubscription while the event loop is running
* Implement edge events
* Fix leftover logical errors
* Add event loop timer example application
* Implement flag-based edge trigger and one-shot mode
* Add event loop mutex example application
* Only notify the event loop if stream buffer is at or above its trigger level
* Reformat comments
* Add event loop stream buffer example application
* Add event loop multiple elements example application
* Improve event loop flag names
* Remove redundant signal handler as it is already handled by the event loop
* Refactor Power service, improve ViewHolder
* Use ViewHolder instead of ViewDispatcher in About app
* Enable ViewDispatcher queue on construction, deprecate view_dispatcher_enable_queue()
* Remove all invocations of view_dispatcher_enable_queue()
* Remove app-scened-template
* Remove missing library from target.json
* Port Accessor app to ViewHolder
* Make the linter happy
* Add example_view_holder application, update ViewHolder docs
* Add example_view_dispatcher application, update ViewDispatcher docs
* Replace FuriSemaphore with FuriApiLock, remove workaround delay
* Fix logical error
* Fix another logical error
* Use the sources directive to speed up compilation
* Use constant define macro
* Improve FuriEventLoop documentation
* Improve FuriEventLoop documentation once more
* Bump API Version
* Gui: remove redundant checks from ViewDispatcher
* Gui: remove dead ifs from ViewDispatcher

Co-authored-by: Silent <CookiePLMonster@users.noreply.github.com>
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
2024-08-07 12:49:41 +09:00
noproto
7d2cab5d77 Modify parity collection 2024-08-05 10:29:54 -04:00
noproto
09f8a73751 Use median calibrated distance, collect parity bits 2024-08-04 23:53:21 -04:00
Nathan N
e61b543da4
Merge branch 'flipperdevices:dev' into nestednonces 2024-08-04 08:29:21 -04:00
noproto
6d666389fb Use EXT_PATH instead of ANY_PATH 2024-08-04 08:30:02 -04:00
あく
4d985ba8f8
Storage: remove LFS (#3577)
* Storage: drop internal storage

* Storage: rollback some unnecessary changes

* Storage: rollback some unnecessary changes part 2

* Storage: cleanup various defines and int handling. Ble: allow short connection interval if internal flash is not used.

* Storage: do not return storage if it is not ready

* Save PIN code to RTC, update settings

* Simplify the code, clean up includes

* Rearrange some code

* apps: storage_move_to_sd: conditionally enable with --extra-define=STORAGE_INT_ON_LFS

* Load Desktop settings automatically

* Redirect /any to /ext

* Abolish storage_move_to_sd app

* Remove as many mentions of ANY_PATH as possible

* Fix desktop settings wrongly not loading

* Improve desktop settings handling and strings

* Load BLE settings and keys automatically

* Improve BLE configuration procedure

* Do not load bluetooth keys twice if they were already loaded

* Load dolphin state automatically

* Fix merge artifact

* Load notification settings automatically

* Update desktop settings strings

* Load expansion settings automatically

* Do not use thread signals to reload desktop settings

* Load region data automatically, separate to its own hook

* Improve ble behaviour with no keys

* Fix Dolphin state not resetting correctly

* Add a status check

* Make Desktop save its own settings

* Check result when taking and releasing mutex

* Improve default thread signal handling in FuriEventLoop

* Make bt service in charge of saving settings, add settings api

* Fix a deadlock due to timer thread not receiving time

* Lock core2 when reinitialising bt

* Update clang-format

* Revert "Update clang-format"

This reverts commit d61295ac063c6ec879375ceeab54d6ff2c90a9a1.

* Format sources with clang-format

* Revert old stack size for desktop settings

* Allocate big struct dynamically

* Simplify PIN comparison

* Save pointer to storage in Desktop object

* Fix region provisioning for hardware regions

* Remove stale TODO + siimplify code

* Clean up region.c

* Use sizeof instead of macro define

* Limit PIN length to 10 for consistency

* Emit a warning upon usage of /any

* Add delay after finding flipper

* Remove unnecessary delay

* Remove all mentions of STORAGE_INT_ON_LFS

* Remove littlefs and internal storage

* Remove all possible LittleFS mentions

* Fix browser tab in Archive

* Ble: fix connection interval explanation

* Bump API Symbols

* BLE: Update comments interval connection comments

* Storage: clear FuriHalRtcFlagStorageFormatInternal if set

---------

Co-authored-by: Georgii Surkov <georgii.surkov@outlook.com>
Co-authored-by: hedger <hedger@nanode.su>
Co-authored-by: Georgii Surkov <37121527+gsurkov@users.noreply.github.com>
2024-08-04 10:54:02 +01:00
noproto
9ba78bf085 Identified method to reduce candidate states 2024-08-03 21:35:52 -04:00
noproto
213ec1dfb0 Fix compilation 2024-08-02 08:15:53 -04:00
noproto
ef16770f5e Dictionary attack structure 2024-08-02 07:04:43 -04:00
noproto
b15460315e Nonce logging 2024-08-01 22:16:10 -04:00
noproto
cf6d6bb9af Initial structure for nonce collection 2024-08-01 09:10:02 -04:00
BarTender NZ
bec6bd381f
Add lfrfid GProxII support (#3796)
* Add lfrfid GProxII support
* Add rfid GProxII support and correct linting issues.
* Add GProxII support for 26 and 36 bit cards
* Add GProxII 26 and 36 bit key - fixing minor typos
* Add GProxII 26 and 36 bit key - fix typo
* Add GProxII 26 and 36 Bit support - Change comment to not fail lint checking on XOR Value

Co-authored-by: あく <alleteam@gmail.com>
2024-08-01 07:21:49 +09:00
DerSkythe
56fef61c66
fix: Ensure proper closure of variadic function in mjs_array (#3798)
The changes ensure that the `va_end` function is always called after `c_vsnprintf` in `mjs_array.c`

Co-authored-by: あく <alleteam@gmail.com>
2024-08-01 02:12:26 +09:00
Astra
01b402ba2b
[FL-3827] iButton ID writing (#3734)
* Function naming corrections and enabled writing ID for all dallas blanks
* Enable ID writing for ds1971 and ds1996
* Sync API Symbols

Co-authored-by: あく <alleteam@gmail.com>
2024-08-01 01:59:41 +09:00
hedger
380ec2ac46
Added -Wundef to compiler options (#3815)
* fbt: added -Wundef to compiler options; libs: various small fixes for missing defines; desktop: proper access to current RTOS config
* apps: fixes for FURI_DEBUG handling
* rpc: unified definition checks
* Cleanup various defines use
* Cleanup configs and move SVCall ISR priority configuration to furi_hal_interrupts

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2024-08-01 01:38:20 +09:00
Georgii Surkov
8aa129395f
[FL-3871] Infrared: check for negative timings (#3788) 2024-07-16 20:54:09 +09:00
hedger
ffa3996a5e
[FL-3867] Code formatting update (#3765)
* clang-format: AllowShortEnumsOnASingleLine: false
* clang-format: InsertNewlineAtEOF: true
* clang-format: Standard:        c++20
* clang-format: AlignConsecutiveBitFields
* clang-format: AlignConsecutiveMacros
* clang-format: RemoveParentheses: ReturnStatement
* clang-format: RemoveSemicolon: true
* Restored RemoveParentheses: Leave, retained general changes for it
* formatting: fixed logging TAGs
* Formatting update for dev

Co-authored-by: あく <alleteam@gmail.com>
2024-07-15 13:38:49 +09:00
hedger
1a8f6dbed8
toolchain: v38; clangd as default language server (#3774)
* libs: removed cxxheaderparser submodule, expecting one from toolchain
* toolchain: v38
* vscode: now using clangd from toolchain
* vscode: clangd path in config is now generated by fbt
* vscode, fbt: improved clangd path generation
* fbt: fixed LANG_SERVER handling; switched to clangd as default
* vscode: removed deprecated options from config
* ufbt: project template: updated clang-format, added clangd config
* ufbt: now using clangd as default language server
* ufbt: now using clangd as default language server
2024-07-15 10:56:21 +09:00
Sergei Gavrilov
fcf60e35a3
tar archive: fix double free (#3781)
Co-authored-by: hedger <hedger@nanode.su>
2024-07-10 22:45:52 +03:00