Homebrew [GM9][Script]All-in-One Megascript

Status
Not open for further replies.

annson24

The Patient One
OP
Member
Joined
May 5, 2016
Messages
1,191
Trophies
0
Age
32
XP
1,843
Country
Philippines
First of all huge thanks to the following people for making this possible:
d0k3 - for pretty much everything.

8bitwonder - I referenced most of the options from his megathread, check it out here.
emillois
TurdPooCharger - He's a huge help in making me understand the inject command and offsetting.
And plenty more, check them out HERE!

Disclaimer!
Always have a backup in case something goes wrong. I will not be held responsible for bricked devices, dead sd cards, thermonuclear war, or you getting fired because you were up all night tweaking.



What does it do?
It's an all-in-one script consisting of almost all available gm9 scripts available online.

Screenshots


To-do:
[DONE]1. Complete the automated FBI to H&S Injection in the PCless B9S Installation. (Only currently working on New & Old US & EU Region)(Help Needed)
[DONE]2. Figure out and add a ctrtransfer option.


Bugs:
You tell me!

Requests, suggestions, and bug reports are highly appreciated.


PS. You might notice some personal references especially in the PC-less B9S Installation since that was initially just a personal script. You can edit them out if you want, I've removed most of 'em but I'm too lazy to edit them all out myself.

DOWNLOAD HERE: https://github.com/annson24/GM9Megascript/releases/latest
 
Last edited by annson24,

annson24

The Patient One
OP
Member
Joined
May 5, 2016
Messages
1,191
Trophies
0
Age
32
XP
1,843
Country
Philippines
Instructions:

For normal gm9 usage:

  1. Download the "GM9Megascript.gm9"
  2. Move or copy it to sdmc\gm9\scripts
  3. Run godmode9 on your 3ds and press the home button.
  4. Select "scripts," and select the AIO Megascript.
For use with PCLess b9s install:

  1. Download the "in-files.7z"
  2. Open it and extract "gm9" folder to the root of SD card.
  3. Run godmode9 in any possible way you can and execute the GM9Megascript. Or Download and run the GM9Megascript-standalone.firm in any possible way you can.
  4. Choose "Hax Options > Install Boot9strap > PC-Less Boot9strap."
What is PC-Less Boot9strap?

Here's a brief explanation on what it does.

1. First, it checks the system if sector0x96 is genuine (usually the check will fail if a9lh is installed in the system).

If the check fails, the script will prompt the user if they want to attempt to fix it. Fixing it, the user should have the secret_sector.bin file inside sdmc/gm9/in/boot9strap folder.

2. Once confirmed that sector0x96 is genuine, it'll then check if the required files are present in the sdmc/gm9/in folder.

Here's the branches of the folder that it checks.

SDMC

  • gm9
    • in
      • boot9strap
      • Luma3DS
      • sdcompiled

3. If everything is in check, it'll then backup your boot9.bin and boot11.bin.

4. After that, the user will be ask if they want FBI to be injected to H&S; If chosen 'yes,' the script will automatically inject FBI to H&S; if chosen 'no,' the script will continue without FBI injection.

5. The script will now install boot9strap.

6. Now that boot9strap is installed, it'll set up Luma3DS to your CTRNAND.

7. Now there is a folder named 'sdcompiled,' inside this are all the necessary files we need to have on our sd card after we install boot9strap. Think of this as the finalization proccess on plailect's guide. But since this is a 'PC-Less' installation, this is done purely on the 3ds.

8. The script will copy all the files from 'sdcompiled' folder to the RAM of the 3DS, then it'll prompt the user to swap the sd card to whichever sd card the user wants to use. Once sd cards are swapped, the script will then move the files from the RAM to the newly inserted sdcard.

And that's it.
 
Last edited by annson24,

ThisIsDaAccount

Well-Known Member
Member
Joined
Apr 8, 2016
Messages
1,158
Trophies
0
XP
944
Country
United States
First of all huge thanks to the following people for making this possible:
windows_server_2003
SvenDaHacker64
MyLegGuy
emillois
8bitwonder - I referenced most of the options from his megathread, check it out here.
d0k3 - for pretty much everything.


