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, sys | |
| from glob import iglob | |
| work_dir = os.getcwd() | |
| file_list = ( | |
| [f for f in iglob(os.path.join(work_dir, '**/*.ks'), recursive=True) if os.path.isfile(f)] + | |
| [f for f in iglob(os.path.join(work_dir, '**/*.tjs'), recursive=True) if os.path.isfile(f)] | |
| ) | |
| all_codecs = ['utf_16', 'utf_8_sig', 'ascii', 'cp932', 'utf_8', 'shift_jis', 'shift_jis_2004', 'shift_jisx0213'] |
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 win32evtlog # requires pywin32 preinstalled: pip install pywin32 | |
| import os, sys, platform, tempfile, subprocess, base64, hashlib | |
| from struct import unpack | |
| import ctypes | |
| from ctypes.wintypes import HANDLE | |
| from ctypes.wintypes import BOOL | |
| from ctypes.wintypes import HWND | |
| from ctypes.wintypes import DWORD | |
| from ctypes.wintypes import ULONG | |
| from ctypes.wintypes import USHORT |
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
| @powershell.exe -ExecutionPolicy Bypass -Command "$_=((Get-Content \"%~f0\") -join \"`n\");$script=$_.Substring($_.IndexOf(\"goto :\"+\"EOF\")+9); &([ScriptBlock]::Create($script)) %*" | |
| @goto :EOF | |
| # PowerShell script starts here, we can also pass parameters like this since they are passed to the script block | |
| param($parameter1, $parameter2, $parameter3) | |
| $fileName = "game.exe" // game file | |
| $fileHashString = "abcdef12345678901111111111111111" // the file's MD5 hash | |
| function To-Utf16 { |
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 sys import argv | |
| import json, re | |
| from ctypes import c_uint32 | |
| from tqdm import tqdm | |
| # For usage with KaitaiStruct visualisers | |
| # (like https://userunknownfactor.github.io/ for example) | |
| extract_class = "ClassName" |
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
| @echo off | |
| cd /d "%~dp0" | |
| Title "Reverting input layout popup to Windows 10 default..." | |
| ::filedll | |
| set filedll=%windir%\system32\InputSwitch.dll | |
| takeown /F %filedll% /A | |
| icacls %filedll% /grant:r "*S-1-5-32-544":f | |
| icacls %filedll% /setowner "*S-1-5-32-544" /C /L /Q |
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
| <Sysmon schemaversion="4.83"> | |
| <!-- | |
| Sysmon (https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon) | |
| config to only monitor DNS requests from specific processes. | |
| Install it like this: | |
| sysmon -accepteula -i config-dnsquery.xml | |
| or reconfigure, if it's already installed before: | |
| sysmon -c config-dnsquery.xml | |
| To check events run: | |
| mmc eventvwr.msc |
This file has been truncated, but you can view the full file.
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
| # coding: utf-8 | |
| # Python tool to dump all strings from Unreal .uexp files of unknown format | |
| import argparse, sys, os, glob, re, struct, csv, hashlib, math, zlib | |
| from multiprocessing import Pool | |
| DUMP_ALL_STRINGS = False | |
| DATA_NAMES = list(glob.glob('.\\**\\*.uexp', recursive=True)) + list(glob.glob('.\\**\\*.uasset', recursive=True)) | |
| ESCAPE_CHAR = '¶' | |
| DELIMITER_CHAR = '→' |
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, argparse, glob | |
| from unicodedata import category | |
| from filetranslate.service_fn import write_csv_list, read_csv_list, read_csv_dict | |
| from filetranslate.language_fn import tag_hash | |
| # NOTE: This should work for both Bakin RPG Maker and Smile Game Builder files | |
| def write_7bit_encoded_int(stream, value): | |
| result = bytearray() | |
| while True: |
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 script duplicates the current selected text and other layers to every open | |
| // document and replaces text in the each of the text layers to the one specified in | |
| // arrow separated CSV file in format: `{filename without extension}→Added text` | |
| // it can automatically save modified files as PSDs and can additionally | |
| // hide the only image layer in each document if present. | |
| if (app.documents.length > 0) { | |
| var csvFile = File.openDialog("Select CSV file", "Arrow Separated Values:*.csv", false); | |
| if (csvFile) { | |
| var csvData = readCSV(csvFile); |