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 Crypto.Hash import MD5 | |
| from Crypto.Cipher import DES | |
| d_password = "PBE.class" | |
| d_salt = "\xC7\x73\x21\x8C\x7E\xC8\xEE\x99" | |
| def unpad_pkcs7(text, blocklength=16): | |
| full_len = len(text) | |
| pad_val = ord(text[-1]) | |
| pos = full_len - pad_val |
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 <windows.h> | |
| #include <stdio.h> | |
| #include <tbs.h> | |
| #pragma comment(lib, "Tbs.lib") | |
| #pragma comment(lib, "Ws2_32.lib") | |
| #define TPM_DIGEST_SIZE 20 | |
| #define TPM_TAG_RQU_COMMAND ((UINT16)0x00C1) | |
| #define TPM_TAG_RSP_COMMAND ((UINT16)0x00C4) |
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
| # Lempel-Ziv-Stac (LZS) decompression | |
| # Implementation found in sciw.exe | |
| class LZSBitReader: | |
| def __init__(self, bytes): | |
| self.bytes = bytes | |
| self.gen = self.generator(bytes) | |
| def generator(self, bts): | |
| for b in bts: |
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 struct | |
| from capstone import * | |
| # PACKETS FROM https://www.reddit.com/r/REGames/comments/3tlmi2/reverseengineering_realm_onlines_game_protocol/ | |
| packet_00 = [ | |
| 0x78, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0xDC, 0xED, 0xA3, 0x5F, | |
| 0x85, 0x48, 0x8F, 0xA9, 0x83, 0x13, 0xFA, 0xE4, 0x21, 0x48, 0x9D, 0xE4, | |
| 0x3E, 0x46, 0xB2, 0xDC, 0xF6, 0xC1, 0x26, 0x20, 0x34, 0x7E, 0x8C, 0x5B, | |
| 0xEB, 0xBD, 0xA3, 0x59, 0x30, 0x5E, 0xF3, 0x59, 0x30, 0xBD, 0xD6, 0x77, | |
| 0xD5, 0xB4, 0xC8, 0xAD, 0x30, 0xBD, 0xA3, 0x5E, 0x31, 0xBD, 0xA3, 0x59, |
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
| # Changes added _After_ Pin 2.12 / 54730 | |
| # =========================================== | |
| # ... | |
| # Nmake is no longer supported on windows. Either use make or the example vcproj file in the | |
| # MyPinTool directory. | |
| # ... | |
| PIN_PATH = <PATH_2_PIN> |
NewerOlder