Skip to content

Instantly share code, notes, and snippets.

View austinsonger's full-sized avatar
🙃
Localhost

Austin Songer, CISSP austinsonger

🙃
Localhost
View GitHub Profile
@austinsonger
austinsonger / fwfcmb.sh
Created February 2, 2020 18:55
Fix Wi-Fi Connection on MacBook
cd /Library/Preferences/SystemConfiguration/
sudo zip backup.zip \
com.apple.airport.preferences.plist \
com.apple.network.identification.plist \
com.apple.wifi.message-tracer.plist \
NetworkInterfaces.plist preferences.plist
sudo rm com.apple.airport.preferences.plist \
com.apple.network.identification.plist \
com.apple.wifi.message-tracer.plist \
NetworkInterfaces.plist preferences.plist
#!/bin/bash
# Requires:
# 1-2 Cores
# 512-1 GB RAM
# 300+ MB HD
bold=$(tput bold)
green=$(tput setaf 2)
normal=$(tput sgr0)
@austinsonger
austinsonger / wikijs.sh
Created February 11, 2020 21:54
WIKI JS INSTALL
dpkg-reconfigure tzdata
apt replace && apt improve -y
apt set up -y curl wget vim git unzip socat sudo bash-completion apt-transport-https build-essential dirmngr
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt set up -y nodejs
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
@austinsonger
austinsonger / newubuntu-withoutrdp.sh
Created February 11, 2020 23:25
New Ubuntu (Without RDP)
sudo -n true
sudo apt update -y
sudo apt list --upgradable -a
sudo apt upgrade -y
sudo dpkg --configure -a
sudo apt install -f
sudo apt update --fix-missing
sudo apt --fix-broken install -y
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
sudo apt install ubuntu-restricted-extras -y
@austinsonger
austinsonger / suricata-ids.sh
Last active August 19, 2020 20:18
Suricata (IDS Only) [Debian-Based Systems]
######################
# Suricata (IDS Only)
######################
# Update and Upgrade
sudo apt update -y && sudo apt upgrade -y
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:oisf/suricata-stable
# Requirements
@austinsonger
austinsonger / suricata-ids-ips.sh
Last active March 28, 2022 10:11
Suricata (IDS + IPS) [Debian-Based Systems]
######################
# Suricata (IDS + IPS)
######################
# Update and Upgrade
sudo update -y && sudo upgrade -y
# Requirements
sudo apt -y install rustc cargo
sudo apt -y install libpcre3 libpcre3-dbg libpcre3-dev build-essential autoconf automake libtool libpcap-dev libnet1-dev libyaml-0-2 libyaml-dev zlib1g zlib1g-dev libcap-ng-dev libcap-ng0 libnspr4-dev libnss3-dev liblz4-dev
@austinsonger
austinsonger / debian-cleancomplete.sh
Created February 17, 2020 15:32
Debian-Base Clean+Purge
sudo apt autoremove --purge -y
sudo apt autoclean -y
sudo rm -rf /home/$USER/.local/share/Trash/*
sudo find /tmp/ -type f -mtime +1 -exec sudo rm {} \;
sudo find /tmp/ -type f -atime +1 -exec sudo rm {} \;
sudo apt remove -y
sudo apt clean -y
sudo apt clean all -y
sudo rm /home/$USER/.bash_history
sudo rm /home/$USER/.local/share/user-places.xbel.bak
@austinsonger
austinsonger / Out of space (LVM).md
Created February 17, 2020 15:46
Out of space (LVM) Ubuntu - Extend and Resize

Find out LVM path

lvdisplay

Extend however much space you believe you can

lvextend -L +<size>G /dev/ubuntu-vg/ubuntu-lv

lvextend -L +200G /dev/ubuntu-vg/ubuntu-lv

@austinsonger
austinsonger / suricata.yaml
Created February 17, 2020 21:21
Suricata - Wazuh Configuration (yaml)
%YAML 1.1
---
###
## http://www.branchnetconsulting.com/
###
# Suricata configuration file. In addition to the comments describing all
# options in this file, full documentation can be found at:
# https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Suricatayaml
@austinsonger
austinsonger / fingerprinting.rules
Created February 17, 2020 22:24
fingerprinting
# Suricata fingerprint.rules
# Copyright (c) 2009-2019. Quadrant Information Security <www.quadrantsec.com>
# All rights reserved.
#
#
#*************************************************************
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this list of conditions and the following