Hacking Compile A9LH on demand

Bu2d85

Well-Known Member
Member
Joined
Nov 6, 2014
Messages
1,042
Trophies
0
Age
38
XP
1,274
Country
United States
what python version are you using?

try using this in top of the script

import ssl

ssl._create_default_https_context = ssl._create_unverified_context
You should add this to the OP. It would have saved me about an hour of confusion.
 

LunaLogic

Gimme DLDI please.
Member
Joined
Jan 21, 2016
Messages
142
Trophies
0
Location
Under the Great Firewall
XP
158
Country
Switzerland
Why not adding something like this?
f = open("sha256.txt", "w")
print >> f, "%s\n%s" % (res.info().getheader('Installer-Sha256'), res.info().getheader('OTP-Sha256'))
f.close()
A file containing all the SHAs is useful... At least for me lol
 
Last edited by LunaLogic,
  • Like
Reactions: Gil_PL

felipejfc

Well-Known Member
OP
Member
Joined
Mar 21, 2015
Messages
152
Trophies
0
Age
31
XP
319
Country
Brazil
Why not adding something like this?
f = open("sha256.txt", "w")
print >> f, "%s\n%s" % (res.info().getheader('Installer-Sha256'), res.info().getheader('OTP-Sha256'))
f.close()
A file containing all the SHAs is useful... At least for me lol

Why? it is printed in the end of the execution...
 

noctis90210

Well-Known Member
Member
Joined
Dec 24, 2013
Messages
969
Trophies
0
Age
37
XP
1,635
Country
It says it in the OP dude. " It is using delebiles fork of a9lh with screen init support."
whats the difference between the originl a9lh vs a9lh screen init?
what is thats screen init? (sorry for being a noob)
what do u prefer to use? original or the screen init?
thanks...
 

pbanj

The "friendly" neighborhood sandwich
Member
Joined
Dec 29, 2014
Messages
2,743
Trophies
1
Location
in a ziploc
XP
1,650
Country
United States
whats the difference between the originl a9lh vs a9lh screen init?
what is thats screen init? (sorry for being a noob)
what do u prefer to use? original or the screen init?
thanks...
The orig the screens where off. Now they can make things like ctrbootmanager for it
 

noctis90210

Well-Known Member
Member
Joined
Dec 24, 2013
Messages
969
Trophies
0
Age
37
XP
1,635
Country
The orig the screens where off. Now they can make things like ctrbootmanager for it

i dont fully understand...

do u mean in the original - boot manager doesnt work?
while
in screen init version - boot manager works?

am i right? (i think im wrong?)
 

noctis90210

Well-Known Member
Member
Joined
Dec 24, 2013
Messages
969
Trophies
0
Age
37
XP
1,635
Country
So, I'm providing a online service to compile A9LH, it is very simple, just post your OTP.bin (must be raw bytes) to https://felipejfc.com/a9lh and wait for your arm9loaderhax.3dsx.

Method 1 (Python script):

Requirements:
Python installed.

LINK
Put it in same folder as otp.bin and double click it. done. Just check shasums and you are good.

Method 2 (curl):

curl --data-binary "@otp.bin" -D headers https://felipejfc.com/a9lh > arm9loaderhax.3dsx

the command takes some time to run,
two files will be created, headers and arm9loaderhax.3dsx, in headers, check
Installer-Sha256
OTP-Sha256

These are the sha256 of the OTP the server used to compile arm9loaderhax.3dsx, and arm9loaderhax.3dsx sha256 the moment it leave the server, both should match with your newly created arm9loaderhax.3dsx and the OTP.bin you've sent.

Do not install if the hashes don't match

It is using delebiles fork of a9lh with screen init support.


source

ive follow the method 2 - it produces "arm9loaderhax.3dsx"

but where are the other files?:
---arm9loaderhax.elf
---stage0x5C000.bin
---firm0.bin
---firm1.bin
---sector.bin

someone compiled the original arm9loaderhax (not the init version) and it does have these 5 files...
can i use those 5 files using the init version of arm9loaderhax.3dsx?

thanks :-)
 

felipejfc

Well-Known Member
OP
Member
Joined
Mar 21, 2015
Messages
152
Trophies
0
Age
31
XP
319
Country
Brazil
Do you keep the OTP dump after compilation? Just asking because there is unique data in there.

no.

ive follow the method 2 - it produces "arm9loaderhax.3dsx"

but where are the other files?:
---arm9loaderhax.elf
---stage0x5C000.bin
---firm0.bin
---firm1.bin
---sector.bin

someone compiled the original arm9loaderhax (not the init version) and it does have these 5 files...
can i use those 5 files using the init version of arm9loaderhax.3dsx?

thanks :-)

only arm9loaderhax.3dsx is required
 
  • Like
Reactions: noctis90210

gameking66

Well-Known Member
Member
Joined
Mar 9, 2010
Messages
576
Trophies
1
XP
330
Country
United States
So, I'm providing a online service to compile A9LH, it is very simple, just post your OTP.bin (must be raw bytes) to https://felipejfc.com/a9lh and wait for your arm9loaderhax.3dsx.

Method 1 (Python script):

Requirements:
Python installed.

LINK
Put it in same folder as otp.bin and double click it. done. Just check shasums and you are good.

Method 2 (curl):

curl --data-binary "@otp.bin" -D headers https://felipejfc.com/a9lh > arm9loaderhax.3dsx

the command takes some time to run,
two files will be created, headers and arm9loaderhax.3dsx, in headers, check
Installer-Sha256
OTP-Sha256

These are the sha256 of the OTP the server used to compile arm9loaderhax.3dsx, and arm9loaderhax.3dsx sha256 the moment it leave the server, both should match with your newly created arm9loaderhax.3dsx and the OTP.bin you've sent.

Do not install if the hashes don't match

It is using delebiles fork of a9lh with screen init support.


source
Any chance you could set Access-Control-Allow-Origin to *? I'm trying to build a web-form to make this easier for people.

Or would you prefer I just hosted the thing myself or set up a proxy?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/@legolambs