Homebrew [Project] Injecting any app into Health and Safety?

  • Thread starter d0k3
  • Start date
  • Views 44,335
  • Replies 149
  • Likes 6

Syphurith

Beginner
Member
Joined
Mar 8, 2013
Messages
641
Trophies
0
Location
Xi'an, Shaanxi Province
XP
364
Country
Switzerland
You didn't use the most recent version of the script, check my GitHub :P. Also, @Syphurith, your script still works without Decrypt9, correct? It's getting time we do a proper release thread for this, instead of just this brainstorming type one.
If you like it you can just release it. If possible tell them that is not perfect; one of them may have to read the script and maintain..
And, @Shadowtrance the UI looks weird.. Maybe. Do you like multiple colors with big button? Anyway i may insist to use my own one, don't mind it please.

About it without decrypt9. Yes, the default behavior would be without it, and you can use arguements.
 
Last edited by Syphurith,

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
If you like it you can just release it. If possible tell them that is not perfect; one of them may have to read the script and maintain..
And, @Shadowtrance the UI looks weird.. Maybe. Do you like multiple colors with big button? Anyway i may insist to use my own one, don't mind it please.
Wierd? how so?
And yes the big button changes colour, starts off yellow, goes green, then aqua when finished and resets back to yellow.
 
  • Like
Reactions: Syphurith

Syphurith

Beginner
Member
Joined
Mar 8, 2013
Messages
641
Trophies
0
Location
Xi'an, Shaanxi Province
XP
364
Country
Switzerland
Wierd? how so?
And yes the big button changes colour, starts off yellow, goes green, then aqua when finished and resets back to yellow.
Oh well. Why not just use a little square one? Or an image box? That is not a "PRESS THIS KEY" button which is supposed to do all the works.
Well eh.. no "Dumped H&S Folder/File" and "Inject CIA Folder" options?
EXIT button.. please wait for me to hold back something.. Thanks. That color changes behavior is quite cool, at least in some ways.
Maybe you would keep on working a better UI version of it? That would be quite good.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Oh well. Why not just use a little square one? Or an image box? That is not a "PRESS THIS KEY" button which is supposed to do all the works.
Well eh.. no "Dumped H&S Folder/File" and "Inject CIA Folder" options?
EXIT button.. please wait for me to hold back something.. Thanks. That color changes behavior is quite cool, at least in some ways.
Maybe you would keep on working a better UI version of it? That would be quite good.
Don't like it, don't use it. It's that simple. :)
I don't have time to do a super duper awesome UI version of it at the moment...

Anyway... @d0k3 it's updated now :)
 
  • Like
Reactions: Syphurith

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
If you like it you can just release it. If possible tell them that is not perfect; one of them may have to read the script and maintain..
And, @Shadowtrance the UI looks weird.. Maybe. Do you like multiple colors with big button? Anyway i may insist to use my own one, don't mind it please.

About it without decrypt9. Yes, the default behavior would be without it, and you can use arguements.
Don't like it, don't use it. It's that simple. :)
I don't have time to do a super duper awesome UI version of it at the moment...

Anyway... @d0k3 it's updated now :)
Alright, looks like that is release-ready. I'll see about making that thread later. @Shadowtrance, note that there are two inject-ready apps generated per CIA now. One of the two also contains the proper icon and banner (meaning you will see it properly in the menu, not with the ugly H&S banner and icon), but this one will also be slightly bigger. @Syphurith, could you post, again, the link to your most recent script?
 
  • Like
Reactions: Syphurith

Syphurith

Beginner
Member
Joined
Mar 8, 2013
Messages
641
Trophies
0
Location
Xi'an, Shaanxi Province
XP
364
Country
Switzerland
Alright, looks like that is release-ready. I'll see about making that thread later. @Shadowtrance, note that there are two inject-ready apps generated per CIA now. One of the two also contains the proper icon and banner (meaning you will see it properly in the menu, not with the ugly H&S banner and icon), but this one will also be slightly bigger. @Syphurith, could you post, again, the link to your most recent script?
The most recent link: http://pan.baidu.com/s/1hqEsBWw from this post
Also to note i have ways to rebuild the exefs now, so you can change the icon and banner. That's on 4dsdev:http://4dsdev.org/thread.php?id=105
But that is not included in the script, however you can do it yourself, once run the script and get its output..
 

dienutzo

Active Member
Newcomer
Joined
Sep 15, 2009
Messages
37
Trophies
0
XP
186
Country
United States
ive tried to use the gui but it doesnt generates anything it says decrypt ok but, i don't see anything i just put the hs.app near the Gui then i run it and then it automatically generated the folder input with an hs.app what do i have to do? i tried the .bat and i doesn't worked for ,P.D i got this Correct value found... 4E434348 in a txt name log_done
 
Last edited by dienutzo,