Disclaimer!
This script is based on 689f6f7 commit of GodMode9, but latest stable release should work just the same.
The script is only half tested. I've only tested the functions I commonly use (i.e Nand Backup/Restore, CFW Install/Uninstall, Cart Dump, Boot9 and Boot11 Dump, OTP Dump).
Always have a backup in case something goes wrong. I will not be held responsible for bricked devices, dead sd cards, thermonuclear war, or you getting fired because you were up all night tweaking.



What does it do?
It's an all-in-one script consisting of almost all available gm9 scripts I can find.


To-do:
1. Complete the automated FBI to H&S Injection in the PCless B9S Installation. (Only currently working on New & Old US & EU Region)(Help Needed)
2. Figure out and add a ctrtransfer option.


Requests, suggestions, and bug reports are highly appreciated.


Summary of Options:

1. NAND Backup and Restore Options


1.1 SysNAND Backup
1.2 EmuNAND Backup
1.3 SysNAND Restore (full)
1.4 SysNAND Restore (safe)
1.5 EmuNAND Restore


2. Boot9Strap Install Options


2.1 Normal Boot9Strap Installation
2.2 annson24's PC-less Boot9Strap Installation


3. CFW Uninstall

4. Cartridge Dump Options


4.1 Private Header Dump
4.2 CTR Dump to .3ds
4.3 CTR Dump to .cia
4.4 NTR Dump to .nds


5. .3ds to .cia Converter

6. Title to .cia Dump


6.1 CTRNAND Title Dump
6.2 User Installed Title Dump
6.3 TWLNAND Title Dump


7. Boot9 and Boot11 Dump

8. OTP Dump

9. CITRA Files Dump

10. HomeMenu Dump to .cia

11. Friend Save Backup and Restore Options


11.1 Friend Save Backup
11.2 Friend Save Restore


12. LocalFrienCodeSeed_B Backup and Restore Options


12.1 LocalFrienCodeSeed_B Backup
12.2 LocalFrienCodeSeed_B Restore


13. gbavc.sav Backup and Restore Options


13.1 gbavc.sav Backup
13.2 gbavc.sav Restore


14. Nintendo3DS Folder Swap

15. Reboot

16. Shutdown

17. Quit



PS. You might notice some personal references especially in the PC-less B9S Installation since that was initially just a personal script. You can edit them out if you want, I've removed most of 'em but I'm too lazy to edit them all out myself.
This seems worth the risk of thermonuclear war. Good job!
 

MattKimura

3DS & WiiU Enthusiast
Member
Joined
Jun 30, 2014
Messages
2,137
Trophies
1
XP
2,936
Country
United States
Whoa you can install boot9strap with Godmode9? Guess I saw someone doing that in a speedrun but didn't realize it. What would be suggested, Safeb9sinstaller or godmode9?
This has major potential to become the only script we'd ever need! Really looking forward to this.
 
Last edited by MattKimura,
  • Like
Reactions: annson24

annson24

The Patient One
OP
Member
Joined
May 5, 2016
Messages
1,191
Trophies
0
Age
32
XP
1,843
Country
Philippines
Whoa you can install boot9strap with Godmode9? Guess I saw someone doing that in a speedrun but didn't realize it. What would be suggested, Safeb9sinstaller or godmode9?
This has major potential to become the only script we'd ever need! Really looking forward to this.

Edit: PC-less B9s installation? I'd love to know more info on how to perform that and what files it looks for!

Assuming you know what you're doing, safeb9sinstaller is no more safer than gm9.

Regarding the PC-less b9s installation, here's a 'brief' explanation on what it does.

1. First, it checks the system if a9lh is currently installed. As far as I can recall, if we were to install b9s to a a9lh 3ds, we would need the secret sector file first. What I just did is to abort the operation and instruct the user to uninstall the cfw first before re-running pcless installation.

2. Once confirmed that a9lh is not installed, it'll then check if the required files are present in the sdmc/annson24 folder.

Here's the branches of the folder that it checks.

SDMC
annson24
boot9strap
boot9strap.firm
boot9strap.firm.sha​
Luma3DS
sdcompiled​

3. If everything is in check, it'll then backup your boot9.bin and boot11.bin.

