Homebrew WIP Porting over Codehandler + Code Types to the Switch + Cheat Database. But need a little bit of help

CosmoCortney

Lawn Meower
OP
Member
Joined
Apr 18, 2013
Messages
1,769
Trophies
2
Location
on the cool side of the pillow
Website
follow-the-white-rabbit.wtf
XP
3,026
Country
Germany
Hello,
I just thought it'd be cool if I could port the Codehandler and Code Types from my Lynx Code Manager to the Switch.
But before I do that I need a few things to be clarified:
  1. What's the effective/logical range of the general purpose memory? (e.g. Wii U has 10000000 - 50000000)
  2. Is the memory Big Endian or Little Endian?
  3. Is anyone willing to cooperate with me and can implement the Codehandler into their TCP client or USB client? A communication through TCP or USB is necessary because cheats must be sent from a computer.
  4. Do I need syscalls in order to write into memory?
    4.1. If yes, which are those? Documentation?
  5. Is it possible for the Codehandler to inherit all access privileges?
  6. Anyone willing to create a cheat code manager? @BullyWiiPlaza maybe you would to port over JGeckoU ^^
I do have a Cheat Code database for various systems on my Website. Adding support for the Nintendo Switch can be done within a few minutes!
Trustworthy persons can be given access to post their codes.

Here's a documentation of the Lynx Code Types: https://www.follow-the-white-rabbit.net/page.php?tools=lynx_code_manager
 

Magnus Hydra

It’s rare for me to be here.
Member
Joined
Dec 12, 2011
Messages
172
Trophies
1
XP
618
Country
United States
Hey have you used the NSwitchDebugger yet or sys-netcheat? I know that's not what you're asking for but I though it might help you on ur quest.
 
Last edited by Magnus Hydra,

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
Last edited by BullyWiiPlaza,

Alkéryn

Moon Dweller ~
Member
Joined
Mar 15, 2015
Messages
1,665
Trophies
1
Age
25
Location
Albategnius, Moon
XP
2,392
Country
France
Hello,
I just thought it'd be cool if I could port the Codehandler and Code Types from my Lynx Code Manager to the Switch.
But before I do that I need a few things to be clarified:
  1. What's the effective/logical range of the general purpose memory? (e.g. Wii U has 10000000 - 50000000)
  2. Is the memory Big Endian or Little Endian?
  3. Is anyone willing to cooperate with me and can implement the Codehandler into their TCP client or USB client? A communication through TCP or USB is necessary because cheats must be sent from a computer.
  4. Do I need syscalls in order to write into memory?
    4.1. If yes, which are those? Documentation?
  5. Is it possible for the Codehandler to inherit all access privileges?
  6. Anyone willing to create a cheat code manager? @BullyWiiPlaza maybe you would to port over JGeckoU ^^
I do have a Cheat Code database for various systems on my Website. Adding support for the Nintendo Switch can be done within a few minutes!
Trustworthy persons can be given access to post their codes.

Here's a documentation of the Lynx Code Types: https://www.follow-the-white-rabbit.net/page.php?tools=lynx_code_manager
It is arm so it is bi endian, you can use both on this arm i think
https://en.wikipedia.org/wiki/Endianness#Bi-endianness
i think it is little endian by default though
but you can switch the endianess

Also for memory idk the range but it is very likely ASLR
 
Last edited by Alkéryn,
D

Deleted-452294

Guest
Hello,
I just thought it'd be cool if I could port the Codehandler and Code Types from my Lynx Code Manager to the Switch.
But before I do that I need a few things to be clarified:
  1. What's the effective/logical range of the general purpose memory? (e.g. Wii U has 10000000 - 50000000)
  2. Is the memory Big Endian or Little Endian?
  3. Is anyone willing to cooperate with me and can implement the Codehandler into their TCP client or USB client? A communication through TCP or USB is necessary because cheats must be sent from a computer.
  4. Do I need syscalls in order to write into memory?
    4.1. If yes, which are those? Documentation?
  5. Is it possible for the Codehandler to inherit all access privileges?
  6. Anyone willing to create a cheat code manager? @BullyWiiPlaza maybe you would to port over JGeckoU ^^
I do have a Cheat Code database for various systems on my Website. Adding support for the Nintendo Switch can be done within a few minutes!
Trustworthy persons can be given access to post their codes.

Here's a documentation of the Lynx Code Types: https://www.follow-the-white-rabbit.net/page.php?tools=lynx_code_manager
  1. None, the address space layout is randomized due to ASLR.
  2. Little endian.
  3. -
  4. 0x69, 0x6A, 0x6B, 0x73 to 0x78, and there is code using those I believe, in the current "debuggers". (http://switchbrew.org/index.php?title=SVC)
  5. -
  6. -
 

CosmoCortney

Lawn Meower
OP
Member
Joined
Apr 18, 2013
Messages
1,769
Trophies
2
Location
on the cool side of the pillow
Website
follow-the-white-rabbit.wtf
XP
3,026
Country
Germany
Hey have you used the NSwitchDebugger yet or sys-netcheat? I know that's not what you're asking for but I though it might help you on ur quest.
Not yet since i'm not at home most of the time.
But I will return home the weekend after so I can take my Switch with me :)
Before I have access to my Switch I can already edit the source of the codehandler (it's in C/C++)

  1. None, the address space layout is randomized due to ASLR.
I see. But the offset between where the game's general purpose memory starts and a non-pointer cheat is always the right, am I right?
By analyzing some videos on YouTube it seems like we can get the game's memory.
 
Last edited by CosmoCortney,
D

Deleted-452294

Guest
I see. But the offset between where the game's general purpose memory starts and a non-pointer cheat is always the right, am I right?
By analyzing some videos on YouTube it seems like we can get the game's memory.
I believe it should be, except for the heap I assume.
 
  • Like
Reactions: CosmoCortney

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
  • K3Nv2 @ K3Nv2:
    He put it down when the 3ds came out
  • SylverReZ @ SylverReZ:
    @K3Nv2, RIP Felix does great videos on the PS3 yellow-light-of-death.
  • Jayro @ Jayro:
    Eventhough the New 3DS XL is more powerful, I still feel like the DS Lite was a more polished system. It's a real shame that it never got an XL variant keeping the GBA slot. You'd have to go on AliExpress and buy an ML shell to give a DS phat the unofficial "DS Lite" treatment, and that's the best we'll ever get I'm afraid.
    +1
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +1
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
    BigOnYa @ BigOnYa: Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate...