Hacking [Release] NTR Debugger 2 (with source) - the first public real-time debugger for N3DS

xflamer234

Well-Known Member
Member
Joined
Nov 15, 2015
Messages
163
Trophies
0
Age
24
XP
842
Country
Jamaica
The Readme file is still the old version. Try bpadd/bpena/bpdis/resume commands.
anytime when i create a cheat plugin it does not work on my 3ds what do i do and can you also show me how do i convert gateway cheats to ntr
 

RandomUser

Rosalina in Plush Form
Member
Joined
May 9, 2010
Messages
967
Trophies
1
XP
1,042
Country
United States
I have been wanting to try out the breakpoint feature of this debugger however I am meet with this:
Code:
svc_controlMemory failed: c860180amapRemoteMemory failed: c860180a
protectRemoteMemory failed: d8e007f5
will listen at port 5041
This happens when I try to attach to a Process where a game resides in. Although not sure if I am even doing this properly.
 

gamer4lif3

Well-Known Member
Member
Joined
Dec 31, 2015
Messages
495
Trophies
0
XP
464
Country
United States
how would i write a code like this in debugger or u cant?

6056B58C 00000000
B056B58C 00000000
50000000 0000FF00
20000090 000000C8
D2000000 00000000
 

Nanquitas

Well-Known Member
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
France
What kind of code is that ? Gateshark ?

--------------------- MERGED ---------------------------

I have been wanting to try out the breakpoint feature of this debugger however I am meet with this:
Code:
svc_controlMemory failed: c860180amapRemoteMemory failed: c860180a
protectRemoteMemory failed: d8e007f5
will listen at port 5041
This happens when I try to attach to a Process where a game resides in. Although not sure if I am even doing this properly.

What command did you send ?
 

Nanquitas

Well-Known Member
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
France
ok.
If you send this:
Code:
write(0x0056B61C, (0xC8, 0x00, 0x00, 0x00), pid=0xXX)
it should work if it's the right address. Of course you need to change the XX by the pid of your game ;)

Also be careful as there are no verification from the original code so (you can do it manually by reading the address 0x0056B58C, seems like you need to find 00FF).
 

gamer4lif3

Well-Known Member
Member
Joined
Dec 31, 2015
Messages
495
Trophies
0
XP
464
Country
United States
hmm didnt work so maybe that gateshark code is wrong. Is this how u read address? got this error when i did the data read address

data(0x0056B58C, 0x0056B58C, filename='data.bin', pid=0x29)null rtCheckRemoteMemoryRegionSafeForWrite failed: d8e007f5
 

DesuIsSparta

Well-Known Member
Member
Joined
Oct 13, 2015
Messages
580
Trophies
0
XP
1,037
Country
United States
Replace the YY by the length (in bytes) you want to read and the XX by the pid.
Code:
data(0x0056B58C, YY, pid=0xXX)
ex:
Code:
data(0x0056B58C, 4, pid=0x29

And don't forget to add 1400000 as that address is so low, if you write to that address you're very likely to crash the game. The game's core functions are stored in the earlier bytes, whereas gamedata is stored way later.
 

Nanquitas

Well-Known Member
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
France
Not necessarily, often yes as the last region is bigger but i have some code working that are in those kind of address. ;)

--------------------- MERGED ---------------------------

Ah... I know why you think it's not working, it's an unlimited life code.
You can't freeze a value through the debugger, means that every time your life is low, if you send this code you should have full life again but it can't give you the godmode status.

But, you can with a cheat plugin.
I made this one fast and i didn't test it as i don't have the game.
Try it and tell me if it works.

It's a conversion of the codes from Fort42, the usa version.
 
Last edited by Nanquitas,

Nanquitas

Well-Known Member
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
France
I'll check my code.

--------------------- MERGED ---------------------------

Okay, i messed up with the pointer address.
Now it should work.
 

Attachments

  • Lego Marvel Avengers Plugin +2.rar
    5.7 KB · Views: 260
  • Like
Reactions: gamer4lif3

RandomUser

Rosalina in Plush Form
Member
Joined
May 9, 2010
Messages
967
Trophies
1
XP
1,042
Country
United States
What command did you send ?

