Partition Name | Start (in sectors) | Length (NSectors) | Notes |
---|---|---|---|
PhysicalDisk | 0 | DiskNSectors |
Covers entire drive |
Partition0 | 0 | DiskNSectors |
Covers entire drive |
PixDump | 0x400 | (DiskNSectors / 8) & 0x1fffff80 |
DiskSize / PageSize ? |
DumpPartition | PixDumpStart+ PixDumpNSectors |
0x107180 | After PixDump |
SystemPartition | DumpPartitionStart + DumpPartitionNSectors |
0x10000 | After DumpPartition |
Partition1 | SystemPartitionStart + SystemPartitionNSectors |
AltFlashStart - (SystemPartitionStart + SystemPartitionNSectors) |
After SystemPartition |
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 sys | |
def read_uint32(stream): | |
return int.from_bytes(stream.read(4), 'big') | |
def read_uint64(stream): | |
return int.from_bytes(stream.read(8), 'big') | |
class BDEmuImageDetail: |
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 hmac | |
import hashlib | |
import sys | |
import blowfish # pip install blowfish | |
def decrypt_and_verify(file_name): | |
cipher = blowfish.Cipher(b'(SH[@2>r62%5+QKpy|g6') | |
h = hmac.new(b'xM;6X%/p^L/:}-5QoA+K8:F*M!~sb(WK<E%6sW_un0a[7Gm6,()kHoXY+yI/s;Ba', | |
digestmod=hashlib.sha1) | |
with open(file_name, 'rb') as fp: |
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 sys | |
import hashlib | |
def brutehash(path, start, end, size, secthash): | |
with open(path, 'rb') as fp: | |
fp.seek(start) | |
blocksize = 0x1000 # PAGE_SIZE | |
seed = size.to_bytes(4, byteorder='little') | |
for block in range(start, end, blocksize): | |
fp.seek(block) |
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
# Find and load exports, imports, and opd section for PS3 elf's. | |
#@author aerosoul | |
#@category Analysis | |
#@keybinding | |
#@menupath | |
#@toolbar | |
# NOTE: | |
# You may also want to enable Propagate R2 Pointer for the PowerPC | |
# Constant Reference Analyzer in order to fill in the remaining |
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 xml.etree.ElementTree as ET | |
import zlib | |
import struct | |
import argparse | |
import os | |
class File: | |
def __init__(self, elem): | |
self._file_name = elem.find('FileName').text | |
self._file_index = int(elem.find('FileIndex').text) |
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 | |
import re | |
import os | |
# | |
## StringId Generation | |
# | |
def create_table(poly): |
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 sys | |
import zlib | |
import argparse | |
import ctypes | |
class FileCarver(object): | |
def __init__(self, f, offset): |
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 datetime import datetime | |
import struct | |
import os | |
class CacheDescriptor(object): | |
DESCRIPTOR_FMT = ">QQQQII16s456x" | |
def __init__(self, f): | |
(self.accessDate, | |
self.modificationDate, |
NewerOlder