Skip to content

Instantly share code, notes, and snippets.

View cyrex562's full-sized avatar

Josh Madden cyrex562

  • Phantom Forge, LLC
  • Chantilly, VA
  • 04:19 (UTC -04:00)
View GitHub Profile
@cyrex562
cyrex562 / install_configure_suricata
Created May 8, 2019 20:53
Install and configure suricata with filebeats integration
# Install and Configure Suricata
```sh
apt -y install libpcre3 libpcre3-dev build-essential autoconf automake libtool libpcap-dev libnet1-dev libyaml-0-2 libyaml-dev zlib1g zlib1g-dev libmagic-dev libcap-ng-dev libjansson-dev pkg-config libnetfilter-queue-dev geoip-bin geoip-database geoipupdate apt-transport-https
```
```sh
add-apt-repository ppa:oisf/suricata-stable
apt-get update
apt install suricata -y
@cyrex562
cyrex562 / compile_install_qemu.md
Created May 4, 2019 14:14
download, compile, and install qemu from source
git clone git://git.qemu-project.org/qemu.git
cd qemu
sudo apt install libgtk-3-dev libvte-dev libgnutls28-dev libgcrypt20-dev libcurl4-gnutls-dev libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev libaio-dev libbluetooth-dev libbrlapi-dev libbz2-dev libcap-dev libibverbs-dev libjpeg8-dev libncurses5-dev libnuma-dev librbd-dev librdmacm-dev libsasl2-dev libsdl2-dev libsdl2-image-dev libseccomp-dev libsnappy-dev libssh-dev libvde-dev libvdeplug-dev libxen-dev liblzo2-dev valgrind xfslibs-dev
sudo apt install clang clang-tidy llvm
sudo apt install libgtkglext1-dev
sudo apt install libepoxy-dev libdrm-dev mesa-common-dev libvirglrenderer-dev libpulse-dev 
sudo apt install libgbm-dev libx11-dev
sudo apt install libspice-server-dev libspice-client-glib-2.0-dev libspice-client-gtk-3.0-dev libspice-protocol-dev
sudo apt install libcap-ng-dev libsmartcardpp-dev libusb-dev libusbredirhost-dev libusbredirparser-dev libiscsi-dev libnfs-dev libglusterfs-dev libssh2-1-dev libxml2-dev libpmem-dev
@cyrex562
cyrex562 / compile_install_virt_manager.md
Created May 4, 2019 13:40
virt-manager compile and install from source
sudo apt install intltool`
wget https://virt-manager.org/download/sources/virt-manager/virt-manager-2.1.0.tar.gz
tar xf virt-manager-*
cd virt-manager-2.1.0
sudo ./setup.py install
@cyrex562
cyrex562 / modify_nanorc.py
Created April 26, 2019 14:09
Modify nanorc with python script
"""
modify the nanorc file
"""
import sys
import shutil
from os import remove
from tempfile import mkstemp
import re
@cyrex562
cyrex562 / cgo_win_support.md
Created March 23, 2018 19:36
cgo windows support
@cyrex562
cyrex562 / libzmq_install_ubuntu.md
Created March 20, 2018 13:53
libzmq install ubuntu
  1. Install pre-requisites via APT
sudo apt-get install libtool pkg-config build-essential autoconf automake
sudo apt-get install libzmq-dev
  1. Install libsodium from source
git clone git://github.com/jedisct1/libsodium.git
cd libsodium
@cyrex562
cyrex562 / units.txt
Created March 10, 2018 15:37
Data File for Non-Chaning Units from Frink
//
// Frink data file for non-changing units.
//
// This file is used by the Frink calculating tool/programming language:
// http://futureboy.us/frinkdocs/
//
// If you got to this page from a web search because you're trying to do a
// unit conversion or manipulation, try it at the following URL:
//
// http://futureboy.us/frink/
@cyrex562
cyrex562 / df_groups.txt
Created March 10, 2018 15:29
Diffie-Hellman Groups
Diffie-Hellman group 1 - 768 bit modulus - AVOID
Diffie-Hellman group 2 - 1024 bit modulus - AVOID
Diffie-Hellman group 5 - 1536 bit modulus - AVOID
Diffie-Hellman group 14 - 2048 bit modulus – MINIMUM ACCEPTABLE
Diffie-Hellman group 19 - 256 bit elliptic curve – ACCEPTABLE
Diffie-Hellman group 20 - 384 bit elliptic curve – Next Generation Encryption
Diffie-Hellman group 21 - 521 bit elliptic curve – Next Generation Encryption
Diffie-Hellman group 24 - modular exponentiation group with a 2048-bit modulus and 256-bit prime order subgroup – Next Generation Encryption
Algorithms marked as AVOID do not provide an adequate security level against modern threats and should not be used to protect sensitive information. It is recommended that these algorithms be replaced with stronger algorithms.
@cyrex562
cyrex562 / get_ssid_and_key.md
Created March 6, 2018 16:42
Get the SSID and key for a network using powershell

Originally discovered on Microsoft TechNet blog posting from November 23, 2015.

netsh.exe wlan show profiles name='network profile name' key=clear
@cyrex562
cyrex562 / nanorc_settings.md
Created July 18, 2017 15:57
nanorc settings

Nanorc settings for linux

/etc/nanorc:

# set constantshow
set nowrap
# set softwrap
# set tabsize 8
# set tabstospaces