This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 ########################################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# @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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
OlderNewer