This file contains 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
// ensure the cling environment is present | |
#ifndef __CLING__ | |
#error Must be using cling in order to build the cling Panda3D main function wrapper! | |
#endif | |
// edit the library path according to where your Panda3D installation is located: | |
#pragma cling add_library_path("/Developer/Panda3D/lib") | |
// libpanda libs: | |
#pragma cling load("libpanda") |
This file contains 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
""" | |
NOTE: This is a dead simple interpreter written in Python, it's syntax is based on assembly language, | |
it is for educational purposes only and was not written to be a full fledged | |
interpreted language to any capacity... Enjoy :D | |
Below is the test file named "test.asm", to run the interpreter use the following command: | |
``` | |
python interpreter.py test.asm | |
python3 interpreter.py test.asm | |
``` |
This file contains 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
""" | |
Example of compressed hashes, intended to make blake2 ASIC resistant | |
using CPU based compression algorithms such as, ZLIB, LZMA etc... | |
""" | |
import os | |
import hashlib | |
import zlib | |
import time |
This file contains 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 math | |
import time | |
import base64 | |
import hashlib | |
import struct | |
from ecdsa import SigningKey, VerifyingKey, NIST256p | |
DECIMAL = math.pow(10, 6) |
This file contains 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 binascii | |
class HashCipher(object): | |
BLOCK_SIZE = 64 | |
HASH_SEEDS = [ | |
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, | |
0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19, | |
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, | |
0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19, |
This file contains 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 | |
import types | |
import threading | |
class MemoryImporterError(RuntimeError): | |
""" | |
An memory importer specific runtime error | |
""" |
This file contains 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
#!/usr/bin/python | |
""" | |
This Version: $Id: obj2egg.py,v 1.7 2008/05/26 17:42:53 andyp Exp $ | |
Info: info >at< pfastergames.com | |
Extended from: http://panda3d.org/phpbb2/viewtopic.php?t=3378 | |
.___..__ .___.___.___.__..__ . . | |
| [__)[__ [__ [__ | |[__)|\/| | |
| | \[___[___| |__|| \| | | |
obj2egg.py [n##][b][t][s] filename1.obj ... |
This file contains 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
public static void patchExe() | |
{ | |
if (Hash.GetMd5HashFromFile(Directory.GetCurrentDirectory() + "\\WAR.exe") == "8fc62753982d50cf6a6b73025adf98fb") | |
return; | |
using (Stream stream = new FileStream(Directory.GetCurrentDirectory() + "\\WAR.exe", FileMode.OpenOrCreate)) | |
{ | |
int i1 = 5603265; | |
stream.Seek((long)i1, SeekOrigin.Begin); | |
stream.WriteByte(1); | |
byte[] bArr1 = new byte[] { 144, 144, 144, 144, 87, 139, 248, 235, 50 }; |