Add XP to hacking apps

This commit is contained in:
Willy-JL
2023-03-27 06:00:36 +01:00
parent 34298e7060
commit f8e140de0c
22 changed files with 47 additions and 13 deletions

View File

@@ -1,7 +1,6 @@
#include "air_mouse.h" #include "air_mouse.h"
#include <furi.h> #include <furi.h>
#include <dolphin/dolphin.h>
#include "tracking/imu/imu.h" #include "tracking/imu/imu.h"
@@ -146,7 +145,6 @@ int32_t air_mouse_app(void* p) {
return -1; return -1;
} }
DOLPHIN_DEED(DolphinDeedPluginStart);
view_dispatcher_run(app->view_dispatcher); view_dispatcher_run(app->view_dispatcher);
imu_end(); imu_end();

View File

@@ -2,6 +2,7 @@
#include <furi.h> #include <furi.h>
#include <furi_hal.h> #include <furi_hal.h>
#include <dolphin/dolphin.h>
static bool dtmf_dolphin_app_custom_event_callback(void* context, uint32_t event) { static bool dtmf_dolphin_app_custom_event_callback(void* context, uint32_t event) {
furi_assert(context); furi_assert(context);
@@ -82,8 +83,9 @@ int32_t dtmf_dolphin_app(void* p) {
UNUSED(p); UNUSED(p);
DTMFDolphinApp* app = app_alloc(); DTMFDolphinApp* app = app_alloc();
DOLPHIN_DEED(DolphinDeedPluginStart);
view_dispatcher_run(app->view_dispatcher); view_dispatcher_run(app->view_dispatcher);
app_free(app); app_free(app);
return 0; return 0;
} }

View File

@@ -6,6 +6,7 @@
#include <gui/canvas_i.h> #include <gui/canvas_i.h>
#include <gui/gui.h> #include <gui/gui.h>
#include <input/input.h> #include <input/input.h>
#include <dolphin/dolphin.h>
//#include <math.h> //#include <math.h>
//#include <notification/notification.h> //#include <notification/notification.h>
//#include <notification/notification_messages.h> //#include <notification/notification_messages.h>
@@ -328,6 +329,7 @@ int32_t esp8266_deauth_app(void* p) {
SWiFiDeauthApp* app = malloc(sizeof(SWiFiDeauthApp)); SWiFiDeauthApp* app = malloc(sizeof(SWiFiDeauthApp));
DOLPHIN_DEED(DolphinDeedPluginStart);
esp8266_deauth_app_init(app); esp8266_deauth_app_init(app);
furi_hal_gpio_init_simple(app->m_GpioButtons.pinButtonUp, GpioModeOutputPushPull); furi_hal_gpio_init_simple(app->m_GpioButtons.pinButtonUp, GpioModeOutputPushPull);

View File

@@ -5,6 +5,7 @@
#include "scene/flipfrid_scene_select_field.h" #include "scene/flipfrid_scene_select_field.h"
#include "scene/flipfrid_scene_run_attack.h" #include "scene/flipfrid_scene_run_attack.h"
#include "scene/flipfrid_scene_load_custom_uids.h" #include "scene/flipfrid_scene_load_custom_uids.h"
#include <dolphin/dolphin.h>
#define RFIDFUZZER_APP_FOLDER "/ext/lrfid/rfidfuzzer" #define RFIDFUZZER_APP_FOLDER "/ext/lrfid/rfidfuzzer"
@@ -117,6 +118,7 @@ int32_t flipfrid_start(void* p) {
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(FlipFridEvent)); FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(FlipFridEvent));
FlipFridState* flipfrid_state = flipfrid_alloc(); FlipFridState* flipfrid_state = flipfrid_alloc();
DOLPHIN_DEED(DolphinDeedPluginStart);
flipfrid_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal); flipfrid_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal);
if(!flipfrid_state->mutex) { if(!flipfrid_state->mutex) {
FURI_LOG_E(TAG, "cannot create mutex\r\n"); FURI_LOG_E(TAG, "cannot create mutex\r\n");
@@ -268,4 +270,4 @@ int32_t flipfrid_start(void* p) {
flipfrid_free(flipfrid_state); flipfrid_free(flipfrid_state);
return 0; return 0;
} }

View File

@@ -5,6 +5,7 @@
#include "scene/ibtnfuzzer_scene_select_field.h" #include "scene/ibtnfuzzer_scene_select_field.h"
#include "scene/ibtnfuzzer_scene_run_attack.h" #include "scene/ibtnfuzzer_scene_run_attack.h"
#include "scene/ibtnfuzzer_scene_load_custom_uids.h" #include "scene/ibtnfuzzer_scene_load_custom_uids.h"
#include <dolphin/dolphin.h>
#define IBTNFUZZER_APP_FOLDER "/ext/ibtnfuzzer" #define IBTNFUZZER_APP_FOLDER "/ext/ibtnfuzzer"
@@ -119,6 +120,7 @@ int32_t ibtnfuzzer_start(void* p) {
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(iBtnFuzzerEvent)); FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(iBtnFuzzerEvent));
iBtnFuzzerState* ibtnfuzzer_state = ibtnfuzzer_alloc(); iBtnFuzzerState* ibtnfuzzer_state = ibtnfuzzer_alloc();
DOLPHIN_DEED(DolphinDeedPluginStart);
ibtnfuzzer_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal); ibtnfuzzer_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal);
if(!ibtnfuzzer_state->mutex) { if(!ibtnfuzzer_state->mutex) {
FURI_LOG_E(TAG, "cannot create mutex\r\n"); FURI_LOG_E(TAG, "cannot create mutex\r\n");
@@ -264,4 +266,4 @@ int32_t ibtnfuzzer_start(void* p) {
ibtnfuzzer_free(ibtnfuzzer_state); ibtnfuzzer_free(ibtnfuzzer_state);
return 0; return 0;
} }

View File

@@ -5,6 +5,7 @@
#include <input/input.h> #include <input/input.h>
#include <dialogs/dialogs.h> #include <dialogs/dialogs.h>
#include <ir_remote_icons.h> #include <ir_remote_icons.h>
#include <dolphin/dolphin.h>
#include <notification/notification.h> #include <notification/notification.h>
#include <notification/notification_messages.h> #include <notification/notification_messages.h>
@@ -160,6 +161,7 @@ static void app_input_callback(InputEvent* input_event, void* ctx) {
int32_t infrared_remote_app(void* p) { int32_t infrared_remote_app(void* p) {
UNUSED(p); UNUSED(p);
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(InputEvent)); FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(InputEvent));
DOLPHIN_DEED(DolphinDeedPluginStart);
// App button string // App button string
IRApp* app = malloc(sizeof(IRApp)); IRApp* app = malloc(sizeof(IRApp));

View File

@@ -21,6 +21,7 @@
#include <lib/nfc/helpers/mf_classic_dict.h> #include <lib/nfc/helpers/mf_classic_dict.h>
#include <lib/toolbox/args.h> #include <lib/toolbox/args.h>
#include <lib/flipper_format/flipper_format.h> #include <lib/flipper_format/flipper_format.h>
#include <dolphin/dolphin.h>
#define MF_CLASSIC_DICT_FLIPPER_PATH EXT_PATH("nfc/assets/mf_classic_dict.nfc") #define MF_CLASSIC_DICT_FLIPPER_PATH EXT_PATH("nfc/assets/mf_classic_dict.nfc")
#define MF_CLASSIC_DICT_USER_PATH EXT_PATH("nfc/assets/mf_classic_dict_user.nfc") #define MF_CLASSIC_DICT_USER_PATH EXT_PATH("nfc/assets/mf_classic_dict_user.nfc")
@@ -1189,6 +1190,7 @@ void start_mfkey32_thread(ProgramState* program_state) {
int32_t mfkey32_main() { int32_t mfkey32_main() {
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent)); FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));
DOLPHIN_DEED(DolphinDeedPluginStart);
ProgramState* program_state = malloc(sizeof(ProgramState)); ProgramState* program_state = malloc(sizeof(ProgramState));
mfkey32_state_init(program_state); mfkey32_state_init(program_state);

View File

@@ -11,6 +11,7 @@
#include <nrf24.h> #include <nrf24.h>
#include "mousejacker_ducky.h" #include "mousejacker_ducky.h"
#include <NRF24_Mouse_Jacker_icons.h> #include <NRF24_Mouse_Jacker_icons.h>
#include <dolphin/dolphin.h>
#define TAG "mousejacker" #define TAG "mousejacker"
#define LOGITECH_MAX_CHANNEL 85 #define LOGITECH_MAX_CHANNEL 85
@@ -286,6 +287,7 @@ void start_mjthread(PluginState* plugin_state) {
int32_t mousejacker_app(void* p) { int32_t mousejacker_app(void* p) {
UNUSED(p); UNUSED(p);
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent)); FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));
DOLPHIN_DEED(DolphinDeedPluginStart);
PluginState* plugin_state = malloc(sizeof(PluginState)); PluginState* plugin_state = malloc(sizeof(PluginState));
mousejacker_state_init(plugin_state); mousejacker_state_init(plugin_state);

