wifi_deauther_app_i.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #pragma once
  2. #include "wifi_deauther_app.h"
  3. #include "scenes/wifi_deauther_scene.h"
  4. #include "wifi_deauther_custom_event.h"
  5. #include "wifi_deauther_uart.h"
  6. #include <gui/gui.h>
  7. #include <gui/view_dispatcher.h>
  8. #include <gui/scene_manager.h>
  9. #include <gui/modules/text_box.h>
  10. #include <gui/modules/text_input.h>
  11. #include <gui/modules/variable_item_list.h>
  12. #define NUM_MENU_ITEMS (11)
  13. #define WIFI_deauther_TEXT_BOX_STORE_SIZE (4096)
  14. #define WIFI_deauther_TEXT_INPUT_STORE_SIZE (512)
  15. struct WifideautherApp {
  16. Gui* gui;
  17. ViewDispatcher* view_dispatcher;
  18. SceneManager* scene_manager;
  19. char text_input_store[WIFI_deauther_TEXT_INPUT_STORE_SIZE + 1];
  20. FuriString* text_box_store;
  21. size_t text_box_store_strlen;
  22. TextBox* text_box;
  23. TextInput* text_input;
  24. //Widget* widget;
  25. VariableItemList* var_item_list;
  26. WifideautherUart* uart;
  27. int selected_menu_index;
  28. int selected_option_index[NUM_MENU_ITEMS];
  29. const char* selected_tx_string;
  30. bool is_command;
  31. bool is_custom_tx_string;
  32. bool focus_console_start;
  33. bool show_stopscan_tip;
  34. };
  35. // Supported commands:
  36. // https://github.com/justcallmekoko/ESP32deauther/wiki/cli
  37. // Scan
  38. // -> If list is empty, then start a new scanap. (Tap any button to stop.)
  39. // -> If there's a list, provide option to rescan and dump list of targets to select.
  40. // -> Press BACK to go back to top-level.
  41. // Attack
  42. // -> Beacon
  43. // -> Deauth
  44. // -> Probe
  45. // -> Rickroll
  46. // Sniff
  47. // -> Beacon
  48. // -> Deauth
  49. // -> ESP
  50. // -> PMKID
  51. // -> Pwnagotchi
  52. // Channel
  53. // Update
  54. // Reboot
  55. typedef enum {
  56. WifideautherAppViewVarItemList,
  57. WifideautherAppViewConsoleOutput,
  58. WifideautherAppViewTextInput,
  59. } WifideautherAppView;