So there is this hacking tool called a rubber ducky , the concept is that the device looks like a flash drive but the computer thinks it's a keyboard . According to what i know , a usb port has 4 wires , VCC GND and 2 for data , so i thought if it was possible to take a usb cable , cut it and connect it to the arduino accordingly , and send the computer that data so that he would think i connected a keyboard , and basicly create a fake reprogrammable keyboard
Most Arduinos can't be a USB keyboard (not without some really nasty bit-banging code and dodgy electronics).
Some can, though - such as the Arduino Leonardo or the Arduino Micro. And you don't need to cut any cables, you just plug it in.