Skip to content

Instantly share code, notes, and snippets.

View charlesfair's full-sized avatar

Charles "Chuck" A. Fair charlesfair

View GitHub Profile
@charlesfair
charlesfair / .bashrc
Created July 31, 2019 04:43 — forked from copperlight/.bashrc
Window Subsystem for Linux ssh-agent Configuraton
# ... more above ...
# wsfl bash is not a login shell
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# ssh-agent configuration
if [ -z "$(pgrep ssh-agent)" ]; then
rm -rf /tmp/ssh-*
#!/bin/bash
# Original version is written by Chris Kloiber <[email protected]>
# This fork version is modified by HONDA Hirofumi <[email protected]>
# A quick hack that will create a bootable DVD iso or non-bootable
# source DVD iso of a Red Hat Linux Distribution. Feed it either a
# directory containing the downloaded iso files of a distribution,
# or point it at a directory containing the "RedHat", "isolinux",
# and "images" directories.

ROCK Sensor Parts List

Below is the hardware I use for development and home use of my ROCK sensor. It’s an extremely powerful system in a small form factor, under $1000. The most important aspects to me were that I wanted IPMI for baremetal remote management, dual Intel NICs, quiet, and relatively low-power. I sit by this thing and work everyday and don’t want to wear hearing protection while I write code.

The prices reflect what I paid for them in March 2016. No doubt the prices will have changed and newer, better stuff is probably available. Things like RAM and SSDs go on sale all the time, so look for that if you’re a bargain shopper.

@charlesfair
charlesfair / README.md
Created July 31, 2019 03:49 — forked from dcode/README.md
NetworkManager dispatcher hook to start bro on a VPN interface

BroCtl hook for NetworkManager

I'm going through Offensive Security's "Pentesting With Kali" (PWK) course, and I added this hook to my Kali VM so that Bro would record everything going over the wire. I wanted to do this so I could analyze what my traffic would show up like using various tools.

Of course, you could use this on other systems using NetworkManager. And if you're pentesting, but not going over a VPN, just change the interface name in the script and the instructions. To add this to Kali for the OpenVPN connection, you need to do the following:

apt-get install bro broctl
sed -i 's/eth0/tap0/' /etc/bro/node.cfg
curl 'https://gist.githubusercontent.com/dcode/214fe616b1c98cd5665c99ad34a78893/raw/8d116140bb567c5990e378ab01973399719bb62a/nm-broctl.sh' | tee /etc/NetworkManager/dispatcher.d/broctl.sh
chmod +x /etc/NetworkManager/dispatcher.d/broctl.sh
@charlesfair
charlesfair / slack_history.py
Created July 31, 2019 03:25 — forked from minniel/slack_history.py
Download Slack Channel/PrivateChannel/DirectMessage History
from slacker import Slacker
import json
import argparse
import os
import shutil
import copy
from datetime import datetime
# This script finds all channels, private channels and direct messages
# that your user participates in, downloads the complete history for
@charlesfair
charlesfair / import_dod_certs_mac.sh
Created July 31, 2019 02:25 — forked from dcode/import_dod_certs_mac.sh
Enable CAC Authentication on Mac OS X (Mojave)
export CERT_URL='http://iasecontent.disa.mil/pki-pke/Certificates_PKCS7_v5.4_DoD.zip'
# Download & Extract DoD root certificates
cd ~/Downloads/
curl -LOJ ${CERT_URL}
unzip $(basename ${CERT_URL})
cd $(basename ${CERT_URL} .zip)
@charlesfair
charlesfair / bro-diag.json
Created August 19, 2018 21:49 — forked from bndabbs/bro-diag.json
Bro ES Index Templates
{
"order": 10,
"index_patterns": [
"bro-diag-*"
],
"mappings": {
"_doc": {
"properties": {
"acks": {
"type": "long"

#petya #petrWrap #notPetya

Win32/Diskcoder.Petya.C Ransomware attack.

Got new info? Email at [email protected] or @isox_xx Some wrong info? Leave the comment, we will fix it!

Research list

@charlesfair
charlesfair / 0_reuse_code.js
Created November 4, 2015 13:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console