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 / petya_vaccine.bat
Created June 28, 2017 18:35
Administrator vaccine for petya based on current research.
@echo off
cls
echo Vaccinating for Petya malware
NET SESSION >nul 2>&1
IF %ERRORLEVEL% EQU 1 (
echo ####### ERROR: ADMINISTRATOR PRIVILEGES REQUIRED #########
echo This script must be run as administrator to work properly!
echo If you're seeing this after clicking on a start menu icon, then right click on the shortcut and select "Run As Administrator".
echo ##########################################################
@subfission
subfission / .bash_profile
Last active April 24, 2018 22:31
Secure File Wipe
#
# @author: Zach Jetson
#
# Secure File Wiper
#
# Add this function to the bottom of your bash profile for a quick
# and dirty secure file clean. Works with Linux & MacOS.
secure_delete() {
@subfission
subfission / ip_resolver.sh
Created September 12, 2017 21:47
MAC OS reverse lookup IP list
#!/bin/sh
#
# @Description: MAC OS script to quickly reverse lookup host IP's to
# DNS hostnames and print in a format compatible with copying
# to Excel.
#
# @author: Zach Jetson
#
usage() {
@subfission
subfission / update_rkhunter
Created September 25, 2017 17:19
Update RKhunter
#!/bin/bash
#
# @author Zach Jetson
#
# Description
# This script will update Rootkit Hunter and
# refresh the database. It should be used
# by other scripts such as postupcp.
#
RK=/usr/bin/rkhunter
@subfission
subfission / forwardsplunker.sh
Last active August 6, 2018 18:29
Splunk UniversalForwarder 7.0.0 Downloader for RedHat
#!/bin/bash
# Downloader script for Splunk Universal Forwarder
#
# Usage:
# bash forwardsplunker.sh
#
version="7.0.0" # Splunk product Version
hash="c8a78efdd40f" # Versioned HASH
# --- Dont edit below ---
@subfission
subfission / hgfban
Last active December 1, 2017 07:31
Script to ban attackers using HostGator Firewall, CPHulk, and iptables.
#!/usr/bin/env bash
# Script: hgfban
#
# Written By: Zach Jetson
#
# This script is intented to be used with webservers that
# consume flat files for banning hosts by IP.
#
# Copy this file in /opt/hgfban with execute permissions: chmod+x
#
@subfission
subfission / Secure File Wiper
Created November 24, 2017 12:00
Secure File Wiper BashProfile
# Secure File Wiper
#
# Description
# Add this function to the bottom of your bash profile for a quick
# and dirty secure file clean. Works with Linux & MacOS.
#
# @author: Zach Jetson
#
secure_delete() {
@subfission
subfission / .bashrc
Last active April 27, 2018 06:17
Parrot OS Style Bash Resource File
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@subfission
subfission / enum_ec2_instances.go
Last active February 22, 2018 21:41 — forked from stephen-mw/list_ec2_instances.md
List running EC2 instances with golang and aws-sdk-go
/*
List all of your running (or pending) EC2 instances with Amazon golang sdk.
For a list of filters or instance attributes consult the [official documentation](http://godoc.org/github.com/awslabs/aws-sdk-go/gen/ec2#Instance).
*/
package main
import (
"fmt"
"github.com/awslabs/aws-sdk-go/aws"
@subfission
subfission / ubuntu-secure-server.sh
Created April 26, 2018 03:30
(Historical) Ubuntu Server Secure script v0.1 alpha by The Fan Club - May 2012
#!/bin/sh
# Found this old gem for Ubuntu 12.04 LTS on my desktop. Preserving since the project was abandoned.
#
# Ubuntu Server Secure script v0.1 alpha by The Fan Club - May 2012
#
# - Zenity GUI installer version
#
echo
echo "* Ubuntu Server Secure script v0.1 alpha by The Fan Club - May 2012"
echo