night_hawk

Well-Known Member
Member
Joined
Dec 3, 2014
Messages
573
Trophies
0
XP
1,586
Country
Italy
ive tried to use the gui but it doesnt generates anything it says decrypt ok but, i don't see anything i just put the hs.app near the Gui then i run it and then it automatically generated the folder input with an hs.app what do i have to do? i tried the .bat and i doesn't worked for ,P.D i got this Correct value found... 4E434348 in a txt name log_done
You have to put the homebrew.cia you would like to inject alongside hs.app, for example FBI.cia
 

dienutzo

Active Member
Newcomer
Joined
Sep 15, 2009
Messages
37
Trophies
0
XP
186
Country
United States
You have to put the homebrew.cia you would like to inject alongside hs.app, for example FBI.cia
what?? so, i have to get the fbi.cia and put it there? holycrap thanks man i'm gonna try !!!

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

what?? so, i have to get the fbi.cia and put it there? holycrap thanks man i'm gonna try !!!
it worked, i want to cry... thank you so much
 
  • Like
Reactions: d0k3

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
what?? so, i have to get the fbi.cia and put it there? holycrap thanks man i'm gonna try !!!

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


it worked, i want to cry... thank you so much
Glad it worked! I need to point out, this thread was the development thread. The release thread is in my signature!
 

Zhull

Well-Known Member
Newcomer
Joined
Oct 18, 2015
Messages
97
Trophies
0
Age
37
XP
195
Country
Indonesia
Hi, I'm trying to inject FBI.cia into my hs.app...
I follow the tutorial, but when I open the Health & Safety, the screen turn black with the 3ds's "An error has occured" ...
What did i do wrong?

By the way, i've attached the log...

Please help me...
 

Attachments

  • log_done.txt
    1.6 KB · Views: 290

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Hi, I'm trying to inject FBI.cia into my hs.app...
I follow the tutorial, but when I open the Health & Safety, the screen turn black with the 3ds's "An error has occured" ...
What did i do wrong?

By the way, i've attached the log...

Please help me...
This is the correct thread for this:
https://gbatemp.net/threads/release-inject-any-app-into-health-safety-o3ds-n3ds-cfw-only.402236/
Also read the opening post there and make sure you understand it fully

Now, the issue is most likely due to your system still being 32 bit, and the included CTRtool.exe not working with it. Please replace CTRtool.exe in this package with the one from here and, most importantly, tell me if it works:
https://github.com/profi200/Project_CTR/releases
 
  • Like
Reactions: Zhull

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
@d0k3 GUI has been updated and compacted. :D And the old one removed.
For those who want to use it.

Some code improvements behinds the scenes too. :)

Just copy your hs.app and cia file(s) to the same folder and run it, press go and done. :D

Tested and working on both 32 and 64 bit windows. virtual machines ftw!

tj5nER9.png
 

Attachments

  • Universal Inject Generator.zip
    1.5 MB · Views: 6,401
Last edited by Shadowtrance,

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
@d0k3 GUI has been updated and compacted. :D And the old one removed.
For those who want to use it.

Some code improvements behinds the scenes too. :)

Just copy your hs.app and cia file(s) to the same folder and run it, press go and done. :D

Tested and working on both 32 and 64 bit windows. virtual machines ftw!

tj5nER9.png
Nice! I already updated the link in the release thread. The new version of Decrypt9 doesn't require you to rename injectable files and it even allows to select, among multiple files, which file to inject.
 

The Koopa Kingdom

Well-Known Member
Newcomer
Joined
Oct 14, 2015
Messages
71
Trophies
0
Location
Castle Grounds
XP
325
Country
United States
I'm using the Linux script from https://github.com/d0k3/Universal-Inject-Generator, but I always get an error.

[+] IDENTIFY FILES TO WORK WITH
cp: missing destination file operand after ‘work/hs.app’
Try 'cp --help' for more information.
error: could not open input file!
mv: cannot stat ‘work/ciacnt.0000.*’: No such file or directory
[+] EXTRACT HS AND INJECT APP
ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: unknown file type

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/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin 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 NEW EXEFS
cp: cannot stat ‘work/inject_exefs/code.bin’: No such file or directory
ERROR: open file work/hs_exefs.bin failed

ERROR: create file failed

cp: cannot stat ‘work/inject_exefs/banner.bnr’: No such file or directory
cp: cannot stat ‘work/inject_exefs/icon.icn’: No such file or directory
ERROR: open file work/hs_exefs.bin failed

ERROR: create file failed

