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 lzss # install pylzss, not lzss (requires initial buffer value argument) | |
import os | |
def readuntilnull(f): | |
buf = b'' | |
while True: | |
data = f.read(16) | |
offset = data.find(b'\0') |
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 zlib import crc32 | |
from pathlib import Path | |
import sys | |
# Based on https://github.com/YuriSizuku/GalgameReverse/blob/master/project/hunex/src/hunex_hpb.py | |
packname = sys.argv[1] | |
f = open(f'{packname}.hph', 'rb') |
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 msgpack | |
import glob | |
import json | |
import pathlib | |
out_file = open('masterdata_repacked', 'wb') | |
jsons = [pathlib.Path(i) for i in glob.glob("unpacked/*.json")] | |
header = {} | |
buf = bytearray() |
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 Crypto.Cipher.AES | |
import Crypto.Hash.SHA1 | |
import sys | |
import pathlib | |
filepath = pathlib.Path(sys.argv[1]) | |
decoded_path = 'decrypted_' + filepath.name | |
enc_file = open(filepath, 'rb') |
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
--- aes.py 2023-06-06 15:43:19.437326158 +0900 | |
+++ aes-cryptojs.py 2023-06-07 11:07:27.063221638 +0900 | |
@@ -11,6 +11,8 @@ | |
Although this is an exercise, the `encrypt` and `decrypt` functions should | |
provide reasonable security to encrypted messages. | |
+ | |
+Modified to do some "invalid operations" like CryptoJS. | |
""" | |
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 sys | |
desc = """ | |
Sofdec2(USM) subtitle file converter | |
crisub_conv.py filename | |
""" | |
if len(sys.argv) != 2: | |
print(desc) |
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 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
myloop? http://myloop.withsmart.com/myloop_introduction.php | |
ββββββββ0V 0V 0V 0Vββββββββββββββββββββ0V 0V 0V 0V 0V 0V 0V 0V 0V 09 13(SCK) | |
βDCββ0Vβ5V 5V 5V 5VβMA1ββMA2ββMB2ββMB1β5V 5V 5V 5V 5V 5V 5V 5V 5V 05 12(MISO) | |
ββββββββ06 05 09 10ββββββββββββββββββββA6 A7 08 04 07 02 A4 A5 10 06 11(MOSI) (RESET) | |
VCC - LeftButton - A6 | |
VCC - RightButton - A7 | |
?? - LinkLed - GND | |
RESET - ResetButton - GND |
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/python | |
import StringIO, time, sys, random | |
#All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. | |
boy=StringIO.StringIO("All work and no play makes Jack a dull boy.") | |
jack=0 | |
work=0.05 | |
dull=0.2 |