This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ReverseBytes | |
{ | |
param([UInt32]$Value) | |
return (($value -band 0x000000FF) -shl 24) -bor (($value -band 0x0000FF00) -shl 8) -bor (($value -band 0x00FF0000) -shr 8) -bor (($value -band 0xFF000000 -shr 24)) | |
} | |
function FlipHex | |
{ | |
param([NETLOGON_NT_VERSION]$flags) | |
[UInt32] $f = [UInt32]$flags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVwZD2Ur4i/sEIZRYXkinx5PfAnLfJbTRMl6gl4tiR9PtWANVm5jsfoHujgNs3EMgSoBAPIJHz+mtyHD5LU3tMgqcVpw6KdDAypoZsD+cGJkGLIouI3U+lhUSb0xcfDE0etsvn+c0fFX9AHIlQgDFio1fN+UpNhWzFrZA0iriVsJ7pRqz87aOYa1FElSZ/jbQjctiOPuYStfDI8/5ipU4OyzqP50q45L+Qj6MpFKdNcinL2o+rXvrhILMjlxrjK3yExodKIAaf+gfu5MIRKUnlih2c5jv4oalWsYNl1vmZR6FPh77fkgheRKy6itJfmoe2V4M4xWsWUd3ihBzKrMWP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
username=goodolclint | |
publickey=ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAnMfLbajwTboPlqFJyajrl9h+V++Nua0BibBiYkNckYbzQrl512pzYsqjp+Iti09FaJMo7ezbDjTa9PNv/H9oodiat8DZah+1EoRF4uoEATeWouU9ruhGHGLEe3CA9+48nqnfMRnWHrXymlpNEZCY6CuN+fQWZd7dFJ3fystOZ26R2t3ijWBitzsVntCPSYTLgbtqozbZk6efJwzwua+i8E9GbHOQ39jM1F6byoO9CFqaw6OwkSzvo03BNTLYofsw/cwb9MovjvDJz4x2/0DA0pz5zREhTbnhXpxxJAOfO8/IHiiLCF2zChBXUIamcpdCcnlo+WZYHBrUSIx1Fnr00Q== rsa-key-20161130 | |
### DO NOT EDIT BELOW THIS LINE ### | |
if (( $EUID != 0 )); then | |
echo 'This script must be run as root' | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAnMfLbajwTboPlqFJyajrl9h+V++Nua0BibBiYkNckYbzQrl512pzYsqjp+Iti09FaJMo7ezbDjTa9PNv/H9oodiat8DZah+1EoRF4uoEATeWouU9ruhGHGLEe3CA9+48nqnfMRnWHrXymlpNEZCY6CuN+fQWZd7dFJ3fystOZ26R2t3ijWBitzsVntCPSYTLgbtqozbZk6efJwzwua+i8E9GbHOQ39jM1F6byoO9CFqaw6OwkSzvo03BNTLYofsw/cwb9MovjvDJz4x2/0DA0pz5zREhTbnhXpxxJAOfO8/IHiiLCF2zChBXUIamcpdCcnlo+WZYHBrUSIx1Fnr00Q== rsa-key-20161130 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function New-JunkFile | |
{ | |
<# | |
.SYNOPSIS | |
Generates a file of a specified length, filled with random bytes | |
.DESCRIPTION | |
Generates a file of a specified length, filled with random bytes | |
Uses the RNGCryptoServiceProvider to randomly select each byte |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function New-StrongPassword | |
{ | |
<# | |
.SYNOPSIS | |
Returns a strong password of the specified length | |
.DESCRIPTION | |
Returns a strong password of the specified length | |
Uses the RNGCryptoServiceProvider to randomly select each character of the password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Show-Cat | |
{ | |
if($psversiontable.psversion.major -lt 3) | |
{ | |
Write-Host 'Cats are only available on Powershell Version 3 or later' | |
return | |
} | |
[void][Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | |
$proxy = [System.Net.WebRequest]::GetSystemWebproxy().GetProxy('http://thecatapi.com/') | |
$settings = @{} |