Homebrew [Release] Inject any app into Health & Safety (O3DS/N3DS/CFW only)

  • Thread starter d0k3
  • Start date
  • Views 239,358
  • Replies 527
  • Likes 40

weatMod

Well-Known Member
Member
Joined
Aug 24, 2013
Messages
3,305
Trophies
2
Age
47
XP
3,351
Country
United States
I think it will make multiple hs.apps.
Edit: Yeah it makes multiple hs.apps. Just tried it.
Edit2: And you'll have to see about injecting devmenu/bbm. Personally i dont like devmenu/bbm becuase the font is weird af. Hs.app is 900kb for me and FBI.CIA is 847kb. The output hs.app with FBI Injected was 827kb (with banner) assuming without banner is less but that doesn't matter. The input CIA I guess just must be less than or equal to the size of hs.app.
ok i did it , it looks liek it worked but when i check the log_done.txt file

there is a message in there a little ways down the page, that says "warning,could not read common key"
so is that normal? is it safe to inject this?i'm scared , what is the worst that could happen?

Correct value found... 4E434348


[!] --- UNIVERSAL INJECT GENERATOR V0.3 ---


[+] IDENTIFY FILES TO WORK WITH
1 file(s) copied.
Header size 0x00002020
Type 0000
Version 0000
Certificates offset: 0x2040
Certificates size: 0xa00
Ticket offset: 0x2a40nTicket size 0x350
TMD offset: 0x2dc0
TMD size: 0xb34
Meta offset: 0x65500
Meta size: 0x3ac0
Content offset: 0x3900
Content size: 0x61c00
Warning, could not read common key.

there is some more log data after that, but nothing else looks like an error msg, so is that normal?
 

dark_samus3

