Created
April 18, 2018 01:11
-
-
Save JonnyBanana/d6b0d39229f335bdd0cc673f7b9ff0be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM A script to create a local DNS entry in the host file of a mac. | |
REM change the example.com to any site you want. | |
REM change the 127.0.0.1 to any ip you want. | |
DELAY 1000 | |
STRING mount -uw / | |
ENTER | |
DELAY 2000 | |
ENTER | |
STRING nano /private/etc/hosts | |
ENTER | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
DOWNARROW | |
STRING 127.0.0.1 example.com | |
ENTER | |
STRING 127.0.0.1 www.example.com | |
ENTER | |
CTRL o | |
ENTER | |
CTRL x | |
STRING shutdown -h now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment