RELEASE Noexs Remote Debugger

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by matt123337, Jul 26, 2018.

  1. ReclaimerShawn

    ReclaimerShawn Member

    Newcomer
    1
    Dec 17, 2018
    United States
    I'm on Atmosphere 0.8.2 with Firmware 6.2.0, and I'm using this tool on Super Smash Bros Ultimate v1.2.1

    The first search works fine, but the next search always throws this exception at around 28-47%:
    Warning: Spoilers inside!

    Keep in mind I'm using this HekateIPL Config:
    Warning: Spoilers inside!

    I'm searching for an 8 bit value.
    I'm also on the Latest version of Hekate.
    I cannot downgrade to 5.1 as I have burned fuses.
    I'm also using 90DNS to connect online without going to Nintendo Servers.

    Have you tried Checking Auto Resume in the search area? That got the game unpaused for me while doing dumps with the process attached. However, I'm getting the same exception as you on searches and from looking back earlier in this thread, it might be due to us being on Firmware 6.2.0.
     
    Last edited by ReclaimerShawn, Jan 3, 2019
  2. Deathwing Zero

    Deathwing Zero GBAtemp Regular

    Member
    3
    May 22, 2010
    Canada
    Can-uh-duh
    That's not what I'm talking about. I mean when you open a game it goes to a black screen with the Nintendo logo in the top left, and the Switch logo in the bottom right and it stays there. Regardless of whether or not Noexs is connected or how I terminate the connection. The auto resume button is a sort of hacky way to get games that always re-pause even if you click resume to work again. I think Super Mario Odyssey was one of them. That said, if for some reason it IS freezing it -which it doesn't seem to be, since the screen is animated- that may fix it. That'll be my first test. Thanks for the idea.

    *EDIT*
    Did not work. Another weird thing.. the module "main" was at the END of RAM this time, with the heap being at the start. I've seen that before but not very often.

    *Another more different edit*
    The weird problem with another game being unable to start without rebooting the console also happened with Hyrule Warriors, so at the least it's not a game-dependant issue. That said the pointers I had found previously on 5.1 still worked on 6.2 so my issue with Pokemon is a different one. I'm guessing I would need a pointer in pointer or something? Going to switch to Hekate now and do some testing there.

    *Last Edit*
    The hang is still happening using Hekate with the Kosmos package. Not too sure what else I can test. I doubt ReiNX would be any different. If you're curious this is the process I use to get this to happen.
    Warning: Spoilers inside!

    This does _NOT_ happen when poking memory, it seems the memory dump is required.
    Noexs Config for Hekate
     
    Last edited by Deathwing Zero, Jan 3, 2019 - Reason: I lied. 1 more edit. additional info.
  3. ReclaimerShawn

    ReclaimerShawn Member

    Newcomer
    1
    Dec 17, 2018
    United States
    -snip-
     
    Last edited by ReclaimerShawn, Jan 5, 2019
  4. matt123337
    OP

    matt123337 GBAtemp Regular

    Member
    4
    Mar 25, 2014
    Canada
    The hang you're experience is most likely Noexes not detatching from the process, or atmosphere is also attached and not detaching before it closes (the game sends a closed event and it halts until it's handled). I'll have to look into it. As for main moving around... That's perfectly normal, ASLR randomly assigns addresses, it's the whole point of it lol.

    @ReclaimerShawn That error is a known issue, it's because the game has deallocated the memory region between dumps and Noexes is trying to read it... I'll try to fix it up by next release, whenever that is.
     
  5. ReclaimerShawn

    ReclaimerShawn Member

    Newcomer
    1
    Dec 17, 2018
    United States
    Thanks for the response. Could I request a few things for the next update? Could you add SX OS Cheat Support as well? What I mean by this is either an automatic cheat maker based on the SX format or just displaying values relative to where they are in MAIN, BASE, or HEAP. For instance, let's say Address 0x00CFFFFFFF is address 0x005FFFFFFF relative to HEAP. Could you allow that to be rendered as both the actual address and HEAP+0x005FFFFFFF? I don't know if that's what the parse function is for in your tool, but that always threw exceptions for me. SX OS also has an FTP Server on port 5000. I dunno if the port has proper permissions or framework for this, but could you possibly make the tool able to access that port to hook processes? I know I've put up a tall order, but I really love your tool and would love to be able to use it. As of right now, I have to use Atmosphere to load this tool's KIP on 5.1.0 and use outdated games as the firmware cannot support those updates, making modern cheats pretty hard to create. Making it able to use for SX OS on 6.2 would modernize it and make it easier for the end user. I'd be willing to beta test anything you might need to contribute.
     
    Last edited by ReclaimerShawn, Jan 12, 2019
  6. matt123337
    OP

    matt123337 GBAtemp Regular

    Member
    4
    Mar 25, 2014
    Canada
    Addresses can already be relative to main and heap,just they need to be lower case, as for base... Why? ASLR moves memory around all the time, so locating data relative to that would make no sense.

    And unfortunately I don't see Noexs ever working with SXOS, as it's impossible to use without loading the kip, FTP works very very differently.

    Re the cheat creation: I was hoping on integrating some sort of cheat creation at some point, but I'd rather not use anything SX related (I don't really want to come off as supporting piracy, and they have a history of doing pretty scummy things, even before the switch scene). I was hoping there would be some sort of community developed code handler by now, but it appears no one has stepped up (yet). I've floated the idea myself, but it would have to be a seperate sysmodule, and I'd like to be able to talk to it like any other service, and perhaps wrap communication with it from within Noexes. Anyways it's something to think about.
     
  7. ReclaimerShawn

    ReclaimerShawn Member

    Newcomer
    1
    Dec 17, 2018
    United States
    Yeah, I suppose you're right about BASE, but I guess some games could have static base addresses in theory (I'm not used to the memory format of the Switch, though, although I've messed around with RAM related stuff on most other Nintendo Consoles. Correct me if I'm wrong. I'm used to BASE meaning a static address in memory, so educate me on the matter if you want.) I can see why you'd be apprehensive about SXOS: it'd make their software more popular. I like the OS personally, but that's just my opinion. I have heard about a couple of things TX has done though... Everyone also seems to be raving about getting emulators to work with the Switch, so I wouldn't expect an alternative code handler to come out soon (I also heard ReiNX is adapting some of SX's code, so their cheat handler might end up being ported to other CFWs instead.) Sad thing is, you would probably have to do it for anything to truly come out. To some it'd be reinventing the wheel, which might be another reason people aren't working on it.
     
  8. matt123337
    OP

    matt123337 GBAtemp Regular

    Member
    4
    Mar 25, 2014
    Canada
    Rei isn't adding in SX code lol, just emulating their services so some of their crapware loads. And no due to how ASLR works everything has different memory layouts all the time, it requires a patch to the loader sysmodule to disable iirc.
     
  9. Deathwing Zero

    Deathwing Zero GBAtemp Regular

    Member
    3
    May 22, 2010
    Canada
    Can-uh-duh
    I had a feeling the hang was because of Noexs, I didn't try ReiNX though. I didn't think it would work with it so I didn't bother. I was just trying to get as much information for you as I could for when you start working on it again. As for ASLR, yeah, I know that, it's just weird that it's at the END of the memory. In regards to crashes of the client, out of the 15 or so searches that I did, it only ever crashed once, and that was on the initial search. Never crashed on any resumed searches.
     
  10. Stoned

    Stoned GBAtemp Advanced Maniac

    Member
    7
    Mar 26, 2014
    Germany
    @matt123337

    Any Updates when you Continue your Work?
     
  11. MikeTheKnight2016

    MikeTheKnight2016 GBAtemp Fan

    Member
    4
    Jul 26, 2016
    United States
    It's been a while since I've used this and I don't have it installed anymore :(

    When you look at memory addresses on the computer, does it show it like SX OS does in the
    Code:
    * MAIN - memory addresses/pointers relative to the game's NSO executable
    * HEAP - memory addresses/pointers relative to the start of the game's heap
    * BASE - memory addresses/pointers that are neither part of MAIN/HEAP
    
    format? Or does it show in the 'standard' offset format like if you view with a standard hex editor?
     
  12. matt123337
    OP

    matt123337 GBAtemp Regular

    Member
    4
    Mar 25, 2014
    Canada
    It doesn't show addresses relative to any other address rn, and I'm pretty hesistent to do so. Having them relative to main is okay I guess, but having them relative to heap would imply that the heap will always be allocated in the same way (it won't), and the same for addresses relative to the base address. I already have a ton of people asking me questions about why their pointers don't work and 95% of the time it's because of ASLR and SXOS's format.

    Oh but you should be able to use addresses in a fairly similar format within the watchlist, something like "[main+13371337]" should work totally fine.

    Still working on some stuff IRL right now, was hoping to have already had some more work done (like USB, and updating to newest java version).

    That reminds me though... I am totally down for help with Noexes, so if anyone is interested feel free to hit me up (or make pull requests on GitHub, I at least can make the time to review code)!
     
    Last edited by matt123337, Jan 25, 2019
    DaBlackDeath and Stoned like this.
  13. chusski

    chusski Member

    Newcomer
    1
    Jan 6, 2017
    noexs work with sx os ?
     
  14. ReclaimerShawn

    ReclaimerShawn Member

    Newcomer
    1
    Dec 17, 2018
    United States
    Asked that a while back. At the moment, no. Best thing you could do is wait for Rei to get his CFW up to 7.0.0 and then use some of the SX OS tools via that.
     
    Last edited by ReclaimerShawn, Feb 10, 2019
  15. ReclaimerShawn

    ReclaimerShawn Member

    Newcomer
    1
    Dec 17, 2018
    United States
    Having values relative to HEAP could be useful. A lot of values on Mario Kart 8 Deluxe that I've looked at (such as the coin counter) are static HEAP addresses. The same is to be said with Pokemon Let's GO, and considering I've seen important values that were static both in this game and older pokemon games, it's likely you could see static HEAPs again on the newest version of Pokemon to come out. You could place a warning somewhere in the tool to say that HEAPs often aren't static, but include it there for convenience. Also, I hope you get your real-life stuff sorted out.
     
    Last edited by ReclaimerShawn, Feb 10, 2019
  16. iCONicCON

    iCONicCON Newbie

    Newcomer
    1
    Feb 10, 2019
    United States
    I'm trying to hack unplayable characters in disgaea 5 on the switch using Noexs. I was just wondering if you knew how or knew someone that could help me out.
     
  17. iCONicCON

    iCONicCON Newbie

    Newcomer
    1
    Feb 10, 2019
    United States
    how can i copy all of the data from an unplayable character in disgaea 5 to a newly created players data? I'm having trouble operating this program so any help would be appreciated.
     
  18. Famicon

    Famicon GBAtemp Fan

    Member
    2
    Sep 24, 2013
    United States
    Is USB support for this out yet? I refuse to have my Switch online at all as I might get banned
     
  19. iCONicCON

    iCONicCON Newbie

    Newcomer
    1
    Feb 10, 2019
    United States
    I cant post links because I am a new member but you could search up "90 DNS server for cfw switch". just remember if you connect to a new wifi, you will have to set up 90 DNS on that wifi as well.

    — Posts automatically merged - Please don't double post! —


    i just tried usb for Noexs v1.1.2 and it was unable
     
  20. iCONicCON

    iCONicCON Newbie

    Newcomer
    1
    Feb 10, 2019
    United States
    I need help with Noexs. Cant figure out how to copy data and paste into a new location
     
Loading...