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 Crypto.Hash import CMAC | |
from Crypto.Cipher import AES | |
def u32(x): | |
return x & 0xFFFFFFFF | |
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 ftplib | |
import io | |
import os | |
import pprint | |
import sys | |
import time | |
import msgpack | |
DEFAULT_FTP_PORT = 5000 |
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
# Copyright (c) 2020 3096 | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all |
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
# If you see very long/bad variable names and questionable design choice, probably because I wrote this in sleep deprivation | |
import sys | |
def findBytesInTarget(findingBytes, target): | |
foundList = [] | |
findingOffestInTarget = 0 | |
while True: | |
offset = target.find(findingBytes, findingOffestInTarget) | |
if offset is -1: |
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 zlib | |
import struct | |
import os | |
import sys | |
DEFAULT_FILENAME = "save.dat" | |
def fixcrc(fileName): | |
HEADER_SIZE = 0x10 | |
FOOTER_SIZE = 0x30 |
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
sc.getFSPPR = function () { | |
if (sc.closed_pr !== undefined) { | |
return; | |
} | |
sc.enableTurbo(); | |
var i = 0; | |
var srv = null; | |
while (true) { | |
sc.ipcMsg(2).setType(5).sendTo('pm:shell'); |