Well-Known Member
Member
Joined
May 30, 2015
Messages
2,372
Trophies
0
XP
2,042
Country
United States
I think it will make multiple hs.apps.
Edit: Yeah it makes multiple hs.apps. Just tried it.
Edit2: And you'll have to see about injecting devmenu/bbm. Personally i dont like devmenu/bbm becuase the font is weird af. Hs.app is 900kb for me and FBI.CIA is 847kb. The output hs.app with FBI Injected was 827kb (with banner) assuming without banner is less but that doesn't matter. The input CIA I guess just must be less than or equal to the size of hs.app.
exactly, if you want to batch produce a bunch of files then you just put all of the CIAs you want to process into the input folder (since they're decrypted this can make files that work on any 3ds that has the same H&S version and console region as the console hs.app was made from, so if you were making an injection pack (a bunch of H&S injectable applications) then you can easily make every hs.app in a single step :) )

ok i did it , it looks liek it worked but when i check the log_done.txt file

there is a message in there a little ways down the page, that says "warning,could not read common key"
so is that normal? is it safe to inject this?i'm scared , what is the worst that could happen?

Correct value found... 4E434348


[!] --- UNIVERSAL INJECT GENERATOR V0.3 ---


[+] IDENTIFY FILES TO WORK WITH
1 file(s) copied.
Header size 0x00002020
Type 0000
Version 0000
Certificates offset: 0x2040
Certificates size: 0xa00
Ticket offset: 0x2a40nTicket size 0x350
TMD offset: 0x2dc0
TMD size: 0xb34
Meta offset: 0x65500
Meta size: 0x3ac0
Content offset: 0x3900
Content size: 0x61c00
Warning, could not read common key.

there is some more log data after that, but nothing else looks like an error msg, so is that normal?
you're fine, that's a normal error

noob question, but what does the banner do?
banner is what shows on the top screen of the 3ds when you are over an application on the home menu
 
  • Like
Reactions: weatMod

dark_samus3

Well-Known Member
Member
Joined
May 30, 2015
Messages
2,372
Trophies
0
XP
2,042
Country
United States
huh, i could have sworn i injected FBI without banner, but i'm still getting the Health and Safety banner on the top screen. is this normal?
all applications must have a banner, however you can leave the original H&S banner (the "without banner" option) or include FBI's banner (the "with banner" option)
 
  • Like
Reactions: reiyu

weatMod

Well-Known Member
Member
Joined
Aug 24, 2013
Messages
3,305
Trophies
2
Age
47
XP
3,351
Country
United States
exactly, if you want to batch produce a bunch of files then you just put all of the CIAs you want to process into the input folder (since they're decrypted this can make files that work on any 3ds that has the same H&S version and console region as the console hs.app was made from, so if you were making an injection pack (a bunch of H&S injectable applications) then you can easily make every hs.app in a single step :) )


ok so another question say you inject say devmen into H&S
then you want to inject something else and change it again to something else

now do you have to use decrypt9 again to make another dump of H&S with the app you injected into it

or would you use the original H&S clean uninjected dump?
can you use the clean dump again and inject another app over a H&S that is already injected with another cia
or do you have to dump it again from the altered h&S?
 

dark_samus3

Well-Known Member
Member
Joined
May 30, 2015
Messages
2,372
Trophies
0
XP
2,042
Country
United States
you replied within the quote haha, anyways you should use the clean hs.app you dumped with D9, not sure if it would work with the new versions or not (doubt it)
 
  • Like
Reactions: weatMod

mentalcase

New Member
Newbie
Joined
Jan 18, 2016
Messages
3
Trophies
0
Age
39
XP
52
Country
United States
Hey there, I'm getting an hs.app not found error even though the dumped hs.app file is in the input folder. Any clues on how to resolve? I've tried searching through the thread and can't find a fix.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Hey there, I'm getting an hs.app not found error even though the dumped hs.app file is in the input folder. Any clues on how to resolve? I've tried searching through the thread and can't find a fix.
Not sure what's going on there.
Did you try the GUI version i made at all? Assuming you're on windows that is... https://gbatemp.net/threads/project...-health-and-safety.401697/page-6#post-5973007
The hs.app and whatever.cia just go in the same folder next to the GUI exe, open it, and press GO!
See if that works out for you. :)
 

mentalcase

New Member
Newbie
Joined
Jan 18, 2016
Messages
3
Trophies
0
Age
39
XP
52
Country
United States

mentalcase

New Member
Newbie
Joined
Jan 18, 2016
Messages
3
Trophies
0
Age
39
XP
52
Country
United States
It does require .net framework 4.5.2 but other than that i can't think of why it wouldn't run... Everything else it requires is actually embedded in the exe file.


Turns out my initial problem was being caused by using a mac. I'm guessing the way they handle the .app file name. I booted up my work PC and the script worked perfectly in a few seconds.

Thanks.
 
  • Like
Reactions: Shadowtrance

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Can someone PM me european v2050 decrypted H&S .app please? I can't find it anywhere. NUS offers encrypted version
Old3ds or n3ds? Different titleID
Also, you can probably just decrypt it yourself with Decrypt9...

Like so... (all 17 H&S titles listed here decrypted :D )
Opening /D9Game ...
Processing CIA "0004001000020300_JPNv0_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACJ / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/657kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000020300_JPNv1024_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACJ / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/663kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000020300_JPNv2050_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACJ / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/657kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000021300_USAv0_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACE / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/657kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000021300_USAv1026_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACE / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/665kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000021300_USAv2051_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACE / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/657kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000022300_EURv0_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACP / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/657kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000022300_EURv1024_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACP / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/655kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000022300_EURv2050_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACP / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/665kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000022300_EURv3077_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACP / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/657kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000026300_CHNv5_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACC / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/465kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000027300_KORv2_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACK / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/465kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001000028300_TWNv5_o3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 1 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 1 (0MB)...
Code / Crypto: CTR-N-HACW / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/478kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001020020300_JPNv2_n3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 2 (0MB)...
Verifying decrypted content...
Verified OK!
Decrypting Content 2 of 2 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 2 (0MB)...
Code / Crypto: CTR-N-HACJ / 7x
Decrypt ExHdr/ExeFS/RomFS (2kB/617kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Processing Content 2 of 2 (0MB)...
Code / Crypto: CTR-P-CTAP / Standard
Decrypt ExHdr/ExeFS/RomFS (0kB/0kB/0MB)
Verify ExHdr/ExeFS/RomFS: -/-/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001020020300_JPNv17_n3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 2 (0MB)...
Verifying decrypted content...
Verified OK!
Decrypting Content 2 of 2 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 2 (0MB)...
Code / Crypto: CTR-N-HACJ / Secure3
Decrypt ExHdr/ExeFS/RomFS (2kB/617kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Processing Content 2 of 2 (0MB)...
Code / Crypto: CTR-P-CTAP / Standard
Decrypt ExHdr/ExeFS/RomFS (0kB/0kB/0MB)
Verify ExHdr/ExeFS/RomFS: -/-/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001020021300_USAv1_n3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 2 (0MB)...
Verifying decrypted content...
Verified OK!
Decrypting Content 2 of 2 (0MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 2 (0MB)...
Code / Crypto: CTR-N-HACE / 7x
Decrypt ExHdr/ExeFS/RomFS (2kB/670kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Processing Content 2 of 2 (0MB)...
Code / Crypto: CTR-P-CTAP / Standard
Decrypt ExHdr/ExeFS/RomFS (0kB/0kB/0MB)
Verify ExHdr/ExeFS/RomFS: -/-/OK
Recalculating hash...
Recalculating TMD hashes...
Success!
Processing CIA "0004001020022300_EURv1_n3ds.cia"
Pass #1: CIA decryption...
Decrypting Content 1 of 2 (0MB)...
Verifying decrypted content...
Verified OK!
Decrypting Content 2 of 2 (1MB)...
Verifying decrypted content...
Verified OK!
Pass #2: NCCH decryption...
Processing Content 1 of 2 (0MB)...
Code / Crypto: CTR-N-HACP / 7x
Decrypt ExHdr/ExeFS/RomFS (2kB/733kB/0MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Recalculating hash...
Processing Content 2 of 2 (1MB)...
Code / Crypto: CTR-P-CTAP / Standard
Decrypt ExHdr/ExeFS/RomFS (0kB/0kB/1MB)
Verify ExHdr/ExeFS/RomFS: -/-/OK
Recalculating hash...
Recalculating TMD hashes...
Success!

17x processed / 0x failed
CIA Decryptor (deep): succeeded!

Press B to return, START to reboot.
 
Last edited by Shadowtrance,

Elveman

Just passing by
Member
Joined
Feb 1, 2015
Messages
456
Trophies
0
Age
27
Location
Moscow city
XP
992
Country
Russia
Old3ds or n3ds? Different titleID
Also, you can probably just decrypt it yourself with Decrypt9...
Old 3DS one please. My system has v3077 (9.2.0-28E) but for now, I need v2050

Well, ok, I only started using Decrypt9, so that's kinda problematic for me now, but I'll definitely adapt and decrypt another versions by myself :)
Thanks for info :)
 
Last edited by Elveman,

WrinkleyPotato

Member
Newcomer
Joined
Jan 18, 2016
Messages
8
Trophies
0
Age
74
XP
52
Country
United States
i get the error described in the picture every time i launch h&s in emunand after injecting fbi.cia. i've tried using both with and without banner, both got this error. help?

CDirOE7.jpg
 
Last edited by WrinkleyPotato,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu