Skip to content

Instantly share code, notes, and snippets.

@SadProcessor
SadProcessor / PoShSysX.ps1
Last active December 10, 2016 14:22
PoShSysX >> External SysInternal toolbox via PowerShell - When you forgot your tools...
##PoShSysX.v1 - WalterLegowski
<#
.Synopsis
PoShSysX: External SysInternal toolbox via PowerShell
.DESCRIPTION
This cmdlet generates a powershell string that can be run on the localhost (default) or used as scriptblock for other tool (via clipboard).
When executed, connects \\live.sysinternals.com\tools\ as PSDrive and runs .exe from that path.
Always latest version of tools. No install to disk. (But slower...)
.EXAMPLE
@SadProcessor
SadProcessor / FishSticks.ps1
Last active May 8, 2020 03:49
Generate nefarious powershell wrapped in .wsf for USB-Drop Attacks. Will harvest all files with specified extensions from specified folders and send them to specified Gmail account.
<#
.Synopsis
____ _ _ ___ _ _ _
| __(_)__| |_ / __| |_(_)__| |__ ___
| _|| (_-< ' \\__ \ _| / _| / /(_-<
|_| |_/__/_||_|___/\__|_\__|_\_\/__/.v1
"Life is like a box of FishSticks, you never know what you're gonna get..."
Benjamin Buford "Bubba" Blue - 1965.
@SadProcessor
SadProcessor / Out-Loud.ps1
Last active November 8, 2016 01:30
PoSh Text-to-Speech
function Out-Loud(){
Param(
#Message
[Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=0)]
[ValidateNotNull()]
[String[]]$Speech,
#Voice
[ValidateSet('David', 'Zira', 'Hazel')]
@SadProcessor
SadProcessor / KLR.DMe_Recipe.txt
Last active August 11, 2021 03:22
Kali L33tR4t - SadProcessor's HomeGrown Kali ISO Recipe >> DeadMouse Edition (i3wm)
#########################################################################
# $$\ $DEAD$\ $MOUSE\ $$\ EDITION\ $$\ V2\ $$\ #
# $$ | $$ ___$$\ $$ ___$$\ $$ | $$ __$$\ $$ | $$ | $$ | #
# $$ | \_/ $$ |\_/ $$ |$$$$$$\ $$ | $$ |$$ | $$ |$$$$$$\ #
# $$ | $$$$$ / $$$$$ / \_$$ _| $$$$$$$ |$$$$$$$$ |\_$$ _| #
# $$ | \___$$\ \___$$\ $$ | $$ __$$< \_____$$ | $$ | #
# $$ | $$\ $$ |$$\ $$ | $$ |$$\ $$ | $$ | $$ | $$ |$$\ #
# $L33tR4t\\$Kali$ |\$Linux | \$$$$ |$$ | $$ | $$ | \$ISO | #
# \________|\______/ \______/ \____/ \__| \__| \__| \____/ #
#########################################################################
#########################################################################
# $$\ $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$\ $$\ $$\ #
# $$ | $$ ___$$\ $$ ___$$\ $$ | $$ __$$\ $$ | $$ | $$ | #
# $$ | \_/ $$ |\_/ $$ |$$$$$$\ $$ | $$ |$$ | $$ |$$$$$$\ #
# $$ | $$$$$ / $$$$$ / \_$$ _| $$$$$$$ |$$$$$$$$ |\_$$ _| #
# $$ | \___$$\ \___$$\ $$ | $$ __$$< \_____$$ | $$ | #
# $$ | $$\ $$ |$$\ $$ | $$ |$$\ $$ | $$ | $$ | $$ |$$\ #
# $L33tR4t\\$Kali$ |\$Linux | \$$$$ |$$ | $$ | $$ | \$ISO | #
# \________|\______/ \______/ \____/ \__| \__| \__| \____/ #
#########################################################################
@SadProcessor
SadProcessor / Play-ImperialMarch.txt
Last active March 20, 2017 19:22
Ta ta ta, ta tata, ta tata...
function Play-ImperialMarch(){
[console]::beep(440,500)
[console]::beep(440,500)
[console]::beep(440,500)
[console]::beep(349,350)
[console]::beep(523,150)
[console]::beep(440,500)
[console]::beep(349,350)
[console]::beep(523,150)
[console]::beep(440,1000)
@SadProcessor
SadProcessor / 3rdPartyCode.ps1
Last active April 13, 2016 21:44
3rd party Code: If you can't read it, you shouldn't run it...
#############################################################################
$t = "3rd party Code: If you can't read it, you shouldn't run it..."
#############################################################################
$V = @('a';'e';'i';'o';'u';'y';'A';'E';'I';'O';'U';'Y')
foreach($x in $v){$t = $t.replace($x,('"+$v['+($v.IndexOf($x))+']+"'))}
$t = '$V = @("a";"e";"i";"o";"u";"y";"A";"E";"I";"O";"U";"Y");'+'"'+$t+'"'|`
clip.exe
#############################################################################
# press F5 in console & ctrl-V into a new powershell console for demo #
#############################################################################
@SadProcessor
SadProcessor / Play-TetrisTuneForever.ps1
Created April 11, 2016 20:01
PowerShell Timeless classic... EndlessLoop
#Endless PowerShell Tetris tune
#adapted from https://gist.github.com/XeeX/6220067
function Play-TetrisTuneForever(){
While(1 -eq 1){
[console]::beep(658, 125)
[console]::beep(1320, 500)
[console]::beep(990, 250)
[console]::beep(1056, 250)
[console]::beep(1188, 250)
[console]::beep(1320, 125)
@SadProcessor
SadProcessor / Get-RickAstley.ps1
Created March 21, 2016 23:46
Not intended for nefarious purposes...
function Get-RickAstley(){
[console]::beep(440,150)#A
[console]::beep(493,150)#B
[console]::beep(587,150)#D
[console]::beep(493,150)#B
Start-Sleep -m 20
[console]::beep(698,400)#F
[console]::beep(698,400)#F
[console]::beep(659,500)#E
Start-Sleep -m 50
$list = @"
1 Partridge in a pear tree
2 Turtle Doves
3 French Hens
4 Calling Birds
5 Golden Rings
6 Geese a laying
7 Swans a swimming
8 Maids a milking
9 Ladies dancing