Git Product home page Git Product logo

ntrdisasm's Introduction

This is a work-in-progress project which aims at reverse
engineering and documenting the NTR 2.0 custom firmware (CFW)
for the Nintendo N3DS. The CFW contains some interesting
features and tricks to learn from, such as

- the injection of code into foreign processes by
  temporarily modifying Kernel objects
- displaying in-game menus by writing to LCD registers
- "stealing" service handles from known locations of
  other processes
- hooking code
- implementation of a debugger
- client / server code
- a plugin system
- calling privileged ARM11 code using svcBackdoor()
- running games from other regions by patching their SMDH

ntrdisasm's People

Contributors

patois avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ntrdisasm's Issues

FLAIR and Sig

Hi patois. I don't know if you're using IDA Pro. If so, you can try to generate some signature files with FLAIR. Use IDA2PAT Reloaded for (.elf) or Official FLAIR from SDK for a library (.a). After used pelf or ida2pat and sigmake and conflicts solved, you get the .sig file. You can then put the .sig file to /sig/arm in IDA folder, and load it from File->Load File->FILRT... If signature matches IDA would soon show up the functions in light blue. In short, this helps you recover symbols.

#This generates libgcc.pat.
pelf libgcc.a
#This tried to generate the sig, with library name as libgcc.
sigmake -nlibgcc libgcc.pat libgcc.sig
#libgcc has conflicts, so it generated a libgcc.exc.
#I edited the file, and removed the comments in the first few lines of file.
sigmake -nlibgcc -xlibgcc.exc libgcc.pat libgcc.sig

Sometimes you would have to solve some conflicts, such as.

+__gnu_sssubsa3                                     0C 073F 000031E1001061E00100004A0100A0E11EFF2FE1000031E1FBFFFF5A000050E3
__gnu_sssubsq3                                      0C 073F 000031E1001061E00100004A0100A0E11EFF2FE1000031E1FBFFFF5A000050E3

These step would be easier if use regex to place + for those firsts of each term. To me i replaced \r\n\r\n__ to \r\n\r\n+__, and the file is almost done.

Well. You might have to generate more sig files if there are some versions for its dependencies. For examples there are quite a few versions of libctru.
I like your work, much. Hope this helps you.. Still trying to recover rxTools.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.