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

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

ViolentRockstar

Well-Known Member
Member
Joined
Sep 15, 2015
Messages
236
Trophies
0
Age
23
Location
Hardenberg, Overijssel
XP
228
Country
Netherlands
Hey,

This might just be a greenhorn mistake but my issue is as follows:

I've done every step successfully (Dump hs, run go.bat with fbi.cia and hs.app in input folder, copied FBI_inject.app files to root of sd) but whenever I try to inject the fbi.apps they don't show up.

Help would be much appreciated :)

EDIT: Nevermind it is a greenhorn mistake. I was trying to inject the files trough the "Inject File" option instead of "Inject Health&Safety". Fixed
 
Last edited by ViolentRockstar,

civita

Member
Newcomer
Joined
May 2, 2016
Messages
6
Trophies
0
Age
35
XP
51
Country
United States
Also unable to get it working on multiple versions of FBI on Mac.

I get this error message:

Nicks-MacBook-Air:~ Nick$ /Users/Nick/Downloads/Universal-Inject-Generator-master\ 2/input/go.sh ; exit;

ERROR: hs.app not found

Please generate hs.app with Decrypt9 and put it into the input folder


EDIT: I Got my hands on a Windows machine and it worked just fine. This is a problem with doing it on Mac.
 
Last edited by civita,

SoyAlexPop

Well-Known Member
Member
Joined
Sep 1, 2015
Messages
189
Trophies
0
Age
30
XP
236
Country
Mexico
Hi guys, Is there a way to change the icon of the H&S app? I injected FBI into the H&S app and I fucked up. I want to restore it, so I injected the H&S app back but the icon is from FBI.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Okies... I'm stuck.
https://gbatemp.net/threads/cfw-old-3ds-w-firmware-9-4-help.425286/page-2 (recent help for my situation)

During the process of setting up EmuNAND and CFW I had installed BigBlueMenu through NASA, however... it DIDN'T install for some reason. I'm using an Old3DS, MenuHax, and RxTools which boots EmuNAND (firmware is 9.2 on both SysNAND and EmuNAND.) I'm looking to install BigBlueMenu through H&S onto my EmuNAND, so I've dumped hs_emu.app onto my SD card and renamed it hs.app because the UIG couldn't read the file otherwise. So, hs.app (emu) and BigBlueMenu.cia are both located in the input folder. Once BigBlueMenu is installed on EmuNAND I'd like to use it to install hb_laucher.cia so I can access Homebrew through EmuNAND and use HANs for ROM hacking.

Now, when I run go.bat it creates BigBlueMenu_inject_no_banner.app and BigBlueMenu_inject_with_banner.app but in the program I get the following errors:
[!] --- UNIVERSAL INJECT GENERATOR v0.6 ---

[+] CLEAR WORKING DIRECTORY
The system cannot find the file specified.

[+] IDENTIFY FILES TO WORK WITH
1 file(s) copied.
Unknown file
The system cannot find the file specified.

[+] EXTRACT HS AND INJECT APP
ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: unknown file type

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: unknown file type


[+] GENERATE NO BANNER EXEFS
The system cannot find the path specified.
0 file(s) copied.
ERROR: open file work\inject_exefs.bin failed

ERROR: create file failed


[+] GENERATE DUMMY ROMFS
1 file(s) copied.

[+] MERGE EXHEADER
[DBG:]argc=4
[DBG:]argv[0]=tools\MergeExHeader
[DBG:]argv[1]=work\inject_exhdr.bin
[DBG:]argv[2]=work\hs_exhdr.bin
[DBG:]argv[3]=work\merge_exhdr.bin
[INFO]Exheader Merge for APP injection.
[INFO]Loading files. New=work\inject_exhdr.bin, Old=work\hs_exhdr.bin....FAIL. File not found!

[+] REBUILD HS INJECT APP
ERROR: open file work\merge_exhdr.bin failed

ERROR: exefs is too short

ERROR: create file failed

ERROR: open file work\merge_exhdr.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: create file failed

[+] HS APP ORIGINAL SIZE : 851968 byte
[+] HS APP INJECT (N) SIZE: 28672 byte
[+] HS APP INJECT (B) SIZE: 28672 byte

