Skip to content

Instantly share code, notes, and snippets.

View Andoryuuta's full-sized avatar
🛶
Canoeing across the atlantic

Andoryuuta

🛶
Canoeing across the atlantic
View GitHub Profile
# Make sure you grab the latest version for your OS and arch from the releases page
# at https://github.com/google/protobuf/releases
curl -OL https://github.com/google/protobuf/releases/download/v3.6.0/protoc-3.6.0-linux-x86_64.zip
# Unzip
unzip protoc-3.6.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
@Andoryuuta
Andoryuuta / cw_enum_ref.cpp
Last active September 20, 2019 06:04
A dump of some of the std::maps from cube world (alpha)'s memory.
enum RaceID
{
ElfMale = 0,
ElfFemale = 1,
HumanMale = 2,
HumanFemale = 3,
GoblinMale = 4,
GoblinFemale = 5,
Bullterrier = 6,
LizardmanMale = 7,
struct float4 {
float r, g, b, a;
float4(float _r, float _g, float _b, float _a) : r(_r), g(_g), b(_b), a(_a) {}
void copy_from(float4* o) {
r = o->r;
g = o->g;
b = o->b;
#include <iostream>
#include <cstdint>
#define assert_size(classobj,classobjsize) static_assert(sizeof(classobj) == classobjsize, #classobj" != "#classobjsize);
namespace MSVCBinCompat{
class string
{
union
{
char* ptr;
C:\Users\Ando\Desktop\cuwo>py -3.6 -m cuwo.server
cuwo server started on Fri Nov 23 13:36:57 2018
Loaded script 'log'
Loaded script 'ddos'
Loaded script 'commands'
Loaded script 'welcome'
Loaded script 'ban'
Loaded script 'console'
Loaded script 'master'
from __future__ import print_function
import __builtin__
from x64dbgpy.pluginsdk import *
import ctypes as C
import time
# Damn you windows 10!
# https://github.com/Microsoft/console/issues/40
# https://bugs.python.org/issue32245
def print(*args, **kwargs):
@Andoryuuta
Andoryuuta / SigScan.cpp
Last active January 23, 2019 17:19
hacky C++ sig scanner (32bit)
#include "SigScan.h"
#include <Windows.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <iterator>
#include <algorithm>
std::vector<std::string> SpaceSplit(std::string text) {
@Andoryuuta
Andoryuuta / parse.py
Created February 27, 2019 15:28
VampiresDawn bin.dat & m.dat parsing.
import os
import struct
import math
import random
from hexdump import hexdump
def load_m_dat():
with open('m.dat', 'rb') as f:
# Read until EOF
@Andoryuuta
Andoryuuta / bleach_db_unpack.py
Created March 21, 2019 05:56
_SLOW_ decryptor for bleach brave souls
# Requires python3 and the py3rijndael package:
# >> py -3 -m pip install py3rijndael
from py3rijndael import Rijndael
import sys
import io
import gzip
if len(sys.argv) < 3:
print("Usage: {} <input file> <output file> [OPTIONAL <key>]".format(sys.argv[0]))
import sys
import os
# Check if we have an argument.
if(len(sys.argv) <= 1):
print('Usage: {} file.dyn'.format(sys.argv[0]))
sys.exit(1)
# File names
input_filename = sys.argv[1]