Skip to content

Instantly share code, notes, and snippets.

View UmbrielSecurity's full-sized avatar

UmbrielSecurity UmbrielSecurity

View GitHub Profile
@UmbrielSecurity
UmbrielSecurity / scan-ciphers.sh
Created January 13, 2017 15:30
Enumerate supported SSL ciphers
#!/usr/bin/env bash
# @UmbrielSecurity
# OpenSSL requires the port number.
if [ ! -z $1 ]; then
SERVER=$1
else
echo Usage: ./scan-ciphers.sh HOSTNAME:PORT
exit
fi
@UmbrielSecurity
UmbrielSecurity / register_rhn.sh
Created January 13, 2017 15:28
Register an RHEL6 or RHEL7 server to an in-house RHN Satellite server
#!/bin/bash
# register the RHN satellite server
# @UmbrielSecurity
ACTIVATION_KEY="X-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
SATELLITE_SERVER="satellite.example.com"
TOOLCHECK=0
# Validate necessary tools
echo Ensuring we have the necessary tools...
@UmbrielSecurity
UmbrielSecurity / wipe.sh
Created January 12, 2017 20:52
wipe.sh - a disk zeroing utility
#!/bin/bash
# Tool declarations, modify as needed.
AWK="/usr/bin/awk"
CAT="/bin/cat"
COMM="/usr/bin/comm"
CUT="/usr/bin/cut"
DATE=`/bin/date +%Y/%m/%d`
DD="/bin/dd"
GREP="/bin/grep"
@UmbrielSecurity
UmbrielSecurity / KB_Hunter.ps1
Last active January 12, 2017 20:47
Microsoft KB Hunter - Searches installed Windows Updates and the list of Quick Fix Engineering items.
# Quick and dirty Hotfix and Windows Updates
#
# UmbrielSecurity
Function Get-MSHotfix
{
$outputs = Invoke-Expression "wmic qfe list"
$Session = New-Object -ComObject "Microsoft.Update.Session"
$Searcher = $Session.CreateUpdateSearcher()