[!] --- OPERATION COMPLETE ---

Press any key to continue . . .

Due to the errors I'm assuming these files created are no good, so I'm not risking using them until told otherwise. I skimmed through this forum I found that people were using a different ctrtool.exe from MakeRom, so I downloaded MakeRom and replaced the old ctrtool.exe with the new one. However when I try running the program again I get two popups says I'm missing libgcc_s_seh-1.dll and libwinpthread-1.dll. I'm using Windows 10, 64-byte system. I downloaded libgcc_s_seh-1.dll and libwinpthread-1.dll, put them in windows\SysWOW64 and restarted my computer. Tried again and the program is still staying I don't have them installed. I went to "run" regsvr32 libwinpthread-1.dll and I get an error that it cannot located DLLRegisterServer... the instructions on the OP sound simple enough, but it's the dumb stuff like this that seems to happen! xD I'm frustrated with the .dll stuff, I've been able to install other missing .dll files for running Pokemon ROM hacking software be simply putting them in the correct location and restarting my computer, this was before windows 10.

[!] --- UNIVERSAL INJECT GENERATOR v0.6 ---

[+] CLEAR WORKING DIRECTORY

[+] IDENTIFY FILES TO WORK WITH
1 file(s) copied.
The system cannot find the file specified.

[+] EXTRACT HS AND INJECT APP
ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: open file work\inject.app failed

ERROR: unknown file type

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: unknown file type


[+] GENERATE NO BANNER EXEFS
The system cannot find the path specified.
0 file(s) copied.
ERROR: open file work\inject_exefs.bin failed

ERROR: create file failed


[+] GENERATE DUMMY ROMFS
1 file(s) copied.

[+] MERGE EXHEADER
[DBG:]argc=4
[DBG:]argv[0]=tools\MergeExHeader
[DBG:]argv[1]=work\inject_exhdr.bin
[DBG:]argv[2]=work\hs_exhdr.bin
[DBG:]argv[3]=work\merge_exhdr.bin
[INFO]Exheader Merge for APP injection.
[INFO]Loading files. New=work\inject_exhdr.bin, Old=work\hs_exhdr.bin....FAIL. File not found!

[+] REBUILD HS INJECT APP
ERROR: open file work\merge_exhdr.bin failed

ERROR: exefs is too short

ERROR: create file failed

ERROR: open file work\merge_exhdr.bin failed

ERROR: open file work\inject_exefs.bin failed

ERROR: create file failed

[+] HS APP ORIGINAL SIZE : 851968 byte
[+] HS APP INJECT (N) SIZE: 28672 byte
[+] HS APP INJECT (B) SIZE: 28672 byte

[!] --- OPERATION COMPLETE ---

Press any key to continue . . .

I've done well to understand the concepts of downgrading, EmuNAND vs SysNAND, CFW, separating EmuNAND from SysNAND ect etc within a few days with the help of the brilliant people on my help thread! <3 Now my brain hurts? I'm not sure what to do to make UIG work...
This looks like your BBM.cia may be encrypted. Try deep decrypting it in Decrypt9WIP.
 
  • Like
Reactions: astronautlevel

Boured

A Dusk Lycanroc who cares a lot about people.
Member
Joined
Sep 25, 2015
Messages
594
Trophies
0
Age
24
Location
My Laptop
XP
725
Country
United States
For those who have reinjected the H&S app and it still has the home menu icon from the thing you injected into it, delete your extdata folder in the Nintendo 3DS folder. This will make it have to create a new one and grab the icons from the apps and thus your H&S icon will appear normal.
 
  • Like
Reactions: SoyAlexPop

SoyAlexPop

Well-Known Member
Member
Joined
Sep 1, 2015
Messages
189
Trophies
0
Age
30
XP
236
Country
Mexico
For those who have reinjected the H&S app and it still has the home menu icon from the thing you injected into it, delete your extdata folder in the Nintendo 3DS folder. This will make it have to create a new one and grab the icons from the apps and thus your H&S icon will appear normal.

thank you
 
  • Like
