Skip to content

Instantly share code, notes, and snippets.

@SadProcessor
SadProcessor / lc.txt
Created January 12, 2017 00:06
Other-Half-a-Calc
lc
@SadProcessor
SadProcessor / ca.txt
Created January 12, 2017 00:05
Half-a-Calc
ca
@SadProcessor
SadProcessor / Invoke-SyntaxISEr.ps1
Created January 7, 2017 19:08
ISE Script Explorer - Returns AST/Token/Error
#######################################################
#region SyntaxISEr ####################################
## Function Invoke-SyntaxISEr
## BackBone Tool for Invoke-CyberISEr - Exported (?)
<#
.Synopsis
ISE ScriptPane Explorer
.DESCRIPTION
@SadProcessor
SadProcessor / B64DataType.ps1
Created January 5, 2017 22:27
B64 CmdLine Converter - Add to PoSh profile
## Inline B64CMD Converter (Add to PoSh Profile)
## via System.String Type Custom ScriptProperty Member
# Base64 Encode/Decode
Update-TypeData -TypeName System.String -MemberName "ToB64" -MemberType scriptproperty -Value {[System.Convert]::ToBase64String([System.Text.Encoding]::UNICODE.GetBytes($this))}
Update-TypeData -TypeName System.String -MemberName "FromB64" -MemberType scriptproperty -Value {[System.Text.Encoding]::UNICODE.GetString([System.Convert]::FromBase64String($this))}
# Add iex
Update-TypeData -TypeName System.String -MemberName "AddIEX" -MemberType scriptproperty -Value {"iex (`"$this`")"}
@SadProcessor
SadProcessor / OneLineRoll.ps1
Last active December 30, 2019 01:44
When all you need to hear is some computer love...
Add-Type -Ass System.Speech;$S=New-Object System.Speech.Synthesis.SpeechSynthesizer;$S.volume=100;$L="We are no strangers to love... You know the rules and so do I. A full commitment is what I am thinking of. You wouldn't get this from any other computer... I just want to tell you how I am feeling... I have got to make you understand: Never gonna give you up, never gonna let you down; Never gonna run around and desert you. Never gonna make you cry, never gonna say goodbye. Never gonna tell a lie and ... hur-urt you.";$S.Speak($L)
### Send a bit of love to yourself
# iex(iwr http://bit.ly/2gXq9fu).content
### Send Loads of Love to your SubNet over WinRM
# 1..254|%{icm 10.0.1.$_{iex(iwr http://bit.ly/2gXq9fu).content}-ea si}
@SadProcessor
SadProcessor / Get-Zap.ps1
Created December 16, 2016 00:01
PoSh Cmdlet for OWASP Zap API
<#
.Synopsis
View -> Acsrf
.DESCRIPTION
PoSh WebApp ZapBot...
See OWASP ZAP documentation for more info.
.EXAMPLE
function Out-Loud(){
Param(
#Message
[Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=0)]
[ValidateNotNull()]
[String[]]$Text,
#Voice
[ValidateSet('David', 'Zira', 'Hazel')]