Skip to content

Instantly share code, notes, and snippets.

View NotAdam's full-sized avatar
👌
nice

Adam NotAdam

👌
nice
  • Australia
View GitHub Profile
@NotAdam
NotAdam / dllmain.cpp
Created November 29, 2017 06:49
ffxiv dinput8 forwarding
//#define WIN32_LEAN_AND_MEAN 1
#include <Windows.h>
static HRESULT( WINAPI *OrigDirectInput8Create )(
HINSTANCE hinst,
DWORD dwVersion,
REFIID riidltf,
LPVOID * ppvOut,
LPUNKNOWN punkOuter
);
using System;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Net;
using Newtonsoft.Json;
using System.IO;
using System.IO.Compression;
namespace eorzeadb_noncegen
enum ServerZoneIpcType : uint16_t
{
Ping = 0x0065,
Init = 0x0066,
Chat = 0x00B9,
ChatBanned = 0x006B,
Logout = 0x0077,
CFNotify = 0x0078,
CFMemberStatus = 0x0079,
CFDutyInfo = 0x007A,
import idaapi
from idaapi import PluginForm
from PyQt5 import QtCore, QtGui
done_funcs = {}
data = []
def get_args(xref, needle):
cf = GetFunctionName(xref.frm)
-- init global variable
g_dump = io.open(os.date("dump_%Y-%m-%d-%H-%M-%S.txt"), "a")
g_dump:write("ptr, name\n")
g_count = 0
-- relative virtual address(rva) to register_whatever function
-- this assume ffxiv sb benchmark
-- YOU MUST EDIT THIS TO RIGHT VALUE TO WORK
-- check http://imgur.com/a/nJCef for disasm
g_addr = {}
class Sheet
{
public:
virtual void Unknown01();
virtual void Unknown02();
virtual void Unknown03();
virtual void Unknown04();
virtual void Unknown05();
virtual void Unknown06();
virtual void Unknown07();
@NotAdam
NotAdam / schema-diff.py
Created December 24, 2019 02:48
early version of ffxiv opcode fixerererer
import json
import sys
import requests
import CppHeaderParser
#### config/settings/garbage
fucked_distance = 0xffffffff
max_size_diff = 10
@NotAdam
NotAdam / anus.cs
Created December 25, 2019 09:07
parse yotpo review garbage
public class ReviewInfo
{
public ReviewInfo()
{
Questions = new Dictionary<string, string>();
}
public string Name { get; set; }
public string Date { get; set; }
public int Stars { get; set; }
#include <cereal/cereal.hpp>
#include <cereal/archives/binary.hpp>
#include <cereal/types/base_class.hpp>
#include <cereal/types/memory.hpp>
#include <cereal/types/vector.hpp>
#include <string>
#include <vector>
#include <memory>
#include <iostream>
typedef ubyte uint8_t;
typedef byte int8_t;
typedef ushort uint16_t;
typedef short int16_t;
typedef uint uint32_t;
typedef int int32_t;
typedef uint64 uint64_t;
typedef int64 int64_t;
struct ReplayHeader