Reactions: Boured

dodol

Well-Known Member
Member
Joined
Sep 24, 2007
Messages
173
Trophies
1
XP
346
Country
United States
I was asking in the old thread and directed here by dark_samus3 (thanks)
does gateway support h&s inject ? always get error and then h&s vanish
same emunand but with luma3ds, injected fbi into h&s works fine.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
I was asking in the old thread and directed here by dark_samus3 (thanks)
does gateway support h&s inject ? always get error and then h&s vanish
same emunand but with luma3ds, injected fbi into h&s works fine.
To be honest, GW does a lot of stuff wrong and doesn't patch sigs that CFWs do. If it works in GW can only be found out by testing. From what you wrote, it doesn't look like it. You could write them (also ask why they still refuse to patch manual signatures in .3DS and .CIA), but it will most likely be in vain.
 

temp2000

Member
Newcomer
Joined
May 22, 2016
Messages
15
Trophies
0
XP
52
Country
United States
Original post

Troubleshoot continuation of my post above. Still no luck fixing Health&Safety inject failed error. Tried using older version of FBI.cia with Universal Inject Generator and no luck. Only thing that changes was the file size of FBI_inject_with_banner.app increased with the older April build and decreases with older version.
 
Last edited by temp2000,

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Original post

Troubleshoot continuation of my post above. Still no luck fixing Health&Safety inject failed error. Tried using older version of FBI.cia with Universal Inject Generator and no luck. Only thing that changes was the file size of FBI_inject_with_banner.app increased with the older April build and decreases with older version.
Are the files actually GENERATING properly? Windows? Linux? Mac?
If windows, try using my GUI C# version of UIG and post the log output after it has finished generating.
 

temp2000

Member
Newcomer
Joined
May 22, 2016
Messages
15
Trophies
0
XP
52
Country
United States
Are the files actually GENERATING properly? Windows? Linux? Mac?
If windows, try using my GUI C# version of UIG and post the log output after it has finished generating.

I'm running Windows 10. Windows 7 in VMware. Here's the log file

Correct value found... 4E434348 = NCCH


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: 0xb6900
Meta size: 0x3ac0
Content offset: 0x3900
Content size: 0xb3000
Warning, could not read common key.

Ticket content:
Signature Type: 04000100
Issuer: Root-CA00000003-XS0000000c
Signature:
000000: b7 0d d0 e3 25 99 f9 fe c0 74 0a e4 b7 94 ff eb ....%....t......
000010: 53 63 fc 55 d7 b4 cb 55 99 ee cb 84 05 38 c6 9a Sc.U...U.....8..
000020: 7f 20 64 50 65 64 dc ec 6b 8c 1b 1f 88 fd 99 d7 . dPed..k.......
000030: 63 07 8b 56 74 d6 10 ca 76 ea a7 c5 2a 18 e5 f6 c..Vt...v...*...
000040: 27 fa 0c a3 31 3f e1 49 cf b5 82 58 12 79 28 68 '...1?.I...X.y(h
000050: 36 6b 09 d9 96 7b 9d ff 55 eb 74 34 da 73 4f aa 6k...{..U.t4.sO.
000060: ff 2d 5b 62 d0 a6 a9 9b d8 ee e2 e0 4c a6 f1 30 .-[b........L..0
000070: 69 f8 ab 13 c8 42 77 90 dd 9a fa 1e b4 8f 8e 0e i....Bw.........
000080: d4 45 d2 ed 85 35 6e 6c 1e 2f 13 45 7d 54 a7 18 .E...5nl./.E}T..
000090: 0d 32 99 f0 55 18 3d 3e fe 12 32 af 38 1d b6 ce .2..U.=>..2.8...
0000a0: 34 65 02 c7 45 dd 5c 92 7f b6 54 c2 9d 0d f6 c7 4e..E.\...T.....
0000b0: 75 63 1d a8 da 24 88 4f 82 54 2b 8e d3 79 9b e2 uc...$.O.T+..y..
0000c0: b3 86 53 0c 96 98 ae 9b 86 6e 5f 7e aa 13 03 7d ..S......n_~...}
0000d0: da 9d 07 8a 4a c3 4d ab d5 44 3f 91 11 36 a7 2a ....J.M..D?..6.*
0000e0: 29 22 ef 1e 9d 3c 19 ac cf f9 43 13 6e 0e 3e a0 )"...<....C.n.>.
0000f0: 12 a6 d7 08 f8 c2 36 31 05 1f 3c 58 e2 23 2c 57 ......61..<X.#,W

