mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-16 04:24:45 -07:00
Add XP to hacking apps
This commit is contained in:
2
applications/external/airmouse/air_mouse.c
vendored
2
applications/external/airmouse/air_mouse.c
vendored
@@ -1,7 +1,6 @@
|
||||
#include "air_mouse.h"
|
||||
|
||||
#include <furi.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#include "tracking/imu/imu.h"
|
||||
|
||||
@@ -146,7 +145,6 @@ int32_t air_mouse_app(void* p) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
view_dispatcher_run(app->view_dispatcher);
|
||||
|
||||
imu_end();
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <furi.h>
|
||||
#include <furi_hal.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
static bool dtmf_dolphin_app_custom_event_callback(void* context, uint32_t event) {
|
||||
furi_assert(context);
|
||||
@@ -82,8 +83,9 @@ int32_t dtmf_dolphin_app(void* p) {
|
||||
UNUSED(p);
|
||||
DTMFDolphinApp* app = app_alloc();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
view_dispatcher_run(app->view_dispatcher);
|
||||
|
||||
app_free(app);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <gui/canvas_i.h>
|
||||
#include <gui/gui.h>
|
||||
#include <input/input.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
//#include <math.h>
|
||||
//#include <notification/notification.h>
|
||||
//#include <notification/notification_messages.h>
|
||||
@@ -328,6 +329,7 @@ int32_t esp8266_deauth_app(void* p) {
|
||||
|
||||
SWiFiDeauthApp* app = malloc(sizeof(SWiFiDeauthApp));
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
esp8266_deauth_app_init(app);
|
||||
|
||||
furi_hal_gpio_init_simple(app->m_GpioButtons.pinButtonUp, GpioModeOutputPushPull);
|
||||
|
||||
4
applications/external/flipfrid/flipfrid.c
vendored
4
applications/external/flipfrid/flipfrid.c
vendored
@@ -5,6 +5,7 @@
|
||||
#include "scene/flipfrid_scene_select_field.h"
|
||||
#include "scene/flipfrid_scene_run_attack.h"
|
||||
#include "scene/flipfrid_scene_load_custom_uids.h"
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#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));
|
||||
FlipFridState* flipfrid_state = flipfrid_alloc();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
flipfrid_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal);
|
||||
if(!flipfrid_state->mutex) {
|
||||
FURI_LOG_E(TAG, "cannot create mutex\r\n");
|
||||
@@ -268,4 +270,4 @@ int32_t flipfrid_start(void* p) {
|
||||
flipfrid_free(flipfrid_state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "scene/ibtnfuzzer_scene_select_field.h"
|
||||
#include "scene/ibtnfuzzer_scene_run_attack.h"
|
||||
#include "scene/ibtnfuzzer_scene_load_custom_uids.h"
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#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));
|
||||
iBtnFuzzerState* ibtnfuzzer_state = ibtnfuzzer_alloc();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
ibtnfuzzer_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal);
|
||||
if(!ibtnfuzzer_state->mutex) {
|
||||
FURI_LOG_E(TAG, "cannot create mutex\r\n");
|
||||
@@ -264,4 +266,4 @@ int32_t ibtnfuzzer_start(void* p) {
|
||||
ibtnfuzzer_free(ibtnfuzzer_state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <input/input.h>
|
||||
#include <dialogs/dialogs.h>
|
||||
#include <ir_remote_icons.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#include <notification/notification.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) {
|
||||
UNUSED(p);
|
||||
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(InputEvent));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
|
||||
// App button string
|
||||
IRApp* app = malloc(sizeof(IRApp));
|
||||
|
||||
2
applications/external/mfkey32/mfkey32.c
vendored
2
applications/external/mfkey32/mfkey32.c
vendored
@@ -21,6 +21,7 @@
|
||||
#include <lib/nfc/helpers/mf_classic_dict.h>
|
||||
#include <lib/toolbox/args.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_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() {
|
||||
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
ProgramState* program_state = malloc(sizeof(ProgramState));
|
||||
|
||||
mfkey32_state_init(program_state);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <nrf24.h>
|
||||
#include "mousejacker_ducky.h"
|
||||
#include <NRF24_Mouse_Jacker_icons.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#define TAG "mousejacker"
|
||||
#define LOGITECH_MAX_CHANNEL 85
|
||||
@@ -286,6 +287,7 @@ void start_mjthread(PluginState* plugin_state) {
|
||||
int32_t mousejacker_app(void* p) {
|
||||
UNUSED(p);
|
||||
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
|
||||
PluginState* plugin_state = malloc(sizeof(PluginState));
|
||||
mousejacker_state_init(plugin_state);
|
||||
|
||||
2
applications/external/nfc_magic/nfc_magic.c
vendored
2
applications/external/nfc_magic/nfc_magic.c
vendored
@@ -1,4 +1,5 @@
|
||||
#include "nfc_magic_i.h"
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
bool nfc_magic_custom_event_callback(void* context, uint32_t event) {
|
||||
furi_assert(context);
|
||||
@@ -160,6 +161,7 @@ int32_t nfc_magic_app(void* p) {
|
||||
UNUSED(p);
|
||||
NfcMagic* nfc_magic = nfc_magic_alloc();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
scene_manager_next_scene(nfc_magic->scene_manager, NfcMagicSceneStart);
|
||||
|
||||
view_dispatcher_run(nfc_magic->view_dispatcher);
|
||||
|
||||
2
applications/external/nrf24scan/nrf24scan.c
vendored
2
applications/external/nrf24scan/nrf24scan.c
vendored
@@ -12,6 +12,7 @@
|
||||
#include <dolphin/dolphin.h>
|
||||
#include <nrf24.h>
|
||||
#include <u8g2.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#define TAG "nrf24scan"
|
||||
#define VERSION "2.2"
|
||||
@@ -1331,6 +1332,7 @@ static void render_callback(Canvas* const canvas, void* ctx) {
|
||||
int32_t nrf24scan_app(void* p) {
|
||||
UNUSED(p);
|
||||
APP = malloc(sizeof(Nrf24Scan));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
APP->event_queue = furi_message_queue_alloc(8, sizeof(PluginEvent));
|
||||
APP->plugin_state = malloc(sizeof(PluginState));
|
||||
APP->plugin_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal);
|
||||
|
||||
2
applications/external/nrfsniff/nrfsniff.c
vendored
2
applications/external/nrfsniff/nrfsniff.c
vendored
@@ -4,6 +4,7 @@
|
||||
#include <input/input.h>
|
||||
#include <notification/notification_messages.h>
|
||||
#include <stdlib.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#include <nrf24.h>
|
||||
#include <toolbox/stream/file_stream.h>
|
||||
@@ -314,6 +315,7 @@ static void start_sniffing() {
|
||||
|
||||
int32_t nrfsniff_app(void* p) {
|
||||
UNUSED(p);
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
uint8_t address[5] = {0};
|
||||
uint32_t start = 0;
|
||||
hexlify(address, 5, top_address);
|
||||
|
||||
4
applications/external/picopass/picopass.c
vendored
4
applications/external/picopass/picopass.c
vendored
@@ -1,4 +1,5 @@
|
||||
#include "picopass_i.h"
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#define TAG "PicoPass"
|
||||
|
||||
@@ -191,6 +192,7 @@ int32_t picopass_app(void* p) {
|
||||
UNUSED(p);
|
||||
picopass_migrate_from_old_folder();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
Picopass* picopass = picopass_alloc();
|
||||
|
||||
scene_manager_next_scene(picopass->scene_manager, PicopassSceneStart);
|
||||
@@ -200,4 +202,4 @@ int32_t picopass_app(void* p) {
|
||||
picopass_free(picopass);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <furi_hal.h>
|
||||
#include <lib/flipper_format/flipper_format.h>
|
||||
#include "protocols/protocol_items.h"
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
static bool pocsag_pager_app_custom_event_callback(void* context, uint32_t event) {
|
||||
furi_assert(context);
|
||||
@@ -198,6 +199,7 @@ int32_t pocsag_pager_app(void* p) {
|
||||
UNUSED(p);
|
||||
POCSAGPagerApp* pocsag_pager_app = pocsag_pager_app_alloc();
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
view_dispatcher_run(pocsag_pager_app->view_dispatcher);
|
||||
|
||||
pocsag_pager_app_free(pocsag_pager_app);
|
||||
|
||||
2
applications/external/protoview/app.c
vendored
2
applications/external/protoview/app.c
vendored
@@ -2,6 +2,7 @@
|
||||
* See the LICENSE file for information about the license. */
|
||||
|
||||
#include "app.h"
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
RawSamplesBuffer *RawSamples, *DetectedSamples;
|
||||
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) {
|
||||
UNUSED(p);
|
||||
ProtoViewApp* app = protoview_app_alloc();
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
|
||||
/* Create a timer. We do data analysis in the callback. */
|
||||
FuriTimer* timer = furi_timer_alloc(timer_callback, FuriTimerTypePeriodic, app);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <gui/gui.h>
|
||||
#include <input/input.h>
|
||||
#include <stdlib.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#include <furi_hal.h>
|
||||
|
||||
@@ -84,6 +85,7 @@ int32_t sentry_safe_app(void* p) {
|
||||
UNUSED(p);
|
||||
|
||||
FuriMessageQueue* event_queue = furi_message_queue_alloc(8, sizeof(Event));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
|
||||
SentryState* sentry_state = malloc(sizeof(SentryState));
|
||||
|
||||
@@ -166,4 +168,4 @@ int32_t sentry_safe_app(void* p) {
|
||||
free(sentry_state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <input/input.h>
|
||||
#include <stdlib.h>
|
||||
#include "spectrum_analyzer.h"
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#include <lib/drivers/cc1101_regs.h>
|
||||
#include "spectrum_analyzer_worker.h"
|
||||
@@ -400,6 +401,7 @@ void spectrum_analyzer_free(SpectrumAnalyzer* instance) {
|
||||
int32_t spectrum_analyzer_app(void* p) {
|
||||
UNUSED(p);
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
SpectrumAnalyzer* spectrum_analyzer = spectrum_analyzer_alloc();
|
||||
InputEvent input;
|
||||
|
||||
@@ -523,4 +525,4 @@ int32_t spectrum_analyzer_app(void* p) {
|
||||
spectrum_analyzer_free(spectrum_analyzer);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "subbrute_i.h"
|
||||
#include "subbrute_custom_event.h"
|
||||
#include "scenes/subbrute_scene.h"
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#define TAG "SubBruteApp"
|
||||
|
||||
@@ -173,6 +174,7 @@ void subbrute_popup_closed_callback(void* context) {
|
||||
int32_t subbrute_app(void* p) {
|
||||
UNUSED(p);
|
||||
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
SubBruteState* instance = subbrute_alloc();
|
||||
view_dispatcher_attach_to_gui(
|
||||
instance->view_dispatcher, instance->gui, ViewDispatcherTypeFullscreen);
|
||||
@@ -196,4 +198,4 @@ int32_t subbrute_app(void* p) {
|
||||
subbrute_free(instance);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <lib/subghz/transmitter.h>
|
||||
#include <lib/subghz/protocols/raw.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#include "playlist_file.h"
|
||||
#include "canvas_helper.h"
|
||||
@@ -696,6 +697,7 @@ void playlist_free(Playlist* app) {
|
||||
|
||||
int32_t playlist_app(void* p) {
|
||||
UNUSED(p);
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
|
||||
// create playlist folder
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <lib/subghz/protocols/nice_flor_s.h>
|
||||
#include <lib/subghz/protocols/somfy_telis.h>
|
||||
#include <lib/subghz/protocols/secplus_v2.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
#define SUBREMOTEMAP_FOLDER "/ext/subghz/remote"
|
||||
#define SUBREMOTEMAP_EXTENSION ".txt"
|
||||
@@ -804,6 +805,7 @@ void subghz_remote_free(SubGHzRemote* app, bool with_subghz) {
|
||||
|
||||
int32_t subghz_remote_app(void* p) {
|
||||
UNUSED(p);
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
SubGHzRemote* app = subghz_remote_alloc();
|
||||
|
||||
app->file_path = furi_string_alloc();
|
||||
|
||||
4
applications/external/totp/totp_app.c
vendored
4
applications/external/totp/totp_app.c
vendored
@@ -7,7 +7,6 @@
|
||||
#include <flipper_format/flipper_format.h>
|
||||
#include <notification/notification.h>
|
||||
#include <notification/notification_messages.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
#include "features_config.h"
|
||||
#include "services/config/config.h"
|
||||
#include "types/plugin_state.h"
|
||||
@@ -169,9 +168,6 @@ int32_t totp_app() {
|
||||
return 253;
|
||||
}
|
||||
|
||||
// Affecting dolphin level
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
|
||||
// Set system callbacks
|
||||
ViewPort* view_port = view_port_alloc();
|
||||
view_port_draw_callback_set(view_port, render_callback, plugin_state);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <furi_hal_power.h>
|
||||
#include <furi.h>
|
||||
#include <furi_hal.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
static bool wifi_deauther_app_custom_event_callback(void* context, uint32_t event) {
|
||||
furi_assert(context);
|
||||
@@ -24,6 +25,7 @@ static void wifi_deauther_app_tick_event_callback(void* context) {
|
||||
|
||||
WifideautherApp* wifi_deauther_app_alloc() {
|
||||
WifideautherApp* app = malloc(sizeof(WifideautherApp));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
|
||||
app->gui = furi_record_open(RECORD_GUI);
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <furi.h>
|
||||
#include <furi_hal.h>
|
||||
#include <dolphin/dolphin.h>
|
||||
|
||||
static bool wifi_marauder_app_custom_event_callback(void* context, uint32_t event) {
|
||||
furi_assert(context);
|
||||
@@ -23,6 +24,7 @@ static void wifi_marauder_app_tick_event_callback(void* context) {
|
||||
|
||||
WifiMarauderApp* wifi_marauder_app_alloc() {
|
||||
WifiMarauderApp* app = malloc(sizeof(WifiMarauderApp));
|
||||
DOLPHIN_DEED(DolphinDeedPluginStart);
|
||||
|
||||
app->gui = furi_record_open(RECORD_GUI);
|
||||
app->dialogs = furi_record_open(RECORD_DIALOGS);
|
||||
|
||||
Reference in New Issue
Block a user