Skip to content

Instantly share code, notes, and snippets.

@santiycr
Created August 9, 2014 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santiycr/3831d81b2bb90cfa9277 to your computer and use it in GitHub Desktop.
Save santiycr/3831d81b2bb90cfa9277 to your computer and use it in GitHub Desktop.
@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
#!/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