View File

@@ -1,4 +1,5 @@
#include "nfc_magic_i.h" #include "nfc_magic_i.h"
#include <dolphin/dolphin.h>
bool nfc_magic_custom_event_callback(void* context, uint32_t event) { bool nfc_magic_custom_event_callback(void* context, uint32_t event) {
furi_assert(context); furi_assert(context);
@@ -160,6 +161,7 @@ int32_t nfc_magic_app(void* p) {
UNUSED(p); UNUSED(p);
NfcMagic* nfc_magic = nfc_magic_alloc(); NfcMagic* nfc_magic = nfc_magic_alloc();
DOLPHIN_DEED(DolphinDeedPluginStart);
scene_manager_next_scene(nfc_magic->scene_manager, NfcMagicSceneStart); scene_manager_next_scene(nfc_magic->scene_manager, NfcMagicSceneStart);
view_dispatcher_run(nfc_magic->view_dispatcher); view_dispatcher_run(nfc_magic->view_dispatcher);

View File

@@ -12,6 +12,7 @@
#include <dolphin/dolphin.h> #include <dolphin/dolphin.h>
#include <nrf24.h> #include <nrf24.h>
#include <u8g2.h> #include <u8g2.h>
#include <dolphin/dolphin.h>
#define TAG "nrf24scan" #define TAG "nrf24scan"
#define VERSION "2.2" #define VERSION "2.2"
@@ -1331,6 +1332,7 @@ static void render_callback(Canvas* const canvas, void* ctx) {
int32_t nrf24scan_app(void* p) { int32_t nrf24scan_app(void* p) {
UNUSED(p); UNUSED(p);
APP = malloc(sizeof(Nrf24Scan)); APP = malloc(sizeof(Nrf24Scan));
DOLPHIN_DEED(DolphinDeedPluginStart);
APP->event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent)); APP->event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));
APP->plugin_state = malloc(sizeof(PluginState)); APP->plugin_state = malloc(sizeof(PluginState));
APP->plugin_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal); APP->plugin_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal);

