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 argparse | |
| import io | |
| import logging | |
| import lzma | |
| import mmap | |
| from pathlib import Path | |
| import re | |
| import struct | |
| from typing import BinaryIO, List, Optional, Tuple |
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 pefile | |
| import struct | |
| import re | |
| import sys | |
| import os | |
| import shutil | |
| LOCALE_NAME = "ja-JP" # this should exist in the string table or patch it instead of a 5-wchar string | |
| def patch_mscorlib(input_path): |
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
| #!/usr/bin/env python3 | |
| """ | |
| Universal Chrome x64 patcher. | |
| Replaces the "ignore-gpu-blocklist" etc checks call with mov eax, 1. | |
| Requires: pip install pefile | |
| Usage: python patch_chrome.py chrome.exe | |
| """ | |
| import sys | |
| import pefile |
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 absolute_import | |
| from __future__ import print_function | |
| from __future__ import unicode_literals | |
| __all__ = ['ToastNotifier'] | |
| # ############################################################################# | |
| # ########## Libraries ############# | |
| # ################################## |
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
| """ | |
| NTFS File Information Utility | |
| Dumps information about an NTFS volume, and optionally determines | |
| which volume and file contains a particular sector and vice versa. | |
| """ | |
| import ctypes | |
| from ctypes import wintypes | |
| import os | |
| import sys |
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
| #!/usr/bin/env python3 | |
| import argparse | |
| import json | |
| import os | |
| import shutil | |
| import sys | |
| from filetranslate.service_fn import read_csv_list, write_csv_list | |
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 | |
| import pefile | |
| import re | |
| import capstone | |
| from tqdm import tqdm | |
| CACHE_DIR = "__pycache__" | |
| cache = None | |
| ENABLE_CACHE = True | |
| try: |
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
| #!/usr/bin/env python3 | |
| """ | |
| XNA Texture Extractor/Repacker | |
| Extracts XNB files to PNG and repacks PNG files to XNB format. | |
| """ | |
| import os, sys, struct, argparse, logging, re | |
| from pathlib import Path | |
| from enum import IntEnum | |
| from PIL import Image |
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 argparse | |
| import numpy as np | |
| import zlib | |
| def generate_xor_key(size): | |
| """Generate the XOR key based on the size value""" | |
| xor_key = np.array([ | |
| size & 0xFF, |
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 numpy as np | |
| import re | |
| def xor_files(key_string, extension=".txt", prefix="dec_", bytes_required=6): | |
| key_bytes = bytes([int(x, 16) for x in key_string.split()]) | |
| #assert len(key_bytes) == bytes_required, f"Key must be exactly {bytes_required} bytes" | |
| # Get all files in the current directory | |
| all_files = [f for f in os.listdir() if f.lower().endswith(extension)] |
NewerOlder