Poor Mans Rubberducky
Poor Man’s Rubber ducky (with something extra)…
Digisparks are very cheap and quite versatile - and they support USB emulation! This is quite a nice property, and I’m sure I’ll release more examples of things I’ve done with this very nice ability.
I have looked at these for a while, but here’s an introductory example. This sketch can be loaded into arduino editor and compiled and sent to the digispark as usual. See here for a tutorial on how to do this.
So here’s what this does:
- will emulate a keyboard in the usual way
- will ‘type’ a string when plugged in.
- will type a different string if a paperclip or something is used to bridge 5v pin hole to
p0
pin hole.
May come in handy to someone wanting to have ways of securing devices with long random strings. You can generate random strings with cat /dev/urandom | tr -dc 'a-zA-Z0-9!' | fold -w 128 | head -n 1
but remember that as keys move around (like “ and @ between US/UK keyboards) you can’t add too many symbols to the tr -dc
argument.
Hope it’s useful to someone!