A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Teensy Example 1

1.5k views · started by MattSmith ·
#1
Teensy Example 1
Quick script i wrote for the teensy using the arduino software. It will open the run dialog, open google chrome, navigate to lg. Then open notepad, and type 'i Hax ;D' into it. Also watch your led on the teensy as it runs threw the script ;D


int RunAmount = 1;
int ledPin = 11;

void setup() {
pinMode(ledPin, OUTPUT);
} // no setup needed
void loop() {
digitalWrite(ledPin, LOW);
delay(100);
if(RunAmount <= 1)
{
delay(4000);
digitalWrite(ledPin, HIGH);
// press and hold CTRL
Keyboard.set_modifier(MODIFIERKEY_GUI);
Keyboard.set_key1(KEY_R);
Keyboard.send_now();
delay(500);

Keyboard.set_modifier(0);
Keyboard.print("chrome.exe");
Keyboard.send_now();
delay(500);

Keyboard.set_key1(KEY_ENTER);
Keyboard.send_now();
delay(100);

Keyboard.set_key1(0);
Keyboard.send_now();
delay(1500);

Keyboard.print("www.logicalgamers.com");
Keyboard.send_now();
delay(500);

Keyboard.set_key1(KEY_ENTER);
Keyboard.send_now();
delay(100);

Keyboard.set_modifier(0);
Keyboard.set_key1(0);
Keyboard.send_now();
delay(100);

RunAmount = 2;
}
else
{
digitalWrite(ledPin, LOW);
delay(300);
if(RunAmount <= 2)
{
delay(4000);
digitalWrite(ledPin, HIGH);
// press and hold CTRL
Keyboard.set_modifier(MODIFIERKEY_GUI);
Keyboard.set_key1(KEY_R);
Keyboard.send_now();
delay(500);

Keyboard.set_modifier(0);
Keyboard.print("notepad.exe");
Keyboard.send_now();
delay(500);

Keyboard.set_key1(KEY_ENTER);
Keyboard.send_now();
delay(100);

Keyboard.set_key1(0);
Keyboard.send_now();
delay(500);

Keyboard.print("I Hax :D");
Keyboard.send_now();
delay(500);
}
else
{
digitalWrite(ledPin, HIGH);
delay(333);
digitalWrite(ledPin, LOW);
delay(100);
}
RunAmount = RunAmount + 1;
}
}
#2
Nice job Gamer :D

Programmable hardware can always be fun ;)
#3
This thing can do a lot of damage to an un-suspecting computer if you know what your doing.
#4
GamerForce wrote:
This thing can do a lot of damage to an un-suspecting computer if you know what your doing.


That or you can use it for the right things such as hacking through a server with an automatic script and blame your school for it. :D