This file contains 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 warnings import catch_warnings, filterwarnings # this is always nice to see at the top of a file | |
class Primitive: | |
__slots__ = ["args"] | |
def __init__(self, *args): self.args = args | |
def __await__(self): return (yield self.args) # also a fun sight to see | |
async def eof(): return await Primitive("eof") | |
async def munch(): return await Primitive("munch") | |
async def choice(*args): return await Primitive("choice", args) |
This file has been truncated, but you can view the full file.
This file contains 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
{ | |
"creator": "Yosys 0.9+4052 (git sha1 687f381b69, gcc 10.3.0 -fPIC -Os)", | |
"modules": { | |
"$paramod$6b02c6e2b61a3396fb091bf3c2b7ebe66da395c1\\picorv32": { | |
"attributes": { | |
"dynports": "00000000000000000000000000000001", | |
"hdlname": "\\picorv32", | |
"src": "../picorv32.v:62.1-2162.10" | |
}, | |
"parameter_default_values": { |
This file contains 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
# To use: | |
# 1. extract the NCAs from the NSP (I used NSCB) | |
# 2. extract the contents of 5977df9d4848858cbde157c6723dd1de.nca | |
# 3. inside 1 [romfs]\rom\Stardust_JP\Textures you'll find texture_pack.cpio. Extract it (I uzed 7zip) | |
# 4. run this python 2.7 script in the directory with all the .rpt files. It'll create a out folder containing all the PNGs | |
import struct,glob,os,zlib | |
from PIL import Image | |
OUTDIR='out' |
This file contains 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 -*- | |
import ghidra.program.model.symbol.SourceType | |
import re | |
functionManager = currentProgram.getFunctionManager() | |
#minAddress = currentProgram.getMinAddress() | |
baseAddress = currentProgram.getImageBase() | |
USER_DEFINED = ghidra.program.model.symbol.SourceType.USER_DEFINED |
This file contains 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 os | |
""" | |
Cursed Code. | |
This code literally patches your kernel memory, proceed at your own risk. | |
Tested on Ubuntu 17.10 and Arch, x86_64. Should work on other distros, maybe even other architectures! |