-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CDROM USB device support, dep upgrades and bugfixes
Added CDROM USB device support, dep upgrades and bugfixes
- Loading branch information
Showing
23 changed files
with
440 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,55 @@ | ||
REM This file is only used by platforms without an SD card | ||
REM Replace this file with your own content | ||
REM This is the system test for M5-Atom-S3 based boards | ||
REM These do not have a screen or SD card. | ||
|
||
REM To run these tests copy this file to the data directory and use the upload filesystem command or platformio | ||
REM You'll also need to have the agent running. You should see: | ||
|
||
REM * Web page loaded via badUSB | ||
|
||
REM You should connect to the device over WiFi and check | ||
REM * The web interface loads | ||
REM * VNC works | ||
REM * You can see logs | ||
REM * Results from the agent run are in the logs | ||
|
||
REM Now press the button and ensure the LED cycles | ||
REM * RED | ||
REM * GREEN | ||
REM * BLUE | ||
REM * OFF | ||
|
||
REM Press the button again and the device will do an ESP32 Maurader rick roll | ||
REM * Ensure that the lyrics can be seen over WiFi | ||
|
||
REM Press once more for a reset | ||
REM * Device resetting | ||
|
||
WHILE (AGENT_CONNECTED() == FALSE) | ||
DELAY 2000 | ||
END_WHILE | ||
|
||
REM Run a command to ensure we can handle the results | ||
AGENT_RUN dir | ||
WAIT_FOR_AGENT_RUN_RESULT | ||
|
||
REM Load a webpage to ensure USB + HID is working | ||
GUI | ||
DELAY 1000 | ||
STRING https://github.com/i-am-shodan/USBArmyKnife/blob/master/docs/images/interface-status.png | ||
ENTER | ||
|
||
LED_R | ||
WAIT_FOR_BUTTON_PRESS | ||
LED_G | ||
WAIT_FOR_BUTTON_PRESS | ||
LED_B | ||
WAIT_FOR_BUTTON_PRESS | ||
LED_OFF | ||
|
||
WIFI_OFF | ||
ESP32M attack -t rickroll | ||
WAIT_FOR_BUTTON_PRESS | ||
|
||
REM reset the device and do it all again | ||
DELAY 5000 | ||
RESET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
REM when running this script make sure your device starts in Serial mode | ||
DEFINE #SETTING_NAME usbDeviceType | ||
VAR $SETTING_USB_DEVICE_TYPE_ETHERNET = 2 | ||
|
||
IF (GET_SETTING_VALUE() != $SETTING_USB_DEVICE_TYPE_ETHERNET) THEN | ||
USB_MOUNT_CDROM_READ_ONLY /cdrom.iso | ||
|
||
REM wait for the user to install the driver | ||
REM on some OS' a popup will appear but on most modern ones the | ||
REM user will need to be encouraged! | ||
WHILE (AGENT_CONNECTED() == FALSE) | ||
DELAY 2000 | ||
END_WHILE | ||
|
||
REM We now need to change the device into a USB ethernet adapter | ||
SET_SETTING_UINT16 usbDeviceType $SETTING_USB_DEVICE_TYPE_ETHERNET | ||
REM this requires a reset | ||
RESET | ||
ELSE | ||
REM add some DNS entries? | ||
END_IF |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ build_flags = | |
-D CFG_TUD_ENABLED | ||
;-D DUCKY_CUSTOM_LOG | ||
lib_deps_core = | ||
https://github.com/i-am-shodan/DuckScriptInterpreter#4a614fd9debf3370cf32ef8eb6929877d8084114 | ||
https://github.com/i-am-shodan/DuckScriptInterpreter#b2bb33bf8d5e10a8726962b32552179f23c999ae | ||
bblanchon/ArduinoJson@^7.0.3 | ||
ivanseidel/[email protected]+sha.dac3874d28 | ||
https://github.com/i-am-shodan/Uptime-Library | ||
|
@@ -75,7 +75,7 @@ lib_deps_core = | |
extends = core | ||
platform = https://github.com/platformio/platform-espressif32.git | ||
platform_packages = | ||
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.3 | ||
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.5 | ||
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 | ||
monitor_filters = esp32_exception_decoder | ||
monitor_speed = 115200 | ||
|
@@ -93,10 +93,9 @@ build_flags = | |
-D CONFIG_ASYNC_TCP_MAX_ACK_TIME=3000 | ||
lib_deps = | ||
${core.lib_deps_core} | ||
AsyncTCP=https://github.com/mathieucarbou/AsyncTCP | ||
AsyncTCP-esphome=https://github.com/mathieucarbou/AsyncTCP | ||
https://github.com/i-am-shodan/Adafruit_TinyUSB_Arduino | ||
ESPAsyncWebServer=https://github.com/mathieucarbou/ESPAsyncWebServer | ||
https://github.com/mathieucarbou/AsyncTCPSock/archive/refs/tags/v1.0.3-dev.zip | ||
https://github.com/i-am-shodan/Adafruit_TinyUSB_Arduino#migrateTo334 | ||
ESPAsyncWebServer=https://github.com/i-am-shodan/ESPAsyncWebServer | ||
ayushsharma82/[email protected] | ||
|
||
[core-esp32-s3] | ||
|
@@ -183,7 +182,7 @@ build_flags = | |
-D HAS_SD ; ESP32 Maurader | ||
-D USE_SD_MMC_INTERFACE ; ESP32 Maurader | ||
-D NO_MIC | ||
-D BOARD_HAS_PSRAM | ||
;-D BOARD_HAS_PSRAM | ||
;;;;;;;; Pin Config for TFT ;;;;;;;; | ||
-D DISPLAY_RST=39 | ||
-D DISPLAY_DC=41 | ||
|
@@ -208,11 +207,10 @@ build_flags = | |
-D BTN_PIN=0 | ||
-D NUM_LEDS=1 | ||
-D LED_DI_PIN=38 | ||
-D LED_CI_PIN=38 | ||
;;;;;;;; End of Pin Config ;;;;;;;; | ||
lib_deps = | ||
${core-esp32-s3.lib_deps} | ||
https://github.com/pololu/apa102-arduino | ||
fastled/FastLED | ||
|
||
[env:Generic-ESP32-S2] | ||
extends = core-esp32 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.