Skip to content

Instantly share code, notes, and snippets.

View r00t-3xp10it's full-sized avatar
🐰
,(;@OPEN%(($id -1))%wi"T"h %tmp%ReP.t%[0]+1%tx);,)

pedro ubuntu r00t-3xp10it

🐰
,(;@OPEN%(($id -1))%wi"T"h %tmp%ReP.t%[0]+1%tx);,)
View GitHub Profile
@r00t-3xp10it
r00t-3xp10it / elevation.ps1
Last active December 9, 2023 01:59
PS1 AutoElevate Demo Script
# If a script needs to be run elevated, then you can ensure it will only
# ever be run elevated by including the logic within the script.
## Check privileges
If(-not([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
## Not-ADMIN = Relaunch as an elevated process:
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs
exit
}
@r00t-3xp10it
r00t-3xp10it / BrowserLogger.ps1
Last active December 20, 2025 06:20
Browser active tab title enumeration
<#
.SYNOPSIS
Active browser tab title enumeration
Author: @r00t-3xp10it
Tested Under: Windows 10 (19044) x64 bits
Required Dependencies: Get-Process
Optional Dependencies: none
PS cmdlet Dev version: v1.0.2
@r00t-3xp10it
r00t-3xp10it / Invoke-VaultCmd.ps1
Last active January 31, 2025 11:38
Manage Windows Password Vault Items
<#
.SYNOPSIS
Manage Windows Password Vault Items
Author: @r00t-3xp10it
Tested Under: Windows 10 (19044) x64 bits
Required Dependencies: VaultSvc, VaultCmd
Optional Dependencies: none
PS cmdlet Dev version: v1.3.8
@r00t-3xp10it
r00t-3xp10it / Find-Strings.ps1
Last active August 26, 2024 07:08
Search for strings inside files
<#
.SYNOPSIS
Search for Strings\Regex inside files
Author: @r00t-3xp10it (ssa redteam)
Tested Under: Windows 10 (19044) x64 bits
Required Dependencies: none
Optional Dependencies: VaultSvc, VaultCmd
PS cmdlet Dev version: v1.1.21
@r00t-3xp10it
r00t-3xp10it / DumpLsass.ps1
Created December 13, 2022 20:29
Dumps LSASS, SAM, SYSTEM, SECURITY metadata
<#
.SYNOPSIS
Dumps LSASS, SAM, SYSTEM, SECURITY metadata
Author: @r00t-3xp10it
Tested Under: Windows 10 (19044) x64 bits
Required Dependencies: None
Optional Dependencies: Administrator, WinDefend
PS cmdlet Dev version: v2.1.12
@r00t-3xp10it
r00t-3xp10it / dump.cs
Created November 1, 2022 19:12
Dump LSASS data
// How to Compile\Run
// C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /target:library /out:dumper.dll dump.cs
// [Reflection.Assembly]::Load([IO.File]::ReadAllBytes("$pwd\dumper.dll"))
// [dumper.Program]::Main("$pwd\l5455.dmp")
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
@r00t-3xp10it
r00t-3xp10it / Invoke-WebCamAvi.ps1
Last active January 31, 2023 14:08
Capture video (AVI) using default webcam
<#
.SYNOPSIS
Capture video (AVI) using default webcam
Author: @r00t-3xp10it
Credits: @AHLASaad \ @AvinabSaha
Tested Under: Windows 10 (19044) x64 bits
Required Dependencies: python3
Optional Dependencies: opencv-python
PS cmdlet Dev version: v1.2.8
@r00t-3xp10it
r00t-3xp10it / Get-ComputerGeolocation.ps1
Last active July 30, 2026 14:12
Retrieves the Computer's geographical location
<#
.SYNOPSIS
Retrieves the Computer's geographical location
Author: @r00t-3xp10it
Addapted from: @colsw {stackoverflow}
Tested Under: Windows 10 (19044) x64 bits
Required Dependencies: Device.Location.GeoCoordinateWatcher
Optional Dependencies: Curl\ipapi.co {native}
PS cmdlet Dev version: v1.0.3
@r00t-3xp10it
r00t-3xp10it / Invoke-Exclusions.ps1
Last active July 21, 2023 23:32
[MITRE T1562.001] Manage Windows Defender Exclusions.
<#
.SYNOPSIS
[MITRE T1562.001] Manage Windows Defender Exclusions.
Author: @r00t-3xp10it (ssa redteam)
Tested Under: Windows 10 (19043) x64 bits
Required Dependencies: Administrator privileges
Optional Dependencies: Iwr, Get-MpPreference, Set-MpPreference,
Get-MpComputerStatus, Remove-MpPreference.
PS cmdlet Dev version: v1.0.4
@r00t-3xp10it
r00t-3xp10it / Invoke-LazySign.ps1
Last active July 21, 2023 23:45
Sign a Windows binary with a self-signed certificate
<#
.SYNOPSIS
Sign a Windows binary with a self-signed certificate
Author: @r00t-3xp10it (ssa redteam)
Tested Under: Windows 10 (19043) x64 bits
Required Dependencies: Administrator privileges
Optional Dependencies: New-SelfSignedCertificate
PS cmdlet Dev version: v1.0.6