Skip to content

Instantly share code, notes, and snippets.


Ada Leisner CoffeeFrame

View GitHub Profile
CoffeeFrame /
Created Nov 19, 2016
Simple shell script that updates the /etc/hosts file with the newest version from, a hosts file configuration that redirects the URLs of many unwanted sites back to the localhost interface.
## CoffeeFrame
## Coffeeframe(a)
## Update /etc/hosts file with version from and backs up old hosts file
## WARNING -- As of 2016-11-19 does not provide a valid SSL/TLS certificate, meaning the hosts file is retrieved over an unencrypted connection. This method is vulnerable to Man-in-the-Middle attacks, allowing an intermediary attacker to modify the hosts file as they see fit. For example, an attacker modify or add a line redirecting to a site designed to harvest bank credentials. Use at your own risk.
## I recommend backing up your current /etc/hosts file before running this script for the first time.
TEMPHOSTS=`mktemp -p /var/ tempHosts.XXXXXXX`
View gist:7cbcfa548f80dd4a96c3
### Keybase proof
I hereby claim:
* I am coffeeframe on github.
* I am coffeeframe ( on keybase.
* I have a public key whose fingerprint is 5355 6D6A E479 4E27 5435 0E8D F25E 301C 460C 3055
To claim this, I am signing this object:
CoffeeFrame /
Created Sep 16, 2014
Bash script quick-starter
#Generates Bash script file, sets permissions and generates boilerplate
#INPUT name of desired script file, similar to touch.
CODER=$USER #Default
#Rifle Burs (Original Mix) - GMCFOSHO
for($i = 0; $i < 3; $i++){
print "burs\n";
print "swag\n"