wifi_deauther_app_i.h 1.8 KB

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