Skip to content

Instantly share code, notes, and snippets.

View austinsonger's full-sized avatar
🙃
Localhost

Austin Songer, CISSP austinsonger

🙃
Localhost
View GitHub Profile
@jhochwald
jhochwald / AADConnectTools.ps1
Created February 9, 2017 16:40
Azure Active Directory (AAD) Connect tooling.
#requires -Version 2.0
function Invoke-ADSyncDeltaCycle
{
<#
.SYNOPSIS
Trigger an AAD Connect Sync
.DESCRIPTION
Trigger an AAD Connect Sync on a remote computer
@jaredcatkinson
jaredcatkinson / Get-InjectedThread.ps1
Last active June 8, 2025 15:56
Code from "Taking Hunting to the Next Level: Hunting in Memory" presentation at SANS Threat Hunting Summit 2017 by Jared Atkinson and Joe Desimone
function Get-InjectedThread
{
<#
.SYNOPSIS
Looks for threads that were created as a result of code injection.
.DESCRIPTION
@dafthack
dafthack / gist:8aa4ff60cd9352448a372ce1a7b2e27e
Created April 11, 2017 14:50
Easy Metasploit Install on Windows Subsystem for Linux
Steps to install Metasploit on Windows 10 using the Windows Subsystem for Linux
1.) Enable Developer Mode
C:\> reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
2.) Enable Windows Subsystem for Linux
C:\> DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux
3.) Reboot
@samlester
samlester / mac-setup.sh
Last active April 1, 2024 16:53
Script to setup a new Mac
# Mac setup script
# By Sam Lester
# Originally based on https://gist.github.com/codeinthehole/26b37efa67041e1307db
# Usage:
# - Add email address and any additional apps to this file
# - Run sh ./mac-setup.sh
# - Run installers for apps that have them (Adobe Creative Cloud, Microsoft Office)
# - Install apps that aren't on cask (Magnet, Mactracker, iA Writer, Hand Mirror)
@PlagueHO
PlagueHO / New-AzureKeyVault.ps1
Created April 16, 2017 09:39
Create a New Azure Key Vault and set up an Administrator Policy
# The name of the Azure subscription to install the Key Vault into
$subscriptionName = 'MySubscription'
# The resource group that will contain the Key Vault to create to contain the Key Vault
$resourceGroupName = 'MyKeyVaultRG'
# The name of the Key Vault to install
$keyVaultName = 'MyKeyVault'
# The Azure data center to install the Key Vault to
@PlagueHO
PlagueHO / Get-AzureKeyVaultSecretPasswordAllVersions.ps1
Created April 17, 2017 07:02
Get all the versions of a secret in Azure Key Vault
Get-AzureKeyVaultSecret -VaultName $keyVaultName -Name 'MyAdminPassword' -IncludeVersions
@simon-liu
simon-liu / sed-search-replace.sh
Last active December 28, 2019 04:13
sed search & replace
sed -i -- 's/hello/moto/g' **/*(D.)
sed -i 's/hello/moto/g' file.txt
find /home/bruno/old-friends -type f -exec sed -i 's/ugly/beautiful/g' {} \;
@mgreen27
mgreen27 / EDR_Killer.ps1
Last active October 18, 2021 16:12
WMI EventConsumer to disable EDR (or other tools) tools when installed
# PowerShell 2.0
# Name: EDR_Killer.ps1
# Version: 1.0
# Author: @mgreen27
# Description: Powershell WMI Event Consumer Proof of Concept to disable EDR tools when installed.
# Original Template (Eventlog Consumer) attributed to @mattifestation: https://gist.github.com/mattifestation/aff0cb8bf66c7f6ef44a
# Set Variables
$Name = 'EDR_Killer'
$Query = 'SELECT * FROM __InstanceCreationEvent WITHIN 30 WHERE TargetInstance ISA "Win32_Service" AND (TargetInstance.Name = "Sysmon" OR TargetInstance.Name = "Service name 2" OR TargetInstance.Name = "Service Name ..." OR TargetInstance.Name = "Service name N")'
@jonathanwork
jonathanwork / penTools.sh
Created July 31, 2017 00:09
this is creates a bunch of pentools for fedora
#!/bin/bash
#credits to https://github.com/madmantm/fedora-pentest-tools thanks :D
echo "[*]preliminary questions regarding user-rights"
clear
read -p "[*]Please enter your username, this will help me fix permissions:" myname
clear
echo "[*]what would be your prefered directory name for the tools? no slashes pls"
@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active June 25, 2025 15:14
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.