This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum RaceID | |
{ | |
ElfMale = 0, | |
ElfFemale = 1, | |
HumanMale = 2, | |
HumanFemale = 3, | |
GoblinMale = 4, | |
GoblinFemale = 5, | |
Bullterrier = 6, | |
LizardmanMale = 7, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdint> | |
#define assert_size(classobj,classobjsize) static_assert(sizeof(classobj) == classobjsize, #classobj" != "#classobjsize); | |
namespace MSVCBinCompat{ | |
class string | |
{ | |
union | |
{ | |
char* ptr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |