Skip to content

Instantly share code, notes, and snippets.

View nullbind's full-sized avatar

Scott Sutherland nullbind

View GitHub Profile
@nullbind
nullbind / xsl-notepad.xsl
Created June 18, 2020 16:47
xsl-notepad.xsl
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="http://mycompany.com/mynamespace">
<msxsl:script language="JScript" implements-prefix="user">
function xml(nodelist) {
var r = new ActiveXObject("WScript.Shell").Run("notepad.exe");
return nodelist.nextNode().xml;
@nullbind
nullbind / Send-ProtocolHandlerEmailLinks.psm1
Last active September 9, 2021 11:01
invoke-phlinkmailtest.ps1
@nullbind
nullbind / PowerUpSQL-Dc-Without-Creds.ps1
Created June 30, 2020 07:51
PowerUpSQL-Dc-Without-Creds.ps1
This file has been truncated, but you can view the full file.
#requires -version 2
<#
File: PowerUpSQL.ps1
Author: Scott Sutherland (@_nullbind), NetSPI - 2020
Major Contributors: Antti Rantasaari and Eric Gruber
Version: 1.106
Description: PowerUpSQL is a PowerShell toolkit for attacking SQL Server.
License: BSD 3-Clause
Required Dependencies: PowerShell v.2
@nullbind
nullbind / Get-WinProxyInfo.ps1
Last active September 11, 2024 17:45
Get-WinProxyInfo.ps1
# Work in progress
# Automation goals
# 1 enumeration HTTP proxy configurations on Windows and AD domain joined systems
# 2 parse the proxies
# 3 test for unauthenticated outbound internet access.
# 4 produce inventory of available proxies and if auth is requires (proxy_url, proxy_port, proxy_source, authentication_required)
# ----------------------------------
# Get-HttpProxyInfo
# ----------------------------------
@nullbind
nullbind / Get-SmbShareInventory.psm1
Last active August 31, 2024 10:35
Get-SmbShareInventory.ps1
#--------------------------------------
# Function: Get-SMBShareInventory
#--------------------------------------
# Author: Scott Sutherland, 2020 NetSPI
# References: This script includes code taken and modified from the open source projects PowerView, Invoke-Ping, and Invoke-Parrell.
function Get-SMBShareInventory
{
<#
.SYNOPSIS
@nullbind
nullbind / MiniPowerUpSQL.psm1
Created October 26, 2020 21:14
MiniPowerUpSQL.psm1
function Get-DomainObject
{
[CmdletBinding()]
Param(
[Parameter(Mandatory = $false,
HelpMessage = 'Domain user to authenticate with domain\user.')]
[string]$Username,
[Parameter(Mandatory = $false,
HelpMessage = 'Domain password to authenticate with domain\user.')]
@nullbind
nullbind / AppDomain-Hijack-Inveigh.cs
Created December 15, 2020 18:03
AppDomain-Hijack-Inveigh.cs
/*
AppDomain Hijacking Execution Method
Payload: Inveight Wrapper
Description: This can be used to run Inveigh through appdomain hijacking.
Mitre ATT&CK ID: T1038
Author: Kevin Robertson - Inveigh, Scott Sutherland - Wrapper
Credits: Based on techniques by Casey Smith.
Execution Option: Config File
@nullbind
nullbind / Get-DomainInfoADPS.psm1
Created April 26, 2021 21:21
Get-DomainInfoADPS
This file has been truncated, but you can view the full file.
# -------------------------------------------
# Function: Get-DomainInfoADPS
# Author: Scott Sutherland (@_nullbind), NetSPI
# Version: 1.7
# This script can be used to dump interesting
# information from Active Directory.
# This function requires the Active Directory
# PowerShell Module, but the script supports
# loading it from bytes in the file.
@nullbind
nullbind / cryptit.ps1
Last active September 5, 2022 08:43
cryptit.ps1
<#
File: Crypt-It.ps1
Author: Scott Sutherland (@_nullbind), NetSPI - 2021
Version: 1.1
Description: The Crypt-It function provide the ability to encrypt/decrypt data and files using AES password based and public/private key encryption.
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
TODO
@nullbind
nullbind / cryptit.cs
Created October 15, 2021 14:28
cryptit.cs
using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;
using System.Runtime.InteropServices;
using System.Collections.Generic;
// -------------------------------------------------------------------------
// Instructions for compiling DLL and using via PowerShell on the fly
// -------------------------------------------------------------------------