- Get all gists from the user UserUnknownFactor:
user:UserUnknownFactor
- Find all gists with a .yml extension:
extension:yml
- Find all gists with HTML files:
language:html
- Find all gists with a ".bash_profile" file:
filename:.bash_profile
- Excludes all results containing your search term. :
NOT
- Find gists with greater than 100 stars. :
stars:>100
- Include anonymous gists in your search. :
anon:true
- Search all forked gists for results. :
fork:only
- Find gists containing a file size larger than 1000kbs. :
size:>1000
- Find all gists with the word "fetch" by UserUnknownFactor updated or created recently. :
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
#!/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 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)] |
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
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | |
"""Tool to convert CloneCD .img files to ISO 9660 .iso files.""" | |
from typing import Any | |
from io import BytesIO | |
import contextlib | |
import os |
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
meta: | |
id: srpg_studio_dts | |
file-extension: dts | |
endian: le | |
title: SRPG Studio Data Format | |
application: SRPG Studio | |
license: MIT | |
encoding: UTF-16LE | |
doc: | |
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
# Tool to decrypt/encrypt CryptoJS encrypted files in Python | |
import os, base64, glob | |
from hashlib import md5 | |
from Crypto.Cipher import AES # requires: pip install pycryptodome | |
from Crypto import Random | |
STREAM_PREFIX = b"Salted__" | |
def pad(s): |
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, re, glob | |
import numpy as np | |
from PIL import Image, ImageChops | |
from collections import defaultdict | |
# Finds sequences of images with common name part+_<frame#>_etc.png | |
# and merges them into a single animated PNG. | |
INITIAL_SPEED = 20 | |
TYPE2 = True |
NewerOlder