4. After that, you will be ask if you want FBI to be injected to H&S; If chosen 'yes,' the script will automatically inject FBI to H&S; if chosen 'no,' the script will continue without FBI injection.

5. The script will now install boot9strap.

6. Now that boot9strap is installed, it'll now copy Luma3DS to your CTRNAND.

7. now within the annson24 folder, there is another folder named 'sdcompiled' inside this are all the necessary files we need to have on our sd card after we install boot9strap. Think of this as the finalization proccess on plailect's guide. But since this is a 'PCless' installation, this is done purely on the 3ds.

7.1 the script will copy all the files from 'sdcompiled' folder to the RAM of the 3DS, then it'll prompt the user to swap the sd card to whichever sd card the user wants to use. Once sd cards are swapped, the script will then move the files from the RAM to the newly inserted sdcard.

And that's it. So much for my 'brief' explanation huh?
 
  • Like
Reactions: MattKimura

MattKimura

3DS & WiiU Enthusiast
Member
Joined
Jun 30, 2014
Messages
2,137
Trophies
1
XP
2,936
Country
United States
Assuming you know what you're doing, safeb9sinstaller is no more safer than gm9.

Regarding the PC-less b9s installation, here's a 'brief' explanation on what it does.

1. First, it checks the system if a9lh is currently installed. As far as I can recall, if we were to install b9s to a a9lh 3ds, we would need the secret sector file first. What I just did is to abort the operation and instruct the user to uninstall the cfw first before re-running pcless installation.

2. Once confirmed that a9lh is not installed, it'll then check if the required files are present in the sdmc/annson24 folder.

Here's the branches of the folder that it checks.

SDMC
annson24
boot9strap
boot9strap.firm
boot9strap.firm.sha​
Luma3DS
sdcompiled​
3. If everything is in check, it'll then backup your boot9.bin and boot11.bin.

4. After that, you will be ask if you want FBI to be injected to H&S; If chosen 'yes,' the script will automatically inject FBI to H&S; if chosen 'no,' the script will continue without FBI injection.

5. The script will now install boot9strap.

6. Now that boot9strap is installed, it'll now copy Luma3DS to your CTRNAND.

7. now within the annson24 folder, there is another folder named 'sdcompiled' inside this are all the necessary files we need to have on our sd card after we install boot9strap. Think of this as the finalization proccess on plailect's guide. But since this is a 'PCless' installation, this is done purely on the 3ds.

7.1 the script will copy all the files from 'sdcompiled' folder to the RAM of the 3DS, then it'll prompt the user to swap the sd card to whichever sd card the user wants to use. Once sd cards are swapped, the script will then move the files from the RAM to the newly inserted sdcard.

And that's it. So much for my 'brief' explanation huh?

After reading your post for a while and planning things out, I've settled for the PC-less installation by adding it to my own 3DS SD card. This way I can essentially hack any 3DS I want while on the go. My 3DS is equipped with a ntrboot capable flashcard at all times, and a magnet is in my pouch. All I have to do is swap boot.firm with gm9, put it in the person's 3DS and do ntrboot and run your script. I've done some slight modification to the files such as removing pretty much everything in the 3DS folder, and adding some of my personal recommended cia's (Just a few not much)(Also lumaupdater is about to become obsolete on the 22nd of Feb).
I realized that the pc-less installation will only ever be good enough when helping someone in real life rather than over the internet. This will be a fun way of hacking a 3DS quick and in public like at a school library or something. Overall it only takes up 16 MB on my own SD card and its always there for me ready to hack another 3DS with ease. I often dont meet someone with a 3DS but it would be cool for a moment like that. I also came into realization that the godmode9 boot9strap installation is only ever useful when doing the ntrboot method, not the soundhax or Dsiwarehax methods.
At first I questioned your use of FBI injection since we dont use that anymore. But then I realized just how much faster it would be to get in and get out, shaving off some steps to get some cia's and FBI installed. Yeah I added FBI.cia to the cia folder. Just OCD reasons, I know one could just use FBI from H&S.

Thanks a lot for the thorough explanation, I've always wanted to know more about how this works. It's little innovations like these that make a difference in the scene.
First the wiiu gets an all in one app, now the 3DS gets an all in one GM9 script.
 
