Top Banner
Universal RF Usb Keyboard Emulation Device URFUKED -by Monta Elkins monta.defcon @ geekslunch.com version .08 6/2010 Updates at: http://www.hackerwarrior.com/urfuked Updates at: http://www.hackerwarrior.com/urfuked
36

Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Mar 14, 2018

Download

Documents

truongtuong
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Universal RF Usb Keyboard Emulation DeviceURFUKED

-by Monta Elkins

monta.defcon @ geekslunch.comversion .08 6/2010

Updates at: http://www.hackerwarrior.com/urfukedUpdates at: http://www.hackerwarrior.com/urfuked

Page 2: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Hardware

Page 3: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Receiver(plugged into spare USB port)

Quarter“Teensy”Microcontroller

RF receiver On the back

●Receiver is very small●Can be encased in plastic to look like a typical USB key

Page 4: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Pwnerportable, battery powered, rf transmitter

Power SwitchLEDs Show WhatAttack to Perform

Input Switch Set Attack 0wnzred SwitchTransmits Attack

Page 5: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Hardware Construction

Page 6: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Teensy uc

Page 7: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Transmitter

Page 8: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Transmitter Datasheet

http://www.sparkfun.com/datasheets/Wireless/General/MO­SAWR.pdf

Data PinD3 (tx)

Teensy 2.0

Page 9: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Receiver

Page 10: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Receiver Datasheet

http://www.sparkfun.com/datasheets/Wireless/General/MO­RX3400.pdf

Data Pin is D2

Antenna is 23 cm long

Teensy 2.0

Use either of two Ground Pins on Teensy (connect all reciever grounds)Use either of 

two Vcc pins on Teensy

Page 11: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Receiver Construction

“Teensy” 2.0 Microcontroller$18

Sparkfun RF Reciever 315 Mhz$4.95

Construction consists of soldering 7 wires.Simple!

Page 12: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Pwner Construction(rf transmitter)

“Front” View

“Rear” View

“Teensy” Microcontroller$18

Sparkfun RF Transmitter$3.95

Page 13: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Teensy Pins

Page 14: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Pwner Schematic

Page 15: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Pwner Case

Page 16: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Pwner Case

Page 17: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Receiver Assembled

Page 18: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Live Demo

Page 19: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Canned Demo

Page 20: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Windows Attack 01

URFUKED opens the windows  run dialog box using the keyboard shortcut “windows key” + R

In this demo it runs the benign command “notepad.exe”­ but any other valid command could be executed.

Page 21: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Windows Attack 01 (continued)

After opening the notepad.exe window, URFUKED types text into the window in this demonstration “attack”

Page 22: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Inspiration

Page 23: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

InspirationInspired by (Adrian Crenshaw) the IronGeek's:Programmable HID USB Keystroke Dongle [PHUKD]. URFUKED overcomes the blind timing, and attack selection difficulties, by incorporating an RF transmitter and expands the concept to include multiple O.S. attacks.

[Adrian, I know you're here somewhere, Thanks! I owe you a beer.]

Page 24: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Interface Details

Page 25: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Using The InterfaceFirst two lights represent O.S. to attack:

01=Windows10=Mac11=Linux00=Mouse Attack(for mouse attack the two attack lights represent length of attack)

These two lights represent the attack to perform:

00 = notepad message01 = web page load10 = download software11 = rm ­rf

Easily expandable to 64 different attacks.

Enter a “0”

Enter a “1” Transmit Attack

Page 26: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Transmission Protocol

Page 27: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Transmission Frames

●3 Carrier Bytes (or more)0xAA

●Command Sequence Number0­127

●Command  ByteAny value

●ChecksumCommand Sequence Number + Command Byte

Receiver continually “receives” bytes even when there is no transmission due to ambiant RF noise.  I use these frames to distinguish a transmission from noise.

Valid Frame Definition:

Page 28: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Transmission

●10 Carrier Bytes0xAA

●Command Sequence Number0­127

●Command  ByteAny value

●ChecksumCommand Sequence Number + Command Byte

For reliability the transmitter sends the following command frame 10 times for each command send button press.

x 10Each command frame is repeated 10 times for redundancy­ the command is only executed once by the receiver even if multiple valid copies are received due to the Command Sequence Number.

Page 29: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Software

Page 30: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Software Location

http://www.hackerwarrior.com/urfuked

Page 31: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Attack Scenarios

Page 32: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

ScenariosExfiltrate information from the targetInfiltrate (plant) information on target computerInstall remote administration tool or virus on the targetPolitical style attacks

Facebook postingsIn appropriate web browsing (in conjunction with mouse control

Disabling attacksrm ­rf styleRemove all files in home directory etc.

Financial AttacksPaypal transfer attackEbay bid attack

Page 33: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Modifying Software forUnique Attacks

Page 34: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Key Selection

Page 35: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

Sources

Page 36: Universal RF Usb Keyboard Emulation Device - DEF CON · PDF filePwner Schematic. Pwner ... opens the windows run dialog box using ... Keyboard Emulation Device,Universal RF Usb Keyboard

SourcesPart Source Price

Teensy uc http://www.pjrc.com/store/teensy.html $18.00

Transmitter http://www.hvwtech.com/products_view.asp?ProductID=1042http://www.sparkfun.com/commerce/product_info.php?products_id=8945

$3.95

Receiver www.hvwtech.com/products_view.asp?ProductID=1041http://www.sparkfun.com/commerce/product_info.php?products_id=8948

$4.95

Buttons, LED's, misc. Available from a variety of sources

http://www.digikey.com/http://www.mouser.com/http://www.radioshack.com

USB adapter http://www.dealextreme.com/details.dx/sku.2704~r.48687660

$1.07