This file contains hidden or 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
| <?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; |
This file contains hidden or 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
| # Author: Scott Sutherland, @_nullbind, NetSPI | |
| Function Send-ProtocolHandlerEmailLinks | |
| { | |
| <# | |
| .SYNOPSIS | |
| The script can be used to enumerate local protocol handlers and create sample emails | |
| contain links to the handlers. It is intended to be used for testing email controls | |
| that help prevent phishing. | |
| .PARAMETER TargetEmail | |
| Email address to send generated emails to. |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| #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 |
This file contains hidden or 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
| # 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 | |
| # ---------------------------------- |
This file contains hidden or 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-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.')] |
This file contains hidden or 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
| /* | |
| 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 |
This file has been truncated, but you can view the full file.
This file contains hidden or 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-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. |
This file contains hidden or 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
| <# | |
| 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 |
This file contains hidden or 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
| 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 | |
| // ------------------------------------------------------------------------- |