Skip to content

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

@Nazime

Description

@Nazime

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 (whid-injector/WHID#31)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions