Skip to content

Instantly share code, notes, and snippets.

@LordJZ
LordJZ / gist:cb6d1807a94ddde96b09
Last active November 2, 2015 12:43
Patching VTable of a .NET enum type
using System;
class VTablePatch
{
enum E { V }
static string Interceptor(object e)
{
return "huehue";
}
@LordJZ
LordJZ / bazqux-fixes.user.js
Last active August 29, 2015 14:14
Some fixes for BazQux Reader. Mainly reddit inline support
// ==UserScript==
// @name BQ Fixes
// @namespace bazqux
// @include https://bazqux.com/*
// @version 1
// ==/UserScript==
function createButton(text, onclick) {
$('<a/>')
.attr('class', 'button')
@LordJZ
LordJZ / gist:e5530a6458bc6009843e
Created July 1, 2014 00:34
MicrosoftGitProviderPatch
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using Microsoft.VisualStudio.Shell.Interop;
using Mono.Cecil;
using Mono.Cecil.Cil;
using Mono.Collections.Generic;
using MethodBody = Mono.Cecil.Cil.MethodBody;
@LordJZ
LordJZ / vkhtml5notify.js
Last active August 29, 2015 13:58
VK.com HTML5 Notifications for Firefox (http://userscripts.org/scripts/show/448652)
// ==UserScript==
// @name VK HTML5 Notifications
// @namespace vk-com
// @include https://vk.com/*
// @include http://vk.com/*
// @version 1
// @grant none
// ==/UserScript==
let p = window.Notification.prototype;
@LordJZ
LordJZ / BuzzleMovementUnpacker.cpp
Created March 17, 2014 20:13
movement packet unpacker
#include "stdafx.h"
#include "MovementStatus.h"
int __stdcall IDAP_init(void)
{
// "metapc" represents x86 architecture
if (strncmp(inf.procName, "metapc", 8) != 0)
{
error("Only PE and ELF binary type compiled for the x86 platform is supported, sorry.");
@LordJZ
LordJZ / BuzzleDataUnpacker.cpp
Created March 17, 2014 20:01
simple guid packet unpacker
#include "stdafx.h"
#include <ida.hpp>
#include <idp.hpp>
#include <loader.hpp>
#include <allins.hpp>
#include <name.hpp>
int __stdcall IDAP_init(void)
{
@LordJZ
LordJZ / HSECrack.cs
Created March 17, 2014 10:43
Hungry Shark Evolution save file encryption crack
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Security.Cryptography;
using System.Text;
@LordJZ
LordJZ / OnStartup.cs
Last active November 8, 2025 15:27
JpegMini Crack
using System;
using System.IO;
using System.Reflection;
using ICVT.JPEGMini.Common;
namespace JpegMini.Crack.Runtime
{
public static class OnStartup
{
public static void Run()
@LordJZ
LordJZ / near_compound_hook.asm
Created March 3, 2014 16:41
Xyla assembly language part
; hook for jmp at recv funct 0x004870B7 (build 14333)
; JumpAtValue = 0x22222222
; AddPacketValue = 0x33333333
; StorageValue = 0x44444444
; BaseAddressValue=0x55555555
use32
; LINK CREATURE_QUERY
; pushfd
@LordJZ
LordJZ / services.hxx
Last active December 10, 2015 14:58
C++ Service Locator
#pragma once
#ifndef _a553_services_services_h
#define _a553_services_services_h
#include <a553/internals.h>
#include <a553/compiler.h>
#pragma region private details