4dsdev
Views: 1,611,767 Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 12-03-24 05:21 PM
Guest:

0 users reading Staplehax -- Ninjhax with kernel access | 3 bots

Main - Homebrew projects - Staplehax -- Ninjhax with kernel access Hide post layouts | New reply

Pages: 1 2
StapleButter
Posted on 06-10-15 11:35 PM Link | #203
Interesting. Staplehax's libkhax is modified in how it gains SVC access, and I wanted to test it against other firmware versions... gotta debug it.


Would you be available for testing debug builds sometime?

____________________
blargSNES -- SNES emu for 3DS
More cool stuff

pseudov
Posted on 06-11-15 12:46 AM (rev. 2 of 06-11-15 03:52 AM) Link | #204
Sure thing, it'll be my pleasure to test.

I have two old 3DS units to work with:
8.1.0-0U
9.2.0-20U

EDIT: With what firmware version did you get the current Staplehax build to work?

pseudov
Posted on 06-11-15 05:00 AM Link | #205
I'm not sure how important the SYSTEM_VERSION minor is, but I noticed that both the systems I tested were not specifically listed in the System version table of khaxinit.cpp

pseudov
Posted on 06-15-15 05:28 AM Link | #213
After my limited debugging abilities, I have determined that it hangs somewhere at:
Result KHAX::MemChunkHax::Step5_CorruptCreateThread()

Maybe this:
u32 writeaddr = GetMagicalPointer() + 0xF3D;
is version specific?

StapleButter
Posted on 06-19-15 12:05 PM Link | #220
Could be that. Could as well be bad timing.


The whole thing wouldn't work on newer firmwares anyway. I haven't adapted srv:pm registration yet, and FS patching uses hardcoded offsets.

____________________
blargSNES -- SNES emu for 3DS
More cool stuff

profi200
Posted on 06-19-15 03:03 PM Link | #221
That's why it is a bad idea to build libhax into apps. That should be done externally.

StapleButter
Posted on 06-19-15 03:11 PM Link | #222
The libkhax we're using in Staplehax is modified, too. With the original method, I kept running into icache issues.

____________________
blargSNES -- SNES emu for 3DS
More cool stuff

Opposing Force
Posted on 06-21-15 08:31 AM (rev. 2 of 06-21-15 08:34 AM) Link | #225
Hi, nice forum here. Really fast and good looking. :)

My question, StapleButter or anybody, which is the correct .cro file to use with when building this for new3ds?
(edit, just saw that I don't need the .cro stuff to build staplehax, but could you still answer this so I can get ninjhax build correctly? thx)

The ones I see are:
cairo.cro.lex
oss.cro.lex
peer.cro.lex
static.crs
webkit.cro.lex

Which is the right one and is the .lex format something I have to decompress or process in some way?
Thanks!

StapleButter
Posted on 06-22-15 11:37 PM Link | #235
I know zero about that shit. I haven't bothered to deal with it.

____________________
blargSNES -- SNES emu for 3DS
More cool stuff

Opposing Force
Posted on 06-26-15 07:00 PM Link | #237
Posted by StapleButter
I know zero about that shit. I haven't bothered to deal with it.

.lex, I found out, is not some official file format. It's Nintendo's own LZ77. They just made up the file extension for fun and confusion I guess.

.lex stands for, LZ77 EXtended
It can be decompressed with dsdecmp.

MassExplosion213
Posted on 08-01-15 05:40 PM Link | #287
Is this project still active or has it been dropped?

pseudov
Posted on 08-04-15 03:31 PM Link | #289
Posted by MassExplosion213
Is this project still active or has it been dropped?

Posted by StapleButter
I'm not even sure I want to continue tbh.


^That, and with the release of Ninjhax 2.0 and the upcoming Ironhax, it seems this project has been put aside for now. Hopefully when Ninjhax 2.0 source comes out, StapleButter might take interest in this project once again.

StapleButter
Posted on 08-09-15 04:24 PM Link | #297
Ninjhax 2.0 makes this redundant, and even works on firmware versions Staplehax wouldn't have supported. The tiny range of potential cases supported by Staplehax made it ephemeral, basically "not worth the effort".


tl;dr Staplehax is dead. The code might be useful for some fancy shit though.

____________________
blargSNES -- SNES emu for 3DS
More cool stuff

coto
Posted on 08-10-15 12:19 AM Link | #300
refactor is the key when a project-s purpose has been defeated. Reuse code
Pages: 1 2

Main - Homebrew projects - Staplehax -- Ninjhax with kernel access Hide post layouts | New reply

Page rendered in 0.013 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 91/91, time: 0.006 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.