The Social-Engineer Toolkit
159
Now that you have a
.pde
file, you will need to download and use the
Arduino interface, which is a graphical user interface for compiling the
.pde
files to be uploaded to your Teensy device.
For this attack, follow the instructions at PJRC (
http://www.pjrc.com/
) for
uploading your code to the Teensy board. It’s relatively simple. You install
the Teensy loader and libraries. Then you’ll see an IDE (Integrated Drive
Electronics) interface called
Arduino
.
(Arduino/Teensy is supported on
Linux, Mac OS X, and Windows operating systems.) One of the
most
impor-
tant aspects of this is that you ensure that you set your board to a Teensy USB
keyboard/mouse, as show in Figure 10-7.
Figure 10-7: Setting up the Teensy device
After you have this selected, drag your
.pde
file into the Arduino inter-
face. Insert your USB device into the computer and upload your code. This
will program your device with the SET-generated code. Figure 10-8 shows the
code being uploaded.
After the programmed USB device is inserted into the target’s machine
and the code is installed, you should see a Meterpreter shell:
[*] Sending stage (748544 bytes) to 172.16.32.131
[*] Meterpreter session 1 opened (172.16.32.129:443 -> 172.16.32.131:1333) at
Thu June 09 12:52:32 -0400 2010
[*] Session ID 1 (172.16.32.129:443 -> 172.16.32.131:1333) processing
InitialAutoRunScript 'migrate -f'
[*] Current server process: java.exe (824)
[*] Spawning a notepad.exe host process...
[*] Migrating into process ID 3044
[*] New server process: notepad.exe (3044)