Last edited by MattKimura,

annson24

The Patient One
OP
Member
Joined
May 5, 2016
Messages
1,191
Trophies
0
Age
32
XP
1,843
Country
Philippines
After reading your post for a while and planning things out, I've settled for the PC-less installation by adding it to my own 3DS SD card. This way I can essentially hack any 3DS I want while on the go. My 3DS is equipped with a ntrboot capable flashcard at all times, and a magnet is in my pouch. All I have to do is swap boot.firm with gm9, put it in the person's 3DS and do ntrboot and run your script. I've done some slight modification to the files such as removing pretty much everything in the 3DS folder, and adding some of my personal recommended cia's (Just a few not much)(Also lumaupdater is about to become obsolete on the 22nd of Feb).
I realized that the pc-less installation will only ever be good enough when helping someone in real life rather than over the internet. This will be a fun way of hacking a 3DS quick and in public like at a school library or something. Overall it only takes up 16 MB on my own SD card and its always there for me ready to hack another 3DS with ease. I often dont meet someone with a 3DS but it would be cool for a moment like that. I also came into realization that the godmode9 boot9strap installation is only ever useful when doing the ntrboot method, not the soundhax or Dsiwarehax methods.
At first I questioned your use of FBI injection since we dont use that anymore. But then I realized just how much faster it would be to get in and get out, shaving off some steps to get some cia's and FBI installed. Yeah I added FBI.cia to the cia folder. Just OCD reasons, I know one could just use FBI from H&S.

Thanks a lot for the thorough explanation, I've always wanted to know more about how this works. It's little innovations like these that make a difference in the scene.
First the wiiu gets an all in one app, now the 3DS gets an all in one GM9 script.

If you have a spare card, you could just put the compiled pack there so that you wouldn't have to use your personal sd card. Honestly speaking, I also keep one set of ntrboot tools (cart, magnet, and the 'setup' sd card) on each of my three bags; and the only time I use em is when I see a friend or a new colleague using a 3DS and I'll be like "Hey, want me to install CFW to your 3ds?" and when they agree, it's like <5mins and it's done. It's really fun to see their reactions after.

The FBI injection part is, I know, obsolete now with rosalina around, but having FBI as a system app is much more convenient for those who isn't knowledgeable enough. Before, I would always get a call from some of my friends that their sd card got corrupted or took a virus in and all the files was deleted. So I would, again, set up their sd card just so that they can use FBI. Because of that, I went back to injecting FBI to H&S rather than using rosalina to redirect.

My personal 'setup sd card' has different files than the one I attached here. But I tried to keep the files of the one attached here to be as close to plailect's guide as possible.
 
  • Like
Reactions: MattKimura

annson24

The Patient One
OP
Member
Joined
May 5, 2016
Messages
1,191
Trophies
0
Age
32
XP
1,843
Country
Philippines
Good work on this!

But just as a friendly heads up, the gbavc.sav backup and restore scripts from my megathread don't work on gm9 1.4.2 and up.
Something to do with a name change I believe, and I never got around to fixing them.
Thanks for the heads up, will also look into it. And again, thank you for your scripts. More than half of the options from this came from your scripts.
 
  • Like
Reactions: 8BitWonder

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,256
Trophies
4
Location
Space
XP
13,812
Country
Norway
First of all huge thanks to the following people for making this possible:
windows_server_2003
SvenDaHacker64
MyLegGuy
emillois
8bitwonder - I referenced most of the options from his megathread, check it out here.
d0k3 - for pretty much everything.


Disclaimer!
This script is based on 689f6f7 commit of GodMode9, but latest stable release should work just the same.
The script is only half tested. I've only tested the functions I commonly use (i.e Nand Backup/Restore, CFW Install/Uninstall, Cart Dump, Boot9 and Boot11 Dump, OTP Dump).
Always have a backup in case something goes wrong. I will not be held responsible for bricked devices, dead sd cards, thermonuclear war, or you getting fired because you were up all night tweaking.



What does it do?
It's an all-in-one script consisting of almost all available gm9 scripts I can find.


To-do:
1. Complete the automated FBI to H&S Injection in the PCless B9S Installation. (Only currently working on New & Old US & EU Region)(Help Needed)
2. Figure out and add a ctrtransfer option.


