wifi_deauther_app_i.h 1.8 KB

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