[Release] RestoreLFCS - Restore your LFCS data stored in memory.

Discussion in '3DS - Homebrew Development and Emulators' started by Joel16, Aug 7, 2017.

Thread Status:
Not open for further replies.
  1. Joel16
    OP

    Joel16 Ils ne passeront pas

    Member
    491
    986
    May 8, 2011
    United States
    Doesn't concern you.
    Purpose: This program makes keeping backups of your original LFCS obsolete.​


    [​IMG]
    Follow the instructions on the screen.

    Download: https://github.com/joel16/RestoreLFCS/releases

    Credits:
    BenCat07 for testing and reporting
     
    Last edited by Joel16, Aug 13, 2017
  2. iAqua

    iAqua

    Member
    2,842
    2,504
    Dec 7, 2015
    Antarctica
    out of curiosity where are the previous lfcs's in memory?
     
  3. Joel16
    OP

    Joel16 Ils ne passeront pas

    Member
    491
    986
    May 8, 2011
    United States
    Doesn't concern you.
    Not sure where exactly, but IIRC it's stored in the memory initialized by the bootrom. I did have someone test this with their current LFCS by breaking their rsa signature, and they used this to restore it successfully.
     
    cearp and iAqua like this.
  4. adrifcastr

    adrifcastr GBAtemp Advanced Maniac

    Member
    1,798
    838
    Sep 12, 2016
    Germany
    So... you've written an application and you don't really know how it works? And it did work once on a test?! Wow, that doesn't really makes sense to me.
     
  5. Joel16
    OP

    Joel16 Ils ne passeront pas

    Member
    491
    986
    May 8, 2011
    United States
    Doesn't concern you.
    Wtf? I don't think you know how programming works, just because I don't know where exactly a certain file is stored in memory doesn't mean I don't know what I'm doing. I do know 100% what I'm doing here with this program. All it's doing is deleting your LFCS_B in nand (Nandrw/sys/LocalFriendCodeSeed_B) and then recreates using the LFCS_B that was stored in memory, using CFGI's DeleteCreateNANDLocalFriendCodeSeed.
     
    gnmmarechal, AboodXD, cearp and 9 others like this.
  6. astronautlevel

    astronautlevel Finding a reason, waiting for a miracle

    Member
    4,044
    5,090
    Jan 26, 2016
    United States
    That Nightly Site™
    Joel's understanding of how the app works with regards to memory is completely correct. In addition, Joel thoroughly tested this program and has proven to be an extremely competent developer.
     
    gnmmarechal, Ricken, DrkBeam and 10 others like this.
  7. MattKimura

    MattKimura 3DS & WiiU Enthusiast

    Member
    1,853
    983
    Jun 30, 2014
    United States
    This is VERY useful, I thought my origial seed was gone forever since I have no backup of it. I didn't know it was right under my nose the whole entire time : p
    This makes it easier to jump to public seeds, all while keeping your original seed safe and sound. Knowing that you can easily fall back to your original seed using this app.
    I love your work as always Joel16
     
    Last edited by MattKimura, Aug 8, 2017
  8. Thunder Hawk

    Thunder Hawk Firefox Master Race

    Member
    582
    371
    Jan 21, 2013
    United States
    Can you add and option to backup Nandrw/sys/LocalFriendCodeSeed_B and/or Nandrw/sys/LocalFriendCodeSeed_A (yes, A is a thing) to somewhere on the SD card, if it exists?
     
  9. Joel16
    OP

    Joel16 Ils ne passeront pas

    Member
    491
    986
    May 8, 2011
    United States
    Doesn't concern you.
    Doesn't GM9/Decrypt9 already do this?
    Either way I'm working on a tool with more things like this, one with an actual GUI this time (maybe).
     
  10. DarkRioru

    DarkRioru Dream Beeeeeaaaammmm!!!

    Member
    2,006
    426
    Aug 29, 2015
    United States
    looking up at the stars
    does this unban you?
     
  11. Joel16
    OP

    Joel16 Ils ne passeront pas

    Member
    491
    986
    May 8, 2011
    United States
    Doesn't concern you.
    No this just restores your LFCS that your 3DS comes with.
     
  12. moriczgergo

    moriczgergo GBAtemp Regular

    Member
    126
    82
    Dec 28, 2016
    Hungary
    Between table and chair, chugging water.
    How is the original LFCS stored in memory when you've replaced it with a public one? Is it burned into the bootrom?
     
  13. Joel16
    OP

    Joel16 Ils ne passeront pas

    Member
    491
    986
    May 8, 2011
    United States
    Doesn't concern you.
    Please read properly where did I ever mention that it's replaced by a public one?
     
  14. moriczgergo

    moriczgergo GBAtemp Regular

    Member
    126
    82
    Dec 28, 2016
    Hungary
    Between table and chair, chugging water.
    I didn't mean to say public, but still, how is the previous one there?
     
  15. Joel16
    OP

    Joel16 Ils ne passeront pas

    Member
    491
    986
    May 8, 2011
    United States
    Doesn't concern you.
    I've already explained this.
    According to 3DBrew your LFCS data is stored in memory, initalized by the bootrom. All this is doing is deleting your current LFCS in nandrw/sys, then uses the data stored in memory to recreate a new one.

    This also the reason why 3DSident displays your old LFCS, even if you inject one that's not yours. Because the function it uses is reading from memory, and not from nand.
     
    julialy, RustInPeace and moriczgergo like this.
  16. Zidapi

    Zidapi GBAtemp Psycho!

    Member
    3,045
    1,826
    Dec 1, 2002
    You sound like a teacher on his report card! :P:teach:
     
    loopsbee8 likes this.
  17. jockep

    jockep GBAtemp Regular

    Member
    169
    58
    Apr 12, 2017
  18. Joel16
    OP

    Joel16 Ils ne passeront pas

    Member
    491
    986
    May 8, 2011
    United States
    Doesn't concern you.
    Edit: Funny how people (including you @Zidapi) actually liked the dude's comment when he himself doesn't even know what he's talking about.
    Anyways, Astro's a good friend, we talk often with other developers who have made amazing contributions towards the scene.

    Also, while I'm here, I'm planning on expanding this to something more like a recovery tool.

    [​IMG][​IMG]
     
    Last edited by Joel16, Aug 10, 2017
    umbjolt, RustInPeace and Zidapi like this.
  19. Zidapi

    Zidapi GBAtemp Psycho!

    Member
    3,045
    1,826
    Dec 1, 2002
    I "liked" it because I thought it was a reasonable point. I then found out that it wasn't necessary to understand exactly how it works in order to achieve what you have done here.

    @astronautlevel whom I respect as a very knowledgeable, helpful and active member of this community (whose word I trust, almost unreservedly), then confirmed that fact and vouched for you as a competent dev.

    I've liked the post this reply addresses because apparently that's important to you, and I appreciate the work you've done.
     
    Joel16 likes this.
  20. mike a

    mike a GBAtemp Fan

    Member
    313
    30
    Oct 28, 2014
    United States
    Like in lamens terms what does it do, why is it useful, I never play online so I don't get it, hell I don't even understand seeds n stuff

    — Posts automatically merged - Please don't double post! —
     
Thread Status:
Not open for further replies.