Requests, suggestions, and bug reports are highly appreciated.


Summary of Options:

1. NAND Backup and Restore Options


1.1 SysNAND Backup
1.2 EmuNAND Backup
1.3 SysNAND Restore (full)
1.4 SysNAND Restore (safe)
1.5 EmuNAND Restore


2. Boot9Strap Install Options


2.1 Normal Boot9Strap Installation
2.2 annson24's PC-less Boot9Strap Installation


3. CFW Uninstall

4. Cartridge Dump Options


4.1 Private Header Dump
4.2 CTR Dump to .3ds
4.3 CTR Dump to .cia
4.4 NTR Dump to .nds


5. .3ds to .cia Converter

6. Title to .cia Dump


6.1 CTRNAND Title Dump
6.2 User Installed Title Dump
6.3 TWLNAND Title Dump


7. Boot9 and Boot11 Dump

8. OTP Dump

9. CITRA Files Dump

10. HomeMenu Dump to .cia

11. Friend Save Backup and Restore Options


11.1 Friend Save Backup
11.2 Friend Save Restore


12. LocalFrienCodeSeed_B Backup and Restore Options


12.1 LocalFrienCodeSeed_B Backup
12.2 LocalFrienCodeSeed_B Restore


13. gbavc.sav Backup and Restore Options


13.1 gbavc.sav Backup
13.2 gbavc.sav Restore


14. Nintendo3DS Folder Swap

15. Reboot

16. Shutdown

17. Quit



