sbnsec / KeyLoscopie

Share your keyboard's push with the world

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyLoscopie

Full MITM beetween a PS2 keyboard and a PS2 computer. The goal of this projet is to be able to record the keypress and send then by radio.

shematics

  • The keyboard is connected to the Teensy on CLK Keyboard and DATA Keyboard
  • The computer is connected to the Teensy on port 8 and 5 of the teensy
  • When a keypress is deteced from the keyboard:
    • The scancode is sent to keyboard
    • The scancode is decoded to QWTERTY and sent using radio
    • If the ketpress is Majlock or Numlock
      • The coresponding led is turn on

Please note than the led is not controled using the ketboard library, and it not syncronized with the real state on the computer. Usaly the computer send a code informing the ketboard of the leds state. In our case the full mitm block tha signal and the ketboard dont know about the state on Maj and Num leds. So by detecting when the num lock and caps lock are sent to the computer we trick the user by turning on or off the leds. Quick and dirty

Requirement

shematics

Edit

For the project to work you have to edit the PS2Dev Library Arduino\libraries\ps2dev\src\ps2dev.cpp

int PS2dev::keyboard_mkbrk(unsigned char code)
{
  write(code);
//  write(0xF0);
//  write(code);
  return 0;
}

Contribute

Don't hesitate to praticipate and reuse this code.

Disclamer

All information and software available on this repository are for educational purposes only. Use these at your own discretion, we cannot be held responsible for any damages caused. Usage of this tools on this repository for attacking targets without prior mutual consent is illegal. It is yours responsibility to obey all applicable laws. We assume no liability and are not responsible for any misuse or damage caused.

Contributor

@torreantoine @CustomBread

Special thanks

@Harvi and @SteveBenz for the amazing libs.

About

Share your keyboard's push with the world

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%