Created
August 9, 2014 10:17
-
-
Save santiycr/3831d81b2bb90cfa9277 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
@echo off | |
echo 162.222.74.242 idonotexist.com > %temp%\temphosts.txt | |
type C:\WINDOWS\system32\drivers\etc\hosts >> %temp%\temphosts.txt | |
copy /Y %temp%\temphosts.txt C:\WINDOWS\system32\drivers\etc\hosts |
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
#!/bin/bash | |
echo "162.222.74.242 idonotexist.com" >> /etc/hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment