krakrukra / PocketAdmin

oshw keystroke injection device ( badusb )
MIT License
216 stars 45 forks source link

Can you press the button without opening up the usb? #8

Closed calegxm999 closed 4 years ago

calegxm999 commented 4 years ago

You know how there is a button inside the usb to stop it from injecting the payload? Can you press the button without opening up the usb?

krakrukra commented 4 years ago

No, but this is why ALLOW_EXIT command was implemented. I usually start a payload with this: WAITFOR_INIT ALLOW_EXIT

That makes the device wait for initialization time and then wait for 1 extra second. If you toggle capslock during this 1 second, payload will not be run. So you can prevent payload execution by spamming capslock key during device insertion.

calegxm999 commented 4 years ago

Thanks.......