PS. You might notice some personal references especially in the PC-less B9S Installation since that was initially just a personal script. You can edit them out if you want, I've removed most of 'em but I'm too lazy to edit them all out myself.
That is pretty nice, it turns GodMode9 into a proper replacement for Decrypt9.
Could I request nnidsave.bin and SecureInfo_A/SecureInfo_C/movable.sed (SecureInfo_C is simply an alternate file supported by Luma so as to not touch the original, not 100% sure if it's still supported though) backup/restore?
nnidsave.bin is useful for removing the NNID from a console by injecting a blank one, or possibly for having multiple NNIDs and switching between them (might allow using eShop for different countries in the same region?)
SecureInfo is mostly for region changing and unbanning.
movable.sed is useful for de/encrypting SD card data on a PC, or for using things such as the 0-key movable.sed.

Also, the ability to dump ticket.db (and encTitleKeys/decTitleKeys if possible) would be useful, the former is for tools like FunkyCIA2 and the latter has a similar purpose but also makes it easy to submit keys to the title key site.

And one last request. The NAND backup scripts made with GM9 create a so-called Essentials backup. I don't know if the NAND backup in your script also does that, but either way it would be nice to have a separate option for making just the Essentials backup. I guess GM9 nags you to do this so there wouldn't be much point in adding it to the script. I thought it was actually the NAND backup script that made it but it seems I was wrong.
 
Last edited by The Real Jdbye,
  • Like
Reactions: annson24

annson24

The Patient One
OP
Member
Joined
May 5, 2016
Messages
1,191
Trophies
0
Age
32
XP
1,843
Country
Philippines
That is pretty nice, it turns GodMode9 into a proper replacement for Decrypt9.
Could I request nnidsave.bin and SecureInfo_A/SecureInfo_C/movable.sed (SecureInfo_C is simply an alternate file supported by Luma so as to not touch the original, not 100% sure if it's still supported though) backup/restore?
nnidsave.bin is useful for removing the NNID from a console by injecting a blank one, or possibly for having multiple NNIDs and switching between them (might allow using eShop for different countries in the same region?)
SecureInfo is mostly for region changing and unbanning.
movable.sed is useful for de/encrypting SD card data on a PC, or for using things such as the 0-key movable.sed.

Also, the ability to dump ticket.db (and encTitleKeys/decTitleKeys if possible) would be useful, the former is for tools like FunkyCIA2 and the latter has a similar purpose but also makes it easy to submit keys to the title key site.

And one last request. The NAND backup scripts made with GM9 create a so-called Essentials backup. I don't know if the NAND backup in your script also does that, but either way it would be nice to have a separate option for making just the Essentials backup.
Great idea. Thanks! Will consider adding those if possible. Regarding the nand backup, the option was directly referenced from d0k3's script, if that's what you're asking. Both of them only makes a min. size backup.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,256
Trophies
4
Location
Space
XP
13,812
Country
Norway
Great idea. Thanks! Will consider adding those if possible. Regarding the nand backup, the option was directly referenced from d0k3's script, if that's what you're asking. Both of them only makes a min. size backup.
It seems like I was wrong about the Essentials backup, I edited my post after you started replying to it. Looks like it's something GM9 nags you to do and not something actually part of a script.
 

MattKimura

3DS & WiiU Enthusiast
Member
Joined
Jun 30, 2014
Messages
2,137
Trophies
1
XP
2,936
Country
United States
@annson24 Two ideas for scripts, the "Setup ctrnand luma" script, and the "Clean Setup Files" script. Just suggestions though, I don't care if they make it on the list or not haha. Forgot to add this to my other post.
 
  • Like
Reactions: annson24
D

Deleted User

Guest
That is pretty nice, it turns GodMode9 into a proper replacement for Decrypt9.
Also, the ability to dump ticket.db (and encTitleKeys/decTitleKeys if possible) would be useful, the former is for tools like FunkyCIA2 and the latter has a similar purpose but also makes .

You can already do this in GodMode9. If you press the home button and press create support files, these files will be dumped in your /gm9/out folder.

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

There are no releases on the github page.

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

On Github, how do you download from the latest commit?
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,256
Trophies
4
Location
Space
XP
13,812
Country
Norway
You can already do this in GodMode9. If you press the home button and press create support files, these files will be dumped in your /gm9/out folder.

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

There are no releases on the github page.

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

On Github, how do you download from the latest commit?
You can already do all of this with GodMode9. The point is to have it all in one place and not spread across 20 different menus with confusing names where you aren't sure which one is the right one.
Though I wasn't aware there was an easier way to do it than going to the right path in CTRNAND and copy+pasting the file to the SD (or vice versa), I guess that's nice.

Edit: The .gm9 script is on the page he linked to, just scroll down a bit if you don't see it.
 
Last edited by The Real Jdbye,

Agent Moose

Well-Known Member
Member
Joined
Dec 6, 2014
Messages
407
Trophies
0
Age
33
XP
552
Country
United States
This is awesome! I wouldn't use half the features, but still helpful none-the-less!

I do have two questions:
1. I've never heard of "Nintendo3DS Folder Swap" It's obvious what it would do, but why would someone want to do this?
2. What's the difference between "Sysnand Restore (Full)" and "(Safe)"?
 

8BitWonder

Small Homebrew Dev
Member
Joined
Jan 23, 2016
Messages
2,489
Trophies
1
Location
47 4F 54 20 45 45 4D
XP
5,343
Country
United States
I've never heard of "Nintendo3DS Folder Swap" It's obvious what it would do, but why would someone want to do this?
The point of swapping the folders is so that you can install 300 titles on one "3DS Folder" and then swap with another "3DS Folder" and install more there. It's basically a janky way of installing more than 300 titles on one SD card.

This would of course, require you to switch between folders frequently if you use titles from both folders often, so it's kind of a silly solution.
 
Last edited by 8BitWonder,
  • Like
Reactions: Agent Moose

SirNapkin1334

Renound Aritst
Member
Joined
Aug 20, 2017
Messages
1,665
Trophies
1
XP
975
Country
United States
You should add HomeMenu Injection, like EixMode9.

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

This is awesome! I wouldn't use half the features, but still helpful none-the-less!

I do have two questions:
1. I've never heard of "Nintendo3DS Folder Swap" It's obvious what it would do, but why would someone want to do this?
2. What's the difference between "Sysnand Restore (Full)" and "(Safe)"?
Safe will protect your sighax/A9LH installation, so if you restore a backup without it, you will keep it, and full will overwrite everything, so if you were to use the aforementioned dump with this it would overwrite your sighax/A9LH.
 
  • Like
Reactions: Agent Moose
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://youtu.be/3eGAHfC5P-Y?si=Fo3iEl1pZ4D_O6dp +1