Skip to content

A collection of various powershell related tools/scripts that I've found useful over the years.

Notifications You must be signed in to change notification settings

gwillgues/PowerShell-Misc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerShell-Misc

A collection of various powershell related tools/scripts that I've found useful over the years.

sendFile.ps1

Send a file to a Netcat Listener natively via powershell! Usage: run the script and run the function

./sendFile.ps1 -ip 192.168.0.127 -port 3333 -filepath C:\windows\system32\cmd.exe

This script accepts an ip, port, and file path via command line arguments -ip, -port, -filepath, then base64 encodes the specified file, then sends to a netcat listener over the specified IP and port.

To get the original file, run "base64 -d" in a linux terminal on the base64 encoded data.

credentialTester.ps1

Usage:

./credentialTester.ps1 ./file.txt

Take a list of emails/passwords and test them against active directory. This assumes you are on a Windows machine that is currently authenticated in an AD environment.

The format of the required credential list is: user@domain.com:password (1 entry per line)

encode_script.ps1

Base64 encode a powershell script properly for usage in powershell encoded commands (powershell.exe -encodedcommand AAAA)

Usage:

./encode_script.ps1 -file C:\path\to\script.ps1

The base64 encoded script will be output. You can then copy the base64 encoded data, and run it via "powershell.exe -encodedcommand AAAAA"

About

A collection of various powershell related tools/scripts that I've found useful over the years.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published