Skip to content

Instantly share code, notes, and snippets.

View EricTurner3's full-sized avatar

Eric Turner EricTurner3

View GitHub Profile
### Keybase proof
I hereby claim:
* I am ericturner3 on github.
* I am ericturner (https://keybase.io/ericturner) on keybase.
* I have a public key ASC4fEuBBo0RQcyBM4wP1PyNjTx7S6SPSEyKC8EDV2a2two
To claim this, I am signing this object:
@EricTurner3
EricTurner3 / gist:e722119b8d1863ae95cde33df3d062a9
Created June 11, 2021 17:13
Python One-Liner UUID Generate (no hyphens)
python -c "import uuid; print(str(uuid.uuid4()).replace('-',''))"
@EricTurner3
EricTurner3 / functions.php
Created March 2, 2022 19:17
Add emgithub embed to Wordpress
<?php
//Add this function to your /wp-content/themes/<yourtheme>/functions.php
//It uses emgithub.com to spawn an embed for your github code on a Wordpress Bloc
//Derived from https://crunchify.com/how-to-embed-and-share-github-gists-on-your-wordpress-blog/
// 2 Mar 2022
/**
*
* Example: https://github.com/EricTurner3/cybersecurity/blob/main/HackTheBox/challenges/forensics/redfailure/decrypt.cs
@EricTurner3
EricTurner3 / filehashes.ps1
Created October 24, 2023 02:20
Powershell One-Liner Generate all File Hashes
Read-Host "Enter full file name and path" | %{Get-FileHash -Algorithm MD5 -Path $_; Get-FileHash -Algorithm SHA1 -Path $_; Get-FileHash -Algorithm SHA256 -Path $_; Get-FileHash -Algorithm SHA384 -Path $_; Get-FileHash -Algorithm SHA512 -Path $_; Get-FileHash -Algorithm MACTripleDES -Path $_; Get-FileHash -Algorithm RIPEMD160 -Path $_;} | Format-List
@EricTurner3
EricTurner3 / get_hashes.ps1
Last active October 24, 2023 13:07
PowerShell Get All Hashes of File (Get-FileHash)
<#
Get-FileHash Extended
Returns all hashes from the supported algorithms in one response
Allows filepath to be used directly from an argument or prompt after the script is ran
#>
param(
[string]$FilePath
)