Skip to content

Instantly share code, notes, and snippets.

View austinsonger's full-sized avatar
🙃
Localhost

Austin Songer, CISSP austinsonger

🙃
Localhost
View GitHub Profile
@glides
glides / kerberos_attacks_cheatsheet.md
Created June 10, 2020 00:39 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

Rank Type Prefix/Suffix Length
1 Prefix my+ 2
2 Suffix +online 6
3 Prefix the+ 3
4 Suffix +web 3
5 Suffix +media 5
6 Prefix web+ 3
7 Suffix +world 5
8 Suffix +net 3
9 Prefix go+ 2
@acerzhou
acerzhou / Create VM
Last active October 25, 2020 05:33
[Azure Powershell] Azure PowerShell #Azure #Powershell
$myResourceGroup = Read-Host -prompt "Enter a resource group name: "
$myLocation = Read-Host -prompt "Enter a location (ie. WestUS): "
$myVM = Read-Host -prompt "Enter a VM name: "
$vmAdmin = Read-Host -prompt "Enter a VM admin user name: "
# The password must meet the length and complexity requirements.
$vmPassword = Read-Host -prompt "Enter the admin password: "
# create a resource group
New-AzResourceGroup -Name $myResourceGroup -Location $myLocation
@aerobounce
aerobounce / macOS System Preference Pane Links.md
Last active August 23, 2024 20:54
macOS System Preference Pane Links
@angelobelchior
angelobelchior / elastic stack
Last active March 21, 2021 02:34
Passo-a-passo para a instalação do Elastic Stack
#Passo-a-passo para a instalação do Elastic Stack seguindo as aulas do Eduardo Neves (https://www.youtube.com/watch?v=B3Vl0nQyK-U)
#Esse passo-a-passo foi testado no Ubuntu 20.04
#Java
sudo apt update
sudo apt install default-jre
sudo apt install default-jdk
export JAVA_HOME=/usr/lib/jvm/default-java-
export PATH=${PATH}:${JAVA_HOME}/bin
@kbhunut
kbhunut / o365_Onboarding.ps1
Last active March 31, 2025 12:35
Office 365 Onboarding
#Requires -Version 7.0
# If you powershell version is lower than 7. Must update to the latest version.
# Install Azure Graph Powershell Module
# Run this Command: Install-Module -Name AzureAD
# https://docs.microsoft.com/en-us/office365/enterprise/powershell/connect-to-office-365-powershell#connect-with-the-azure-active-directory-powershell-for-graph-module
# https://docs.microsoft.com/en-us/office365/enterprise/powershell/manage-user-accounts-and-licenses-with-office-365-powershell
$Credential = Get-Credential
Connect-AzureAD -Credential $Credential
# Tried of input credential every time? You can export credential and import it.
@machv
machv / README.md
Last active September 4, 2024 07:41
Azure AD Connect behind proxy server

How to run Azure AD Connect behind proxy server

In this scenario I am using two proxy servers:

  • User proxy - with authentication required for users
  • System proxy - for machine context without any authentication

Sample squid configuration is below together with PowerShell script to configure prerequisities (https://docs.microsoft.com/cs-cz/azure/active-directory/hybrid/how-to-connect-install-prerequisites#connectivity).

Do not make any changes to miiserver.exe.config. This file is overwritten on every upgrade so even if it works during initial install, the system stops working on first upgrade. For that reason, the recommendation is to update machine.config instead.

@OleksandrKucherenko
OleksandrKucherenko / configureMyMac.sh
Last active March 19, 2025 10:14
Pre-configure My mac
#!/usr/bin/env bash
set -x # uncomment to debug
# required for Homebrew
xcode-select —-install
sudo xcodebuild -license accept
# install https://brew.sh/
which brew || (/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" )
@JacobErnst98
JacobErnst98 / Reset-password.ps1
Created March 2, 2020 15:55
Reset a local ad password from the rest value given in office 365, for environments not running azure ad sync
Connect-MsolService
$people = "<sam1>,<sam2>"
$domain = "<@website.com>"
foreach($person in $people){
$tmpPass = Set-MsolUserPassword -UserPrincipalName $($person + $domain)
Set-ADAccountPassword -Identity $person -Reset -NewPassword (ConvertTo-SecureString -AsPlainText $tmpPass -Force)
Add-ADGroupMember -Identity "E2" -Members $person
Write-Host $person "---Password---" $tmpPass
}
#Depending if you are already connected execute this first part
Connect-AzureAD
#Get the Service Principal that was created when you created a Managed Identity from your Web App
$MyMI = Get-AzureADServicePrincipal -ObjectId <ID(GUID) of your managed identity shown in the Azure portal>
#Get the Office 365 SharePoint Online API
$SharePointAPI = Get-AzureADServicePrincipal -SearchString “Office 365 SharePoint”
#Select the User.ReadWrite.All App-Only Permissions. If you want another App-Only permission then search for another value