Skip to content

Adds some convenient commands to pongoOS

Notifications You must be signed in to change notification settings

heruix/PongoHelper

 
 

Repository files navigation

Helper module for PongoKit

Usage

Using this module, the following 3 commands will be available in pongoOS shell:

  • mread: read DWORD from memory The syntax is mread 0xaaaaa. The only supported input format is hex in lower case. Please also pay attention to the space, only one space is allowed The output will be a DWORD (little endian)
  • mwrite: write to memory The syntax is mwrite 0xaaaaaaaa f 0xbbbbbbbb. 0xaaaaaaaa is the target addr to write, f is the writing width, and 0xbbbbbbbb is the value to be written. Addrs' format is same as above, and f can be b,w,d,q which refers to bytes, word, dword, qword.
  • dis: disassemble The symtax is dis 0xaaaaaaaa [0xbbb], 0xaaaa is the address to be disassembled; 0xbbbb is number of instructions to disassemble, which could be omitted.
  • mfind: Search memory Syntax: mfind 0xaaaaaaaa 0xbbbb 0xcccccccc 0xdddd 0xaaaaaaaa: start address, 0xbbbb: search length, 0xcccccc: pattern in uint64_t, 0xdddd: pattern length
  • dumpvars: Print pongoOS runtime variables
  • memmap: Dump out the memory-map in the device-tree
  • hexdump: Print hexdump of specified addr Syntax: hexdump 0xaaaaaaaa [0xbbbb], 0xaaaaaaaa is the address, 0xbbbb is dump length

Build

$ git clone https://github.com/checkra1n/PongoKit
$ cd PongoKit
$ git clone --recursive https://github.com/NyaMisty/PongoHelper test
$ cd test
$ ./make.sh
$ python ../scripts/module_load.py test_module

Run

You should build first, but if you want a binary, you can find the built test_module in the repo

$ python ../scripts/module_load.py test_module
$ python ../scripts/issue_cmd.py dumpvars

About

Adds some convenient commands to pongoOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.7%
  • Shell 4.3%