Skip to content

Instantly share code, notes, and snippets.

View subfission's full-sized avatar
๐Ÿ‘จโ€๐Ÿ’ป
InfoSec, privacy, and programming

ั•ฯ…ะฒฦ’ฮนั•ั•ฮนฯƒฮท subfission

๐Ÿ‘จโ€๐Ÿ’ป
InfoSec, privacy, and programming
  • This is not the web page you are looking for
View GitHub Profile
@subfission
subfission / updater.sh
Last active March 15, 2020 02:40
Update script for IANA
#!/bin/bash
# updater.sh
#
# ====================== WARRANTY ======================
# You get no warranty of any kind and I would advise
# you to walk away while you can. This may break the
# internet.
# ======================================================
#
# Purpose:
@subfission
subfission / install.sh
Last active November 7, 2022 14:43
One liner for filebeat install on pfsense/opnsense for Suricata.
#!/bin/sh
BEATVER="6.8.6"
read -r -p "What is the Logstash host:port? " HOST_TARG
echo ">$HOST_TARG"
CURR_DIR=$(pwd)
function exiting {
@subfission
subfission / NAS_Solutions.md
Last active December 17, 2019 09:08
Best Linux NAS Solutions and Summaries

Network-attached storage (NAS) is a file-level (as opposed to block-level) computer data storage server connected to a computer network providing data access to a heterogeneous group of clients. NAS is specialized for serving files either by its hardware, software, or configuration.

Best NAS Solutions

Synology

Best supported, enterprise ready, commercial grade software. Running on non-Synology hardward is not supported and unauthorized.

FreeNAS

@subfission
subfission / mount_vm_shares.sh
Last active December 16, 2019 08:26
Mounting Scripts in Linux Guest
#!/bin/bash
#
# Example for VMWare setup of guest mounts
#
# This example checks for folder called Scripts on host to be shared.
# This can be used with curl |bash for simplicity
echo "Attempting install of vmware-tools [errors ignored]"
sudo apt-get install -y open-vm-tools 2>/dev/null
@subfission
subfission / Open Source - DAST.md
Created November 22, 2019 06:24
Open source solutions for Dynamic Application Security Testing

DAST

Open source solutions for Dynamic Application Security Testing

Tool Description
Arachni Arachni is a Ruby framework that helps penetration testers and administrators gauge web application security.
Nikto2 Nikto is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers for multiple items, including over 6700 potentially dangerous files/programs, checks for outdated versions of over 1250 servers, and version specific problems on over 270 servers. It also checks for server configuration items such as the presence of multiple index files, HTTP server options, and will attempt to identify installed web servers and software. Scan items and plugins are frequently updated and can be automatically updated.
OWASP ZAP The OWASP Zed Attack Proxy (ZAP) is one of the worldโ€™s most popular free security tools and is actively maintained by hundreds of international volunteers*. It can help you automatically find security vulnerabilities in your
@subfission
subfission / DBtOVPN.sh
Created November 22, 2019 06:04
Dockerized Transmission over OpenVPN
sudo docker run -it --cap-add=NET_ADMIN --device /dev/net/tun --name vpn \
--dns 8.8.4.4 --dns 8.8.8.8 --restart=always \
-d dperson/openvpn-client ||
sudo docker run -it --name bit --net=container:vpn \
-d dperson/transmission
sudo docker run -it --name web -p 80:80 -p 443:443 --link vpn:bit \
-d dperson/nginx -w "http://bit:9091/transmission;/transmission"
@subfission
subfission / addhost
Last active November 11, 2019 06:20
Add host to Pihole's static lan records
#!/usr/bin/env bash
#
# Add custom host to static lan records in Pihole
#
# Install
# 1. Add script to /usr/local/bin
# 2. chmod +x script for exec
#
# By: Zach Jetson
#
@subfission
subfission / set_macos_hostname.sh
Last active September 8, 2019 08:33
Sets the hostname for Mac OS in all the various places and ways.
#!/bin/bash
#
# set_macos_hostname.sh
# Sets the hostname for Mac OS in all the various places and ways.
#
# Author: Zach Jetson
#
usage() {
printf "[!] Error: missing hostname in argument\n\n"
@subfission
subfission / voices.txt
Last active July 23, 2019 15:28 — forked from mculp/voices.txt
List of voices available by the `say` command on OS X
#-----------------------------------------
# Missing ones can be downloaded from
# Preferences > Accessibility > Speech,
# clicking the voice selector
# selecting Customize.
#-----------------------------------------
Agnes en_US # Isn't it nice to have a computer that will talk to you?
Albert en_US # I have a frog in my throat. No, I mean a real frog!
Alex en_US # Most people recognize me by my voice.
@subfission
subfission / comfu.txt
Last active November 13, 2025 20:23
Command Kung Fu Reference
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %