ESPloitV2 icon indicating copy to clipboard operation
ESPloitV2 copied to clipboard

[WHID Injector] Infinite payloads looping if the payload finish with "\n\n" in auto run mode

Open Nazime opened this issue 5 years ago • 0 comments

After spending some hours debugging... I noticed if I upload a payload with two newlines at the end (adding one new line and the editor automatically add an other new line) and activate the option "Automatically Deploy Payload Upon Insetion" the payloads will run infinite times...

I tested the same payload with and without newline at the end (one payload that work with only one new line, and the one that infinite loop with two new lines) 3 times to be sure of this behavior before submitting this issue.

The quick fix was to remove the trailing new line for all my payloads, I do not know why the fact that there is a new line makes it loop endlessly (probably? the loop function in Arduino_32u4_Code, but I am not good in C programming or Arduino :p )

The problem with this is that you can't reset the configuration since the AP won't pop out until the payload will finish (and that won't happen).

In case other people have the same problem as me (https://github.com/whid-injector/WHID/issues/31)

  • I Disabled my keyboards (in able to work without the payload running) https://unix.stackexchange.com/questions/274203/disable-any-usb-keyboard-and-mouse
  • I followed https://github.com/exploitagency/ESPloitV2#initial-flashing (I didn't found this link at first because I was following the WHID injector github)
  • Every thing worked the first time! but the second time the init wouldn't work! I had to flash it with a slightly modified version of EPS_code.c (I called the function loadDefaults() in setup())

Nazime avatar Jan 27 '20 23:01 Nazime