PSVita RE Tools

From GameBrew
PS Vita Reverse Engineering Tools
Psvitaretools2.png
General
AuthorVarious authors
TypePC Utilities
Version1.0
LicenseGPL-3.0
Last Updated2022/10/05
Links
Download
Website
Source


This toolkit provides tools that aid in the development of PS Vita homebrews and plugins, as well as PC tools and even emulators, by providing tools that speed up development through automation of processes and gives a more friendly view into complex things of PS Vita OS.

These tools heavily contribute to Wiki and open source SDK improvements.

These tools aided in the development of plugins such as: ReStore, ReNpDrm, repatch, reF00D, NoAVLS, rebgdl.

User guide

Below are the list of tools and descriptions, see here for more info on how to use the tools.

PS Vita tools

noASLR

Disable a Address Space Layout Randomization of PS Vita.

Authors: Princess-of-Sleeping.

PSMLogUSB

A modified version of PrincessLog to use the USB serial drivers provided by the PSM SDK. This allows for serial stdout without hardware modification. Also known as Princess Silly Mini Log USB.

Authors: dots_tb.

Codename PrincessLog

A complete logging solution for any homebrew, user plugin, kernel plugin. It is more efficient and overall nicer than ShipLog.

Authors: Princess-of-Sleeping.

ShipLog v2.0

(Obsolete, use PrincessLog) A complete logging solution for any homebrew, user plugin, kernel plugin. It can use network or file logging.

Authors: dots-tb.

FAGDec

A PS Vita homebrew that decrypts easily PS Vita user/kernel and games modules and can generate .ppk (compatibility pack for low FWs). Also known as French-American Games Decrypter.

Authors: CelesteBlue-dev and dots-tb.

ioPlus 0.1, 0.2

A PS Vita kernel plugin that allows more IO operations in userland. Fast, simpler, and efficient alternative to kuio (by Rinnegatamante) (3x smaller). It allows elevated IO permissions of user applications and plugins using the original sceIo functions. This includes reading, writing, opening, and folder management within applications such as official games. It may also include getting stats, not sure.

Version 0.2 is much more inefficient, but supports decryption of files within devices that may open such as PFS devices (Warning: this plugin may bypass safe-mode).

Authors: dots-tb.

physmem_dumper

A PS Vita kernel plugin that dumps Non-Secure World (NS kernel + userland) memory using RAM physical range: from 0x40200000 to 0x5FD00000. See wiki for more information on PS Vita's physical memory.

The output dump stored in ur0:dump/physmem-dump.bin is aimed to be loaded in IDA PRO using https://github.com/xyzz/vita-ida-physdump.

Authors: xyzz.

Kdumper

A PS Vita fSELF to run on any activated TestKit/DevKit running FW <=3.67 in order to dump its kernel.

Confirmed working between 3.50 and 3.67. Will need some changes for lower FWs (sceMotionDevGetEvaInfo is only on FW >= 3.50).

Authors: TheFloW and CelesteBlue-dev.

PC tools

hat Hooker Got NIDS

A PC tool that hooks specified NIDS automatically.

Authors: dots-tb.

VitaDecompilerMod

A free alternative to IDA. It has a great pseudo-C decompilation that offers a quick view thanks to text file exporting. Based on vitadecompiler by TheFloW, itself based on prxtool by TyRaNiD. Compared to original TheFlow's version it has a few features such as:

  • More strings (EVEN MORE), including data section. (homebrew strings now work).
  • Generates .c, .h, .txt (NIDs), and db_lookup (<module_name>.yml).
  • ELF and fSELF support.
  • Compressed fSELF support.
  • Fixed issues with NIDS being improperly found.
  • Includes offsets and vaddr.
  • Automatic entry point (the entry point is retrieved properly from ELF header).
  • Automatic entry point location (for badly generated ELFs).
  • Relocation support.
  • There might be more.

Authors: dots-tb.

prxtool for PS Vita

An alternative to VitaDecompilerMod: prxtool cannot decompile to pseudo-C but it can decompiles ASM very well.

Authors: TheFloW.

vita-unmake-fself

A PC tool that decompresses an unencrypted SELF file (.skprx, .suprx, .self, eboot.bin) into an ELF file (.elf, .velf).

This tool can't decompress NPDRM encrypted SELF nor System encrypted SELF. That means that you will have to use FAGDec or sceutils to first get a unencrypted SELF. Read SELFtoELF documentation for more information.

Authors: dots-tb.

vita-elf-inject

A PC tool that injects an ELF (made by FAGDec or vita-unmake-fself) into a decrypted eboot.bin.

Authors: dots-tb.

PSVita-ELF-builder

Deprecated. A PC tool that rebuilds ELF from decrypted modules' segments. To be used after using vitaDecrypt (never released).

Authors: CelesteBlue-dev.

PSVita-error-code-resolver

A PC program that can use the PS Vita error_table.bin to translate error codes.

Authors: SilicaAndPina and Princess-of-Sleeping.

psp2-kernel-bootimage-extract

A PC program that extracts kernel modules ELF files from bootimage.elf or PSPemu flash files from pcff.elf.

Authors: CelesteBlue-dev and zecoxa.

psp2-kbl-elf-extract

A PC program that extracts embedded secure kernel modules ELF and Kernel Boot Loader (Non-secure) files from kernel_boot_loader.elf.

Authors: CelesteBlue-dev.

psp2-syslibtrace-nids-extract

A PC program that extracts the functions NIDs-names table from syslibtrace.elf to stdout.

Authors: CelesteBlue-dev.

unarzl

A PC program that extracts ARZL compressed file.

Authors: TeamMolecule.

kdump-extract

A PC program that finds and extracts segment 0 of a kernel module from a continous kernel memory dump. It outputs a .elf that can be used for RE (see vitadecompiler), for extracting NIDs (see nids-extract). It is to be used in conjunction with Kdumper on PS Vita side.

Authors: dots-tb.

psvitalibdoc

Some lists of functions names / NIDs / libraries / modules to be used with vitadump IDA plugin, vitaldr IDA plugin, VitaDecompilerMod or prxtool for PS Vita.

Credits

PS Vita Reverse Engineering Tools by FAPS Team (and other developers).

Further thanks to zecoxao, xerpi, Team_molecule (yifanlu, Davee, Proxima, xyz), Hykem, St4rk, mr.gas, MajorTom, TheFloW, Rinnegatamante, cpasjuste, Freakler, sys (yasen), Nkekev, SilicaAndPina, motoharu, mathieulh, aerosoul, SKGleba, frangarcj, velocity, der0ad (wargio), SKFU, Vita3K, devnoname120, LemonHaze, SocraticBliss, PrincessOfSleeping, Sorvigolova, 173210, qwikrazor87, ColdBird.

External links

Advertising: