Skip to content

Instantly share code, notes, and snippets.

View austinsonger's full-sized avatar
🙃
Localhost

Austin Songer, CISSP austinsonger

🙃
Localhost
View GitHub Profile
@austinsonger
austinsonger / cloudTrailEventNames.list
Created October 5, 2021 14:47 — forked from pkazi/cloudTrailEventNames.list
List of values for parameter EventName in AWS Cloudtrail events
AbortDocumentVersionUpload
AbortEnvironmentUpdate
AbortMultipartUpload
AbortVaultLock
AcceptAccountMapping
AcceptCertificateTransfer
AcceptDelegate
AcceptDirectConnectGatewayAssociationProposal
AcceptFxPaymentCurrencyTermsAndConditions
AcceptHandshake
@austinsonger
austinsonger / SingleMicrosoftTenant.ps1
Created August 30, 2021 15:40
Check a Single Office 365 tenant’s emails for known associated breaches
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Connect-MsolService
$HIBPAPIKey = "YOURHIBPAPIKEY"
$headers = @{
"hibp-api-key" = $HIBPAPIKey
}
$baseUri = "https://haveibeenpwned.com/api/v3"
$users = Get-msoluser -All
foreach ($user in $users) {
@austinsonger
austinsonger / macos-init.sh
Created August 30, 2021 13:28
An initialization script for new MacBooks
#!/bin/sh
# To run: `sh -c "$(curl https://gist.githubusercontent.com/5c077m4n/2e27f6ef11dea84071845fd85fc9fd84/raw)"`
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Disable the sound effects on boot
sudo nvram SystemAudioVolume=" "
@austinsonger
austinsonger / Prioritization.md
Last active August 30, 2021 16:17
Work, Project, Service, and Product Prioritization

Key Questions for Prioritization

This is what we ask ourselves to decide what gets done and what doesn't.

  • Does this serve our mission? (Important)
    • Do you have a prepared mission statement?
    • NOTE: You should also have defined "core values".
  • Will this help to make us financially sustainable within a year, two years, three years, and beyond? (Important)
  • Can this make us move faster? (Important)
  • Does this increase quality?
@austinsonger
austinsonger / googledorks.md
Created July 31, 2021 00:13
List of Google Dorks
_news/news.php?id=
-site:php.net -"The PHP Group" inurl:source inurl:url ext:pHp
!Host=*.* intext:enc_UserPassword=* ext:pcf
?action=
?cat=
?id=
?intitle:index.of? mp3 artist-name-here
?intitle:index.of? mp3 name
@austinsonger
austinsonger / Microsoft-Links.md
Created June 25, 2021 01:32
Microsoft URLS / Links You Should Write Down
@austinsonger
austinsonger / window-events-codes.md
Created June 23, 2021 21:48
Window Event Codes
event_code description
1100 The event logging service has shut down
1101 Audit events have been dropped by the transport.
1102 The audit log was cleared
1104 The security Log is now full
1105 Event log automatic backup
1108 The event logging service encountered an error
4608 Windows is starting up
4609 Windows is shutting down
@austinsonger
austinsonger / root.md
Created June 9, 2021 16:20
MacOS: Root Directory Structure
/: Root directory, present on virtually all UNIX based file systems. Parent directory of all other files

.DS_Store: This file contains Finder settings, such as icon location, position of icons, choice of a background image, window size and the names of all files (and also directories) in that folder. The file will appear in any directory that you’ve viewed with the Finder and and has functions similar to the file desktop.ini in Microsoft Windows. .DS_Store is an abbreviation of Desktop Services Store

.DocumentRevisions-V100/: DocumentRevisions-V100 is an internal version control system introduced by Apple in OSX Lion. It basically saves a copy of a file each and every time you save it. Apple uses it for TextEdit, KeyNote, Pages, Numbers, and some other programs. Developers can also interact with this API in their apps. Basically this system is a very big database file that keeps track of all your changes to documents and allows you to revert back to any versions.

.fseventsd/: fseventsd is a “File sys
@austinsonger
austinsonger / library.md
Created June 9, 2021 16:19
MacOS: Library Directory Structure
/Library/Application Support/
/Library/Application Support/Adobe/
/Library/Application Support/App Store/
/Library/Application Support/Apple/
/Library/Application Support/ApplePushService/
/Library/Application Support/CrashReporter/
/Library/Application Support/GPGTools/
@austinsonger
austinsonger / private.md
Created June 9, 2021 16:18
MacOS: Private Directory Structure
/private/etc/
/private/etc/apache2/
/private/etc/asl/
/private/etc/cups/
/private/etc/defaults/
/private/etc/emond.d/
/private/etc/mach_init.d/