[+] GENERATE NEW ROMFS
[+] MERGE EXHEADER
[DBG:]argc=4
[DBG:]argv[0]=tools/MergeExHeader-linux
[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/hs_hdr.bin failed

ERROR: create file failed

ERROR: open file work/hs_hdr.bin failed

ERROR: create file failed

stat: cannot stat ‘work/hs.app’: No such file or directory
mv: ‘_inject_no_banner.app’ and ‘./_inject_no_banner.app’ are the same file
mv: ‘_inject_with_banner.app’ and ‘./_inject_with_banner.app’ are the same file
[+] HS APP ORIGINAL SIZE : bytes
[+] HS APP INJECT (N) SIZE: 0 bytes
go.sh: 60: [: -lt: unexpected operator
[+] HS APP INJECT (B) SIZE: 0 bytes
go.sh: 66: [: -lt: unexpected operator
In my input folder, I have BigBlueMenu.cia and hs.app, so what's the problem?
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
I'm using the Linux script from https://github.com/d0k3/Universal-Inject-Generator, but I always get an error.

[+] IDENTIFY FILES TO WORK WITH
cp: missing destination file operand after ‘work/hs.app’
Try 'cp --help' for more information.
error: could not open input file!
mv: cannot stat ‘work/ciacnt.0000.*’: No such file or directory
[+] EXTRACT HS AND INJECT APP
ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: open file work/hs.app failed

ERROR: unknown file type

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/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin failed

ERROR: open file work/hs_exefs.bin 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 NEW EXEFS
cp: cannot stat ‘work/inject_exefs/code.bin’: No such file or directory
ERROR: open file work/hs_exefs.bin failed

ERROR: create file failed

cp: cannot stat ‘work/inject_exefs/banner.bnr’: No such file or directory
cp: cannot stat ‘work/inject_exefs/icon.icn’: No such file or directory
ERROR: open file work/hs_exefs.bin failed

ERROR: create file failed

[+] GENERATE NEW ROMFS
[+] MERGE EXHEADER
[DBG:]argc=4
[DBG:]argv[0]=tools/MergeExHeader-linux
[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/hs_hdr.bin failed

ERROR: create file failed

ERROR: open file work/hs_hdr.bin failed

ERROR: create file failed

stat: cannot stat ‘work/hs.app’: No such file or directory
mv: ‘_inject_no_banner.app’ and ‘./_inject_no_banner.app’ are the same file
mv: ‘_inject_with_banner.app’ and ‘./_inject_with_banner.app’ are the same file
[+] HS APP ORIGINAL SIZE : bytes
[+] HS APP INJECT (N) SIZE: 0 bytes
go.sh: 60: [: -lt: unexpected operator
[+] HS APP INJECT (B) SIZE: 0 bytes
go.sh: 66: [: -lt: unexpected operator
In my input folder, I have BigBlueMenu.cia and hs.app, so what's the problem?
Tbh I don't know what's going wrong there... @dark_samus3, any ideas?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    eeewww
  • K3Nv2 @ K3Nv2:
    I thought it was the toilet
  • AncientBoi @ AncientBoi:
    okies. Time to go watch YT paranormal ghost things. L8er my luvs :D
    +1
  • K3Nv2 @ K3Nv2:
    I got a massive clue
  • BakerMan @ BakerMan:
    this mf def ain't watching ghost shit, he boutta beat his meat fr
    +1
  • K3Nv2 @ K3Nv2:
    Nah he's about to be the ghost in your bedroom
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, and leave ectoplasm all over the place
  • BakerMan @ BakerMan:

    this is him being described
    +2
  • Xdqwerty @ Xdqwerty:
    Sigh
  • Xdqwerty @ Xdqwerty:
    Yawn
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I dislike the kind of drm where you have to play single player games online all the time bc of some verification bs
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Don't use games that have Easy Anti-Cheat as its been exploited many times.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, my PC can't run most AAA games so i wont
    +1
  • Xdqwerty @ Xdqwerty:
    Most of the modern AAA games
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also heard one of the Prince of Persia games was so unfinished that it required the "24/7 online" drm so a puzzle could be done and the game could be finished. And that when the Ubisoft servers were closed the (cracked) game was impossible to finish or something like that
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's extra scummy. Ubisoft nowadays ship out incomplete games like Skull and Bones which was being worked on for nearly a decade now.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i think they have been doing that since late 2000s
    +1
  • Xdqwerty @ Xdqwerty:
    Either that or their old games were unfinished aswell but we can't notice it
  • Psionic Roshambo @ Psionic Roshambo:
    I like that games can be fixed after the fact, hate that it's being abused via beta tests... And DLC... I was a 7800 owner back in the day and loved Impossible Mission, turns out I couldn't beat it because it was actually impossible lol
  • Psionic Roshambo @ Psionic Roshambo:
    I never knew about it at the time but a fixed version was available but you had to mail in your broken copy lol
  • Psionic Roshambo @ Psionic Roshambo:
    So that version is semi rare
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, I have a rom of the ds version of impossible mission
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, I have a rom of the ds version of impossible mission