Skip to content

Instantly share code, notes, and snippets.

View soardex's full-sized avatar

Edward Fitz Bucud Abucay soardex

View GitHub Profile
@soardex
soardex / gist:a7021b871849984bc9aa
Created June 19, 2015 12:18
Using OpenNIC to Avoid DNS Commercialization
# first get two (2) DNS Tier 2 servers from this page:
http://wiki.opennicproject.org/Tier2
# edit your DNS configuration and set it as the primary and secondary DNS
# for linux /etc/resolv.conf
# example add the following lines at the start of the file
nameserver 111.67.16.202
nameserver 103.25.56.238
# you can now access some custom TLD and create your own TLD's.
@soardex
soardex / gist:b8599a257f210917a666
Created June 19, 2015 11:54
Deprecated Linux Commands
Deprecated command Replacement command(s)
arp ip n (ip neighbor)
ifconfig ip a (ip addr), ip link, ip -s (ip -stats)
iptunnel ip tunnel
iwconfig iw
nameif ip link, ifrename
netstat ss, ip route (for netstat-r), ip -s link (for netstat -i), ip maddr (for netstat-g)
route ip r (ip route)
@soardex
soardex / gist:75905612b480d6f29059
Created June 19, 2015 11:40
Creating Ascii Art Using Linux Command Line
# in order to create a text ascii art you need to use the tool called figlet
# on arch install it with: pacman -S figlet
figlet [-f font] [text]
# example without optional font
figlet hello world
_ _ _ _ _
| |__ ___| | | ___ __ _____ _ __| | __| |
| '_ \ / _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` |
@soardex
soardex / gist:fbdf2c8640ba79f06b91
Created June 19, 2015 11:32
Securing DNS with DNScrypt
# install on Arch: pacman -S dnscrypt-proxy
# run DNSCrypt as a daemonize service
# where `resolver name` could be found on this list
# https://github.com/jedisct1/dnscrypt-proxy/blob/master/dnscrypt-resolvers.csv
sudo dnscrypt-proxy --ephemeral-keys --resolver-name=[resolver name] --daemonize
# example of usage:
sudo dnscrypt-proxy --ephemeral-keys --resolver-name=opendns --daemonize
@soardex
soardex / gist:47c5f6859c2b422bcbff
Created June 19, 2015 11:21
Run rTorrent on TOR
# this assumes you've already downloaded, installed and or compiled sources for the following files
# if on arch run `pacman -S tor delegate rtorrent`
# DeleGate Source: http://delegate.hpcc.jp/anonftp/DeleGate/delegate9.9.13.tar.gz
1. Run `tor` whether on chroot or not.
2. Proxy socks5 tor connection to port 8080 localhost by running:
delegated -P8080 SERVER=http SOCKS=localhost:9050
3. Configure $HOME/.rtorrent.rc and set `http_proxy` to `127.0.0.1`
@soardex
soardex / gist:e5eaaa0a8205b0b9a7ff
Created June 17, 2015 13:08
Arch Linux Installation Crypted
#### Arch Linux Installation Crypted
1. Boot Arch Linux iso image.
2. Load keyboard and font to the iso.
loadkeys us
setfont Lat2-Terminus16
3. Find block device node.
@soardex
soardex / gist:c2ebd9d3bdb3c890151c
Created June 17, 2015 13:05
Create GPG Key through SSH
sudo pacman -S rng-tools
sudo rngd -f -r /dev/urandom
gpg2 --full-gen-key
@soardex
soardex / gist:045f8f737f3072b55619
Created June 17, 2015 13:03
Install Flash on CentOS 6.6
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
yum install -y flash-plugin
#### Original Link https://wiki.archlinux.org/index.php?title=Tor
#!/bin/bash
export TORCHROOT=/opt/torchroot
mkdir -p $TORCHROOT
mkdir -p $TORCHROOT/etc/tor
mkdir -p $TORCHROOT/dev
mkdir -p $TORCHROOT/usr/bin
mkdir -p $TORCHROOT/usr/lib
@soardex
soardex / gist:6843c6a04b3974fdd582
Last active August 29, 2015 14:22
Trace Network Calls of a Process
# attach to a current network
strace -p [pid] -f -e trace=network -s [strsize]
# or just trace connect calls
strace -p [pid] -f -e trace=network -s [strsize]
# or some chosen network calls
strace -p [pid] -f -e poll,select,connect,recvfrom,sendto -s [strsize]