Encrypted Titlekey: 1DCCF1836B77C27F5D222CB98ED2BEE5
Ticket ID: 00041AB3D8F3B58E
Ticket Version: 8
Title ID: 000400000F800100
Common Key Index: 0
Content permission map:
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00


TMD header:
Signature type: RSA 2048 - SHA256
Issuer: Root-CA00000003-CP0000000b
Version: 1
CA CRL version: 0
Signer CRL version: 0
System version: 0000000000000000
Title id: 000400000F800100
Title type: 00000040
Group id: 0000
Save Size: 00000000
Access rights: 00000000
Title version: 2.0.0 (v2048)
Content count: 0001
Boot content: 0000
Hash: 7B1FCD33CB09FD2A5B16AAA4A9BBAB8A481B8BC4FCADF6D40FF8562A18492DFF

TMD content info:
Content index: 0000
Command count: 0001
Unknown: 186CB4B32D3364D92E10DAA24FE8FE4D9C00575FEFB417BE1FD427C9EC80AF3D

TMD contents:
Content id: 4c5e525f
Content index: 0000
Content type: 0000
Content size: 00000000000b3000
Content hash: 4904881BB0F3E5E1F477CA5FDCE390FF5BDEFFC13B9C9307FA9C257FB8EFDD8D

Saving content #0000 to work\ciacnt.0000.4c5e525f







[DBG:]argc=4
[DBG:]argv[0]=tools/MergeExHeader.exe
[DBG:]argv[1]=work/inject_exhdr.bin
[DBG:]argv[2]=work/hs_exhdr.bin
[DBG:]argv[3]=work/merge_exhdr.bin
[INFO]Exheader Merge for APP injection.
[INFO]Loading files. New=work/inject_exhdr.bin, Old=work/hs_exhdr.bin....DONE.
[INFO]Patch #1: 0x0000+0x08..DONE.
[INFO]Patch #2: 0x000C+0x04..DONE.
[INFO]Patch #3: 0x01C8+0x08..DONE.
[INFO]Patch #4: 0x0200+0x08..DONE.
[INFO]Merge #5: 0x0248+0x01..DONE.
[INFO]Patch #6: 0x0600+0x08..DONE.
[INFO]Merge #7: 0x0648+0x01..DONE.
[INFO]Saving file to work/merge_exhdr.bin..DONE.
[INFO]All done. Program would exit.



[+] HS APP ORIGINAL SIZE : 956 KB
[+] HS INJECT APP (N) SIZE : 504 KB
[+] HS INJECT APP (B) SIZE : 716 KB
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
I'm running Windows 10. Windows 7 in VMware. Here's the log file

Correct value found... 4E434348 = NCCH


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: 0xb6900
Meta size: 0x3ac0
Content offset: 0x3900
Content size: 0xb3000
Warning, could not read common key.