View File

@@ -4,6 +4,7 @@
#include <input/input.h> #include <input/input.h>
#include <notification/notification_messages.h> #include <notification/notification_messages.h>
#include <stdlib.h> #include <stdlib.h>
#include <dolphin/dolphin.h>
#include <nrf24.h> #include <nrf24.h>
#include <toolbox/stream/file_stream.h> #include <toolbox/stream/file_stream.h>
@@ -314,6 +315,7 @@ static void start_sniffing() {
int32_t nrfsniff_app(void* p) { int32_t nrfsniff_app(void* p) {
UNUSED(p); UNUSED(p);
DOLPHIN_DEED(DolphinDeedPluginStart);
uint8_t address[5] = {0}; uint8_t address[5] = {0};
uint32_t start = 0; uint32_t start = 0;
hexlify(address, 5, top_address); hexlify(address, 5, top_address);

View File

@@ -1,4 +1,5 @@
#include "picopass_i.h" #include "picopass_i.h"
#include <dolphin/dolphin.h>
#define TAG "PicoPass" #define TAG "PicoPass"
@@ -191,6 +192,7 @@ int32_t picopass_app(void* p) {
UNUSED(p); UNUSED(p);
picopass_migrate_from_old_folder(); picopass_migrate_from_old_folder();
DOLPHIN_DEED(DolphinDeedPluginStart);
Picopass* picopass = picopass_alloc(); Picopass* picopass = picopass_alloc();
scene_manager_next_scene(picopass->scene_manager, PicopassSceneStart); scene_manager_next_scene(picopass->scene_manager, PicopassSceneStart);
@@ -200,4 +202,4 @@ int32_t picopass_app(void* p) {
picopass_free(picopass); picopass_free(picopass);
return 0; return 0;
} }

View File

@@ -4,6 +4,7 @@
#include <furi_hal.h> #include <furi_hal.h>
#include <lib/flipper_format/flipper_format.h> #include <lib/flipper_format/flipper_format.h>
#include "protocols/protocol_items.h" #include "protocols/protocol_items.h"
#include <dolphin/dolphin.h>
static bool pocsag_pager_app_custom_event_callback(void* context, uint32_t event) { static bool pocsag_pager_app_custom_event_callback(void* context, uint32_t event) {
furi_assert(context); furi_assert(context);
@@ -198,6 +199,7 @@ int32_t pocsag_pager_app(void* p) {
UNUSED(p); UNUSED(p);
POCSAGPagerApp* pocsag_pager_app = pocsag_pager_app_alloc(); POCSAGPagerApp* pocsag_pager_app = pocsag_pager_app_alloc();
DOLPHIN_DEED(DolphinDeedPluginStart);
view_dispatcher_run(pocsag_pager_app->view_dispatcher); view_dispatcher_run(pocsag_pager_app->view_dispatcher);
pocsag_pager_app_free(pocsag_pager_app); pocsag_pager_app_free(pocsag_pager_app);

View File

@@ -2,6 +2,7 @@
* See the LICENSE file for information about the license. */ * See the LICENSE file for information about the license. */
#include "app.h" #include "app.h"
#include <dolphin/dolphin.h>
RawSamplesBuffer *RawSamples, *DetectedSamples; RawSamplesBuffer *RawSamples, *DetectedSamples;
extern const SubGhzProtocolRegistry protoview_protocol_registry; extern const SubGhzProtocolRegistry protoview_protocol_registry;
@@ -258,6 +259,7 @@ static bool keyboard_view_dispatcher_navigation_callback(void* ctx) {
int32_t protoview_app_entry(void* p) { int32_t protoview_app_entry(void* p) {
UNUSED(p); UNUSED(p);
ProtoViewApp* app = protoview_app_alloc(); ProtoViewApp* app = protoview_app_alloc();
DOLPHIN_DEED(DolphinDeedPluginStart);
/* Create a timer. We do data analysis in the callback. */ /* Create a timer. We do data analysis in the callback. */
FuriTimer* timer = furi_timer_alloc(timer_callback, FuriTimerTypePeriodic, app); FuriTimer* timer = furi_timer_alloc(timer_callback, FuriTimerTypePeriodic, app);

View File

@@ -2,6 +2,7 @@
#include <gui/gui.h> #include <gui/gui.h>
#include <input/input.h> #include <input/input.h>
#include <stdlib.h> #include <stdlib.h>
#include <dolphin/dolphin.h>
#include <furi_hal.h> #include <furi_hal.h>
@@ -84,6 +85,7 @@ int32_t sentry_safe_app(void* p) {
UNUSED(p); UNUSED(p);
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(Event)); FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(Event));
DOLPHIN_DEED(DolphinDeedPluginStart);
SentryState* sentry_state = malloc(sizeof(SentryState)); SentryState* sentry_state = malloc(sizeof(SentryState));
@@ -166,4 +168,4 @@ int32_t sentry_safe_app(void* p) {
free(sentry_state); free(sentry_state);
return 0; return 0;
} }

View File

@@ -5,6 +5,7 @@
#include <input/input.h> #include <input/input.h>
#include <stdlib.h> #include <stdlib.h>
#include "spectrum_analyzer.h" #include "spectrum_analyzer.h"
#include <dolphin/dolphin.h>
#include <lib/drivers/cc1101_regs.h> #include <lib/drivers/cc1101_regs.h>
#include "spectrum_analyzer_worker.h" #include "spectrum_analyzer_worker.h"
@@ -400,6 +401,7 @@ void spectrum_analyzer_free(SpectrumAnalyzer* instance) {
int32_t spectrum_analyzer_app(void* p) { int32_t spectrum_analyzer_app(void* p) {
UNUSED(p); UNUSED(p);
DOLPHIN_DEED(DolphinDeedPluginStart);
SpectrumAnalyzer* spectrum_analyzer = spectrum_analyzer_alloc(); SpectrumAnalyzer* spectrum_analyzer = spectrum_analyzer_alloc();
InputEvent input; InputEvent input;
@@ -523,4 +525,4 @@ int32_t spectrum_analyzer_app(void* p) {
spectrum_analyzer_free(spectrum_analyzer); spectrum_analyzer_free(spectrum_analyzer);
return 0; return 0;
} }

View File

@@ -1,6 +1,7 @@
#include "subbrute_i.h" #include "subbrute_i.h"
#include "subbrute_custom_event.h" #include "subbrute_custom_event.h"
#include "scenes/subbrute_scene.h" #include "scenes/subbrute_scene.h"
#include <dolphin/dolphin.h>
#define TAG "SubBruteApp" #define TAG "SubBruteApp"
@@ -173,6 +174,7 @@ void subbrute_popup_closed_callback(void* context) {
int32_t subbrute_app(void* p) { int32_t subbrute_app(void* p) {
UNUSED(p); UNUSED(p);
DOLPHIN_DEED(DolphinDeedPluginStart);
SubBruteState* instance = subbrute_alloc(); SubBruteState* instance = subbrute_alloc();
view_dispatcher_attach_to_gui( view_dispatcher_attach_to_gui(
instance->view_dispatcher, instance->gui, ViewDispatcherTypeFullscreen); instance->view_dispatcher, instance->gui, ViewDispatcherTypeFullscreen);
@@ -196,4 +198,4 @@ int32_t subbrute_app(void* p) {
subbrute_free(instance); subbrute_free(instance);
return 0; return 0;
} }

View File

@@ -17,6 +17,7 @@
#include <lib/subghz/transmitter.h> #include <lib/subghz/transmitter.h>
#include <lib/subghz/protocols/raw.h> #include <lib/subghz/protocols/raw.h>
#include <dolphin/dolphin.h>
#include "playlist_file.h" #include "playlist_file.h"
#include "canvas_helper.h" #include "canvas_helper.h"
@@ -696,6 +697,7 @@ void playlist_free(Playlist* app) {
int32_t playlist_app(void* p) { int32_t playlist_app(void* p) {
UNUSED(p); UNUSED(p);
DOLPHIN_DEED(DolphinDeedPluginStart);
// create playlist folder // create playlist folder
{ {

View File

@@ -23,6 +23,7 @@
#include <lib/subghz/protocols/nice_flor_s.h> #include <lib/subghz/protocols/nice_flor_s.h>
#include <lib/subghz/protocols/somfy_telis.h> #include <lib/subghz/protocols/somfy_telis.h>
#include <lib/subghz/protocols/secplus_v2.h> #include <lib/subghz/protocols/secplus_v2.h>
#include <dolphin/dolphin.h>
#define SUBREMOTEMAP_FOLDER "/ext/subghz/remote" #define SUBREMOTEMAP_FOLDER "/ext/subghz/remote"
#define SUBREMOTEMAP_EXTENSION ".txt" #define SUBREMOTEMAP_EXTENSION ".txt"
@@ -804,6 +805,7 @@ void subghz_remote_free(SubGHzRemote* app, bool with_subghz) {
int32_t subghz_remote_app(void* p) { int32_t subghz_remote_app(void* p) {
UNUSED(p); UNUSED(p);
DOLPHIN_DEED(DolphinDeedPluginStart);
SubGHzRemote* app = subghz_remote_alloc(); SubGHzRemote* app = subghz_remote_alloc();
app->file_path = furi_string_alloc(); app->file_path = furi_string_alloc();

View File

@@ -7,7 +7,6 @@
#include <flipper_format/flipper_format.h> #include <flipper_format/flipper_format.h>
#include <notification/notification.h> #include <notification/notification.h>
#include <notification/notification_messages.h> #include <notification/notification_messages.h>
#include <dolphin/dolphin.h>
#include "features_config.h" #include "features_config.h"
#include "services/config/config.h" #include "services/config/config.h"
#include "types/plugin_state.h" #include "types/plugin_state.h"
@@ -169,9 +168,6 @@ int32_t totp_app() {
return 253; return 253;
} }
// Affecting dolphin level
DOLPHIN_DEED(DolphinDeedPluginStart);
// Set system callbacks // Set system callbacks
ViewPort* view_port = view_port_alloc(); ViewPort* view_port = view_port_alloc();
view_port_draw_callback_set(view_port, render_callback, plugin_state); view_port_draw_callback_set(view_port, render_callback, plugin_state);

View File

@@ -3,6 +3,7 @@
#include <furi_hal_power.h> #include <furi_hal_power.h>
#include <furi.h> #include <furi.h>
#include <furi_hal.h> #include <furi_hal.h>
#include <dolphin/dolphin.h>
static bool wifi_deauther_app_custom_event_callback(void* context, uint32_t event) { static bool wifi_deauther_app_custom_event_callback(void* context, uint32_t event) {
furi_assert(context); furi_assert(context);
@@ -24,6 +25,7 @@ static void wifi_deauther_app_tick_event_callback(void* context) {
WifideautherApp* wifi_deauther_app_alloc() { WifideautherApp* wifi_deauther_app_alloc() {
WifideautherApp* app = malloc(sizeof(WifideautherApp)); WifideautherApp* app = malloc(sizeof(WifideautherApp));
DOLPHIN_DEED(DolphinDeedPluginStart);
app->gui = furi_record_open(RECORD_GUI); app->gui = furi_record_open(RECORD_GUI);

View File

@@ -2,6 +2,7 @@
#include <furi.h> #include <furi.h>
#include <furi_hal.h> #include <furi_hal.h>
#include <dolphin/dolphin.h>
static bool wifi_marauder_app_custom_event_callback(void* context, uint32_t event) { static bool wifi_marauder_app_custom_event_callback(void* context, uint32_t event) {
furi_assert(context); furi_assert(context);
@@ -23,6 +24,7 @@ static void wifi_marauder_app_tick_event_callback(void* context) {
WifiMarauderApp* wifi_marauder_app_alloc() { WifiMarauderApp* wifi_marauder_app_alloc() {
WifiMarauderApp* app = malloc(sizeof(WifiMarauderApp)); WifiMarauderApp* app = malloc(sizeof(WifiMarauderApp));
DOLPHIN_DEED(DolphinDeedPluginStart);
app->gui = furi_record_open(RECORD_GUI); app->gui = furi_record_open(RECORD_GUI);
app->dialogs = furi_record_open(RECORD_DIALOGS); app->dialogs = furi_record_open(RECORD_DIALOGS);