Skip to content

Instantly share code, notes, and snippets.

View bgarlock's full-sized avatar

Bruce Garlock bgarlock

View GitHub Profile
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Original Version: 1.4, 2016-01-16
# Tweaked based on personal preferences for @alirobe 2016-03-23 - v1.4.1
# NOTE: MAKE SURE YOU READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT + ADJUST COMMENTING AS APPROPRIATE
# This script will reboot your machine when completed.
##########
# Ask for elevated permissions if required
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This script dumps the content of a shared memory block
# used by Linux/Cdorked.A into a file named httpd_cdorked_config.bin
# when the machine is infected.
#
# Some of the data is encrypted. If your server is infected and you
# would like to help, please send the httpd_cdorked_config.bin
# to our lab for analysis. Thanks!
@bgarlock
bgarlock / yesterday.sh
Created September 12, 2011 21:11
yesterdays date
#!/bin/ksh
# B. Garlock - 12Sep11. GPL license. Get yesterday, and last weeks date and print them out.
set -A DAYS Sat Sun Mon Tue Wed Thu Fri Sat
set -A MONTHS Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
YESTERDAY=$((`date +%d` -1))
LASTWEEK=$((`date +%d` -7))
MONTH=`date +%m`
YEAR=`date +%Y`
NDAY=`date +%u`