Ticket content:
Signature Type: 04000100
Issuer: Root-CA00000003-XS0000000c
Signature:
000000: b7 0d d0 e3 25 99 f9 fe c0 74 0a e4 b7 94 ff eb ....%....t......
000010: 53 63 fc 55 d7 b4 cb 55 99 ee cb 84 05 38 c6 9a Sc.U...U.....8..
000020: 7f 20 64 50 65 64 dc ec 6b 8c 1b 1f 88 fd 99 d7 . dPed..k.......
000030: 63 07 8b 56 74 d6 10 ca 76 ea a7 c5 2a 18 e5 f6 c..Vt...v...*...
000040: 27 fa 0c a3 31 3f e1 49 cf b5 82 58 12 79 28 68 '...1?.I...X.y(h
000050: 36 6b 09 d9 96 7b 9d ff 55 eb 74 34 da 73 4f aa 6k...{..U.t4.sO.
000060: ff 2d 5b 62 d0 a6 a9 9b d8 ee e2 e0 4c a6 f1 30 .-[b........L..0
000070: 69 f8 ab 13 c8 42 77 90 dd 9a fa 1e b4 8f 8e 0e i....Bw.........
000080: d4 45 d2 ed 85 35 6e 6c 1e 2f 13 45 7d 54 a7 18 .E...5nl./.E}T..
000090: 0d 32 99 f0 55 18 3d 3e fe 12 32 af 38 1d b6 ce .2..U.=>..2.8...
0000a0: 34 65 02 c7 45 dd 5c 92 7f b6 54 c2 9d 0d f6 c7 4e..E.\...T.....
0000b0: 75 63 1d a8 da 24 88 4f 82 54 2b 8e d3 79 9b e2 uc...$.O.T+..y..
0000c0: b3 86 53 0c 96 98 ae 9b 86 6e 5f 7e aa 13 03 7d ..S......n_~...}
0000d0: da 9d 07 8a 4a c3 4d ab d5 44 3f 91 11 36 a7 2a ....J.M..D?..6.*
0000e0: 29 22 ef 1e 9d 3c 19 ac cf f9 43 13 6e 0e 3e a0 )"...<....C.n.>.
0000f0: 12 a6 d7 08 f8 c2 36 31 05 1f 3c 58 e2 23 2c 57 ......61..<X.#,W

Encrypted Titlekey: 1DCCF1836B77C27F5D222CB98ED2BEE5
Ticket ID: 00041AB3D8F3B58E
Ticket Version: 8
Title ID: 000400000F800100
Common Key Index: 0
Content permission map:
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00


TMD header:
Signature type: RSA 2048 - SHA256
Issuer: Root-CA00000003-CP0000000b
Version: 1
CA CRL version: 0
Signer CRL version: 0
System version: 0000000000000000
Title id: 000400000F800100
Title type: 00000040
Group id: 0000
Save Size: 00000000
Access rights: 00000000
Title version: 2.0.0 (v2048)
Content count: 0001
Boot content: 0000
Hash: 7B1FCD33CB09FD2A5B16AAA4A9BBAB8A481B8BC4FCADF6D40FF8562A18492DFF

TMD content info:
Content index: 0000
Command count: 0001
Unknown: 186CB4B32D3364D92E10DAA24FE8FE4D9C00575FEFB417BE1FD427C9EC80AF3D

TMD contents:
Content id: 4c5e525f
Content index: 0000
Content type: 0000
Content size: 00000000000b3000
Content hash: 4904881BB0F3E5E1F477CA5FDCE390FF5BDEFFC13B9C9307FA9C257FB8EFDD8D

Saving content #0000 to work\ciacnt.0000.4c5e525f







[DBG:]argc=4
[DBG:]argv[0]=tools/MergeExHeader.exe
[DBG:]argv[1]=work/inject_exhdr.bin
[DBG:]argv[2]=work/hs_exhdr.bin
[DBG:]argv[3]=work/merge_exhdr.bin
[INFO]Exheader Merge for APP injection.
[INFO]Loading files. New=work/inject_exhdr.bin, Old=work/hs_exhdr.bin....DONE.
[INFO]Patch #1: 0x0000+0x08..DONE.
[INFO]Patch #2: 0x000C+0x04..DONE.
[INFO]Patch #3: 0x01C8+0x08..DONE.
[INFO]Patch #4: 0x0200+0x08..DONE.
[INFO]Merge #5: 0x0248+0x01..DONE.
[INFO]Patch #6: 0x0600+0x08..DONE.
[INFO]Merge #7: 0x0648+0x01..DONE.
[INFO]Saving file to work/merge_exhdr.bin..DONE.
[INFO]All done. Program would exit.



[+] HS APP ORIGINAL SIZE : 956 KB
[+] HS INJECT APP (N) SIZE : 504 KB
[+] HS INJECT APP (B) SIZE : 716 KB
Yep log looks perfectly normal. Did you try injecting that one at all?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Wow, only $700?