Skip to content

Instantly share code, notes, and snippets.

View Jadd's full-sized avatar

Jarryd Le Breton Jadd

View GitHub Profile
import urllib2
opcode_names = []
total_messages = 0
valid_messages = 0
def get_trinity_opcodes():
global opcode_names
url = urllib2.urlopen("https://raw.githubusercontent.com/TrinityCore/TrinityCore/master/src/server/game/Server/Protocol/Opcodes.h")
init_func = 0x000000014042DEA0
func_end = FindFuncEnd(init_func)
curr_head = init_func
next_head = curr_head
dump_count = 0
descriptors = []
def dump_descriptors(func_addr):
@Jadd
Jadd / ProcessSelector.xaml
Created April 24, 2017 06:40
WPF/MVVM drag-and-drop process selector.
<UserControl x:Class="Ace.UI.Windows.Controls.ProcessSelector"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:viewModels="clr-namespace:Ace.UI.Windows.ViewModels"
mc:Ignorable="d">
<UserControl.DataContext>
@Jadd
Jadd / ProcessSelector.Designer.cs
Last active April 24, 2017 06:48
WinForms drag-and-drop process selector.
namespace Ace.UI.Forms {
partial class ProcessSelector {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
[DataContract]
public sealed class WoWRealm {
#region Properties
[IgnoreDataMember]
public IntPtr Pointer { get; }
[DataMember]
public uint VirtualAddress { get; private set; }
[DataMember]
public static class Bootstrap {
#region Fields
private static AppDomain _domain;
private static readonly object _domainLock = new object();
#endregion
#region Exports
[DllExport("Initialize", CallingConvention.Winapi)]
public static void Export_Initialize() => Initialize();
@Jadd
Jadd / MaxViewDetection.cs
Created November 13, 2017 01:01
Albion max view detection vector bypass.
using Afterglow.Internal.Client.Objects;
using Albion.Common.Photon;
using UnityEngine;
namespace Afterglow.Internal.Client.Detection {
public class MaxViewDetection : PacketHandler {
protected override void OnPacketEvent(PacketInfo packet) {
if (packet.Type != PacketType.OperationRequest)
return;
@Jadd
Jadd / Albion.Assets.cs
Created November 14, 2017 00:01
Albion asset decryption, validation
// Albion Online version 1.0.340.102503.
public static byte[] ReadAsset(string fileName) {
using (var file = File.OpenRead(fileName))
return ReadAsset(file);
}
/* Reference:
* Albion.Common
* 0x060017CD ne.b(string)
void __cdecl xor_gate_0xe5(char *buf, int length)
{
char v2; // al
unsigned __int8 v3; // cl
char v4; // bl
unsigned __int8 v5; // cl
char v6; // al
char v7; // cl
char v8; // al
unsigned __int8 v9; // cl
@Jadd
Jadd / GuitarPlayer.cs
Created April 15, 2018 08:00
Rust internal cheat guitar MIDI sequencer.
using System;
using System.Collections.Generic;
using System.Text;
using Sanford.Multimedia.Midi;
using UnityEngine;
using Network = UnityEngine.Network;
namespace RustInternal.Hacks {
public class GuitarPlayer : MonoBehaviour {
#region Fields