Laymer / useful_random_stuff

Just some things that have some cool uses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Custom .zshrc


Customized .zshrc configuration that adds IP addresses to the terminal.
The name is STATIC so make sure you change it if you download this!
Note that the colors will not look the same on your machine, they will depend on your terminal's theme!
Please ensure you have a NerdFont installed and set in your terminal, or you won't get these glyphs!
Note that this usually will not display properly in WSL because of how different Windows Terminal behaves, you may need to change the brackets and remove some glyphs!

WSL


scan-range.sh


A bash script I use for large-scale pentests to derive a curated list of only live IP addresses and open ports from a list of CIDR ranges, and then kicks off nmap scans against those hosts and ports.


B64_encode_cmd.ps1


Just a simple PowerShell script to encode commands to use with encoded powershell commands.

Example:

Also works on PS for Kali:

Usage:

powershell -enc RwBlAHQALQBDAGgAaQBsAGQASQB0AGUAbQA=

Class1.cs


C# source code for a malicious DLL that executes shellcode.


ClassLibrary1_53.exe


Malicious DLL that executes a reverse Meterpreter shell over port 53.


PipeImpersonate_cradle.cs


C# source code.


PipeImpersonate_cradle.exe


C# executable that captures tokens from SpoolSample and then executes a PowerShell command to download and run download_cradle.ps1.


SQL.cs


C# source code.


SQL.exe


C# SQL client for enumerating and attacking MSSQL servers.


SQL_sa.cs


C# source code.


SQL_sa.exe


C# SQL client for enumerating and attacking MSSQL servers, with SA impersonation for Linked Servers.


download_cradle.ps1


PowerShell that will download and execute malicious code in memory without touching the disk.
Requires a malicious DLL hosted on a download location you control.


ps_download_oneliner.ps1


Powershell that will download and execute remotely hosted Powershell scripts in memory without touching the disk.
Piping the script to IEX (Invoke-Expression) bypasses script execution policy.

đź‘€

About

Just some things that have some cool uses


Languages

Language:C# 83.2%Language:Shell 16.0%Language:PowerShell 0.8%