Skip to content

Instantly share code, notes, and snippets.

View hxtree's full-sized avatar

Matthew Heroux hxtree

View GitHub Profile
@hxtree
hxtree / README.md
Created January 24, 2020 20:44
Web Browsers

Text Based

Lynx

apt install lynx

Graphical

Firefox

apt install firefox
@hxtree
hxtree / README.md
Created January 31, 2020 20:58
Web Data Visualization Resources
@hxtree
hxtree / README.md
Created February 11, 2020 13:35
Watch Directory For Changes
@hxtree
hxtree / README.md
Created March 2, 2020 15:36
Postfix Cert Generate PEM file

Generate a PEM cert

openssl req -new -newkey rsa:2048 -nodes -out example_com.csr -keyout example_com.key -subj "/C=US/ST=NY/L=New York/O=Example Org/OU=IT/CN=*.example.com"

Get/Order Cert

@hxtree
hxtree / nmap-cheat-sheet.md
Last active March 3, 2020 15:08
NMAP Cheat Sheet

NMAP Cheat Sheet

Scan local network for HTTPS

nmap --script ssl-cert -p 443 -oN 192.txt 192.168.0.0/16
nmap --script ssl-cert -p 443 -oN 10.txt 10.0.0.0/8;
nmap --script ssl-cert -p 443 -oN 172.txt 172.16.0.0/12;

When finished get all TLS/SSL URLs using:

@hxtree
hxtree / README.md
Created March 3, 2020 14:25
BASH View Directory As Tree

BASH View Directory As Tree

Start a terminal and install the install the tree package (example in Ubunutu)

apt install tree

Within a terminal run the tree

tree .
@hxtree
hxtree / README.md
Created March 3, 2020 14:31
Compare Files In Linux

Compare two directories

diff -y /var/www  /var/www/hxtree

Compare two files

diff test.html test2.html
@hxtree
hxtree / README.md
Created March 3, 2020 20:26
Repo Badges
@hxtree
hxtree / etc\networking\interfaces
Created March 5, 2020 19:44
EZProxy Set Traffic to Different IP Addresses For JSTOR
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0 eth0:0
allow-hotplug eth0 eth0:0
iface eth0 inet static
address 10.1.1.1
@hxtree
hxtree / clients.conf
Last active March 31, 2020 18:42
Freeradius 3.0 Install LDAP Ubuntu 18
client 10.0.2.0/16 {
secret = secret
shortname = wifi-net
nastype = other
}