Procházet zdrojové kódy

Merge sentry_safe from https://github.com/xMasterX/all-the-plugins

Willy-JL před 2 roky
rodič
revize
eb9dbbeb5b

+ 0 - 21
sentry_safe/LICENSE

@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2022 Etienne Sellan
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

+ 0 - 26
sentry_safe/README.md

@@ -1,26 +0,0 @@
-# flipperzero-sentry-safe-plugin
-
-Flipper zero exploiting vulnerability to open any Sentry Safe and Master Lock electronic safe without any pin code.
-
-[Vulnerability described here](https://github.com/H4ckd4ddy/bypass-sentry-safe)
-
-### Installation
-
-- Download [last release fap file](https://github.com/H4ckd4ddy/flipperzero-sentry-safe-plugin/releases/latest)
-- Copy fap file to the apps folder of your flipper SD card
-
-### Usage
-
-- Start "Sentry Safe" plugin
-- Place wires as described on the plugin screen
-- Press enter
-- Open safe
-
-### Build
-
-- Recursively clone your base firmware (official or not)
-- Clone this repository in `applications_user`
-- Build with `./fbt fap_dist APPSRC=applications_user/flipperzero-sentry-safe-plugin`
-- Retreive builed fap in dist subfolders
-
-(More info about build tool [here](https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/fbt.md))

+ 4 - 4
sentry_safe/application.fam

@@ -5,10 +5,10 @@ App(
     entry_point="sentry_safe_app",
     entry_point="sentry_safe_app",
     requires=["gui"],
     requires=["gui"],
     stack_size=1 * 1024,
     stack_size=1 * 1024,
-    order=40,
+    order=80,
     fap_icon="safe_10px.png",
     fap_icon="safe_10px.png",
     fap_category="GPIO",
     fap_category="GPIO",
-    fap_author="@H4ckd4ddy",
-    fap_version=(1, 0),
+    fap_author="@H4ckd4ddy & @xMasterX (ported to latest firmware)",
+    fap_version="1.1",
     fap_description="App exploiting vulnerability to open any Sentry Safe and Master Lock electronic safe without any pin code via UART pins.",
     fap_description="App exploiting vulnerability to open any Sentry Safe and Master Lock electronic safe without any pin code via UART pins.",
-)
+)

binární
sentry_safe/img/1.png


binární
sentry_safe/img/2.png


+ 1 - 1
sentry_safe/sentry_safe.c

@@ -150,8 +150,8 @@ int32_t sentry_safe_app(void* p) {
             }
             }
         }
         }
 
 
-        view_port_update(view_port);
         furi_mutex_release(sentry_state->mutex);
         furi_mutex_release(sentry_state->mutex);
+        view_port_update(view_port);
     }
     }
 
 
     // Reset GPIO pins to default state
     // Reset GPIO pins to default state