Sorry for late reply, I issued this command
Code:
attachprocess(0x29)
and that brings up the aforementioned error.
Tried this:
Code:
attachprocess(pid=0x29)
doesn't do anything
I guess you have to attach the debugger to the process as a first step to breakpoints a code?
Edit: I have tried this command:
Code:
ttachprocess(pid=29)
and it seems to attach:
Code:
buf: 07001000, size: 0000e000
recommend pc:
001403cc
recommend lr:
00101759
remotePC: 001403cc
will listen at port 5029
Not sure what to do from here, although I did tried the command "bpadd(0x16D32EC4)" and that dreaded memory error occur.
Code:
freeid: 1
rtCheckRemoteMemoryRegionSafeForWrite failed :d8e007f5
init breakpoint failed.
To bad there is no tutorial on how to use breakpoint or it's command set.
 
Last edited by RandomUser, , Reason: Tried another command

Fishguy6564

Active Member
Newcomer
Joined
Apr 24, 2014
Messages
37
Trophies
0
Age
28
XP
1,222
Country
United States
Sorry for late reply, I issued this command
Code:
attachprocess(0x29)
and that brings up the aforementioned error.
Tried this:
Code:
attachprocess(pid=0x29)
doesn't do anything
I guess you have to attach the debugger to the process as a first step to breakpoints a code?
Edit: I have tried this command:
Code:
ttachprocess(pid=29)
and it seems to attach:
Code:
buf: 07001000, size: 0000e000
recommend pc:
001403cc
recommend lr:
00101759
remotePC: 001403cc
will listen at port 5029
Not sure what to do from here, although I did tried the command "bpadd(0x16D32EC4)" and that dreaded memory error occur.
Code:
freeid: 1
rtCheckRemoteMemoryRegionSafeForWrite failed :d8e007f5
init breakpoint failed.
To bad there is no tutorial on how to use breakpoint or it's command set.
I believe breakpoints are only compatible with the memory region that contains the game's code.bin since that's where majority of the asm is stored.
 

RandomUser

Rosalina in Plush Form
Member
Joined
May 9, 2010
Messages
967
Trophies
1
XP
1,042
Country
United States
I believe breakpoints are only compatible with the memory region that contains the game's code.bin since that's where majority of the asm is stored.
I think that explains why I am unsuccessful at breakpoints. Would converting the code from NTR to ARcodes work, Then breakpoint from that?
Although come to think of it, I don't think it is possible to do just that as the 0x16D32EC4 is too big to fit in the memory range after subtracting 0x14000000 from 0x16D32EC4 = 0x02D32EC4
here's the ranges from NTR:
00100000 - 006befff , size: 005bf000
08000000 - 081fffff , size: 00200000
0ffc0000 - 10000fff , size: 00041000
10002000 - 10002fff , size: 00001000
14000000 - 17800fff , size: 03801000
 

DesuIsSparta

Well-Known Member
Member
Joined
Oct 13, 2015
Messages
580
Trophies
0
XP
1,037
Country
United States
I think that explains why I am unsuccessful at breakpoints. Would converting the code from NTR to ARcodes work, Then breakpoint from that?
Although come to think of it, I don't think it is possible to do just that as the 0x16D32EC4 is too big to fit in the memory range after subtracting 0x14000000 from 0x16D32EC4 = 0x02D32EC4
here's the ranges from NTR:
00100000 - 006befff , size: 005bf000
08000000 - 081fffff , size: 00200000
0ffc0000 - 10000fff , size: 00041000
10002000 - 10002fff , size: 00001000
14000000 - 17800fff , size: 03801000

Unfortunately sometimes, like you said, the subtraction method doesn't work because your resulting offset is still out of range. What I do in that situation is either try the memory range below the last, or try to find the code myself. I wish there was an easier way, and there might be, but I don't know of one.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Sonic Angel Knight, Is that SAK I see. :ninja:
  • BigOnYa @ BigOnYa:
    What a weird game
  • K3Nv2 @ K3Nv2:
    Yeah I wanted to see shards of the titanic
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
    K3Nv2 @ K3Nv2: My life has no value my fat ass is staying right here