Procházet zdrojové kódy

Add GPS and Wardrive commands (#29)

* Add LED and EvilPortal

* Remove OTA and ESP

* Update version number

* Revert version number

* Formatting

* Add gps and wardrive commands

* GPS command behavior

---------

Co-authored-by: 0xchocolate <109879152+0xchocolate@users.noreply.github.com>
Just Call Me Koko před 2 roky
rodič
revize
6fdafd7737
2 změnil soubory, kde provedl 15 přidání a 1 odebrání
  1. 14 0
      scenes/wifi_marauder_scene_start.c
  2. 1 1
      wifi_marauder_app_i.h

+ 14 - 0
scenes/wifi_marauder_scene_start.c

@@ -68,6 +68,7 @@ const WifiMarauderItem items[NUM_MENU_ITEMS] = {
      NO_ARGS,
      FOCUS_CONSOLE_END,
      SHOW_STOPSCAN_TIP},
+    {"Wardrive", {""}, 1, {"wardrive"}, NO_ARGS, FOCUS_CONSOLE_END, SHOW_STOPSCAN_TIP},
     {"Evil Portal",
      {"start"},
      1,
@@ -118,6 +119,19 @@ const WifiMarauderItem items[NUM_MENU_ITEMS] = {
      INPUT_ARGS,
      FOCUS_CONSOLE_END,
      NO_TIP},
+    {"GPS Data",
+     {"stream", "fix", "sats", "lat", "lon", "alt", "date"},
+     7,
+     {"gpsdata",
+      "gps -g fix",
+      "gps -g sat",
+      "gps -g lat",
+      "gps -g lon",
+      "gps -g alt",
+      "gps -g date"},
+     NO_ARGS,
+     FOCUS_CONSOLE_END,
+     NO_TIP},
     {"Settings",
      {"display", "restore", "ForcePMKID", "ForceProbe", "SavePCAP", "EnableLED", "other"},
      7,

+ 1 - 1
wifi_marauder_app_i.h

@@ -26,7 +26,7 @@
 #include <lib/toolbox/path.h>
 #include <dialogs/dialogs.h>
 
-#define NUM_MENU_ITEMS (20)
+#define NUM_MENU_ITEMS (22)
 
 #define WIFI_MARAUDER_TEXT_BOX_STORE_SIZE (4096)
 #define WIFI_MARAUDER_TEXT_INPUT_STORE_SIZE (512)