wifi_deauther_app_i.h 1.8 KB

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