Arduino Pro Mini Rubber Ducky Keyboard.h

Well, I want to create a rubber ducky using Arduino Pro Mini.
.
I have seen a vid that explains how to do it but the video uses Arduino Micro for the process.
I have connected all the wires and connect the usb to the laptop and the Pro Mini was working just fine.

I couldn't upload any sketch using the usb because because of this driver issue.

image

Before I fix the update thing I want to fix the compiling issue

I had a Keyboard.h problem where is says that

'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?

And the library is included.

So before I keep going, is it possible to make the Pro Mini a Rubber Ducky even though I have connected a USB to it?

5V > RAW
GND > GND
TXD > TX0
RXD > RX0
Button is connected to 3 and GND
And I have used USB to TTL YP-01

What is a "rubber ducky".
Is the pro mini a HID device?

Don't do that.....

That's a device that looks like a USB that hackers use to trick people into plugging it in their computer, lets say by throwing it on a road or something.
Once it's connected it acts as a HID to type malicious code so they can hack their computers.

so yes HID (Human Interface Device)

Is it wrong?

You missed my point.
Is the Pro Mini a HID?

Also, you admitted a rubber ducky is almost certainly not a nice thing

I don't know and probably not.
Can't I make it act as one though?

I am not gonna use it in any malicious way, I love hacking and security from a long time, and I had the idea to make one from the Pro Mini that I have.

The sketch compiles correctly if I changed the board to Leonardo.
Idk why :frowning:

So is the problem with the Pro Mini not being an HID?

Because the Leonardo is a HID device . . .?

Yes.

So there is no way to make it work with Pro Mini?

The Tx on the USB should go to the Rx on the Arduino?

Yes. That's the way to make a transmitter send data to a receiver.

Fixing that now wouldn't make since if the Pro Mini can't act as a HID.
So any ideas on that?

Use a device that is HID-capable.

You can simulate USB in software; never done it myself.

You are missing my point of this topic.
I have found a Pro Mini lying down in the house.
And I want to use it to make a rubber ducky.
I don't want to buy any other stuff.
That's why I named the topic (Pro Mini Rubber Ducky)
Do you have any idea if this is gonna work?

What do you mean :thinking:

Just buy such a module, look for "badusb" on Aliexpress.

https://de.aliexpress.com/wholesale?SearchText=badusb

You write code that simulates USB; Digispark has a board (if not mistaken attiny85 based) and i think that Adafruit has a 328P based one that implement it that way.