P4wnP1_aloa
P4wnP1_aloa copied to clipboard
USB Gadget Triggering Twice
Hello Mates,
Was hoping for some help with an issue I'm having. I'm running the latest beta on RPi 0 W with a battery pack plugged in into the PWR port. I have a trigger action set when a USB gadget is plugged in. The action fired is an HID script. The problem is the HID script runs twice when plugging into the USB port once.
I'm fairly certain it's run twice because I see two entries in the HID Script menu log and I see 2 toasts about the script running. And of course, the actions on the computer do not work since they're interfering with each other.
The only solution I've found is to enable the "Run Once" setting under the Trigger Actions menu. However, this is not the scenario I'm looking for. I would like the script to run (obviously once) every time it's plugged into a computer (again, a battery pack is plugged in so it's always booted).
Appreciate the help mates and thanks for a great project.
Bloody hell, the issue appears to be on my end. I happened to have my sound turned up and realized the Pi was being registered twice. Meaning, plugging in RPi was causeing 2 USB connection sounds. This must be be something related to my computer where the Rpi is mounted twice. To be sure, I tried plugging the RPi into my laptop and the HID script only ran once.
This attack scenario raises two questions for me:
-
It will be hard to predict this in the future when attacking an unknown computer. An engagement could be ruined if there's only one chance. Can a delay be built into the trigger action? There's an option for "One Shot" in the Trigger action menu. What if there's an option for X seconds delay before triggering again?
-
Has anyone run into this scenario before?