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 Invoke-AsTrustedInstallerJob{ | |
[Alias('TIJob')] | |
Param( | |
[Parameter()][Scriptblock]$Scriptblock, | |
[Parameter()][String]$UserID=$("$Env:ComputerName\$Env:UserName"), | |
[Parameter()][String]$TaskName='TIJob' | |
) | |
# IsAdmin?? | |
$IsAdmin = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) | |
if(-Not$IsAdmin){Write-Warning "Must be admin";Return} |
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
<# | |
.Synopsis | |
Check For Intel Stuff (via WMI) | |
.DESCRIPTION | |
Check if vulnerable to Intel Active Management Technology, | |
Intel Small Business Technology, and Intel Standard Manageability | |
Escalation of Privilege. [INTEL-SA-00075 - May 1st 2017] | |
Uses WMI. Can be run against multiple computers. | |
Returns a risk indication, check links in notes for more info and remediation options | |
.EXAMPLE |
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
######################################################################### | |
# $$\ $DEAD$\ $MOUSE\ $$\ EDITION\ $$\ V2\ $$\ # | |
# $$ | $$ ___$$\ $$ ___$$\ $$ | $$ __$$\ $$ | $$ | $$ | # | |
# $$ | \_/ $$ |\_/ $$ |$$$$$$\ $$ | $$ |$$ | $$ |$$$$$$\ # | |
# $$ | $$$$$ / $$$$$ / \_$$ _| $$$$$$$ |$$$$$$$$ |\_$$ _| # | |
# $$ | \___$$\ \___$$\ $$ | $$ __$$< \_____$$ | $$ | # | |
# $$ | $$\ $$ |$$\ $$ | $$ |$$\ $$ | $$ | $$ | $$ |$$\ # | |
# $L33tR4t\\$Kali$ |\$Linux | \$$$$ |$$ | $$ | $$ | \$ISO | # | |
# \________|\______/ \______/ \____/ \__| \__| \__| \____/ # | |
######################################################################### |
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
## 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`")"} |
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
<# | |
.Synopsis | |
____ _ _ ___ _ _ _ | |
| __(_)__| |_ / __| |_(_)__| |__ ___ | |
| _|| (_-< ' \\__ \ _| / _| / /(_-< | |
|_| |_/__/_||_|___/\__|_\__|_\_\/__/.v1 | |
"Life is like a box of FishSticks, you never know what you're gonna get..." | |
Benjamin Buford "Bubba" Blue - 1965. |
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
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} |
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
iex $(([Convert]::FromBase64String("FHJ+YHoTZ1ZARxNgUl5DX1YJEwRWBAFQAFBWHgsFAlEeBwAACh4LBAcDHgNSUAIHCwdQAgALBRQ=") | % { [char] ($_ -bxor 0x33) })-join'') |
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
<# | |
.Synopsis | |
View -> Acsrf | |
.DESCRIPTION | |
PoSh WebApp ZapBot... | |
See OWASP ZAP documentation for more info. | |
.EXAMPLE |
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
<# | |
.Synopsis | |
Quick Wiki Search | |
.DESCRIPTION | |
Get Wikipedia Search. Summary in Console or Full pages Online. | |
.EXAMPLE | |
QWiki | |
.EXAMPLE | |
Qwiki -Search PowerShell | |
.EXAMPLE |
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 Get-Stamp{$Props = @{'Box'=$env:COMPUTERNAME;'MAC'= (Get-NetAdapter -Physical)[0].macaddress;'Stamp'=(Get-Date).DateTime};$Obj = New-Object PSCustomObject -Prop $Props | select MAC,Stamp,Box;Return $Obj};Get-Stamp |
NewerOlder