Hacking Compile A9LH on demand

Xenon Hacks

Well-Known Member
Member
Joined
Nov 13, 2014
Messages
7,414
Trophies
1
Age
30
XP
4,687
Country
United States
This worked very well my hashes match from my own arm9loaderhax.3dsx but now we need a thread that keep track of latest payloads and what they actually do.
 

LennartL

Well-Known Member
Newcomer
Joined
Feb 15, 2009
Messages
57
Trophies
1
Age
49
XP
495
Country
My mistake was that I first thought the hash from otp.bin should match the output armloader9 3dsx file but that must be totally wrong thinking of me right ?
 

Vague Rant

Deceptively cute
Member
Joined
Aug 7, 2008
Messages
2,463
Trophies
2
Location
Melbourne
Website
vaguerant.tumblr.com
XP
3,302
Country
I made the necessary adjustments to get this working on Python 3 if anybody wants it:
Code:
import urllib.request
import shutil

data = open('./otp.bin', 'rb').read()
print("uploading otp file...")
req = urllib.request.Request('https://felipejfc.com/a9lh', data)
res = urllib.request.urlopen(req)
chunk = 16 * 1024

with open('arm9loaderhax.3dsx', 'wb') as f:
  shutil.copyfileobj(res, f)

print('arm9loaderhax.3dsx received! now check the sha256sums')

print('arm9loaderhax.3dsx sha256: ' + res.getheader('Installer-Sha256'))
print('otp.bin sha256: ' + res.getheader('OTP-Sha256'))

print('press enter to exit')

input()
These were minor tweaks at best but this is the first time I've ever done anything at all in Python, so if your face explodes too bad. It should be fine though, the SHA-256 sums still check out with this version.

I also fixed a purely cosmetic typo in the original script, which prints arm9loaderhax.3ds <-- missing an "x".
 
Last edited by Vague Rant,

jdeath

Active Member
Newcomer
Joined
Oct 8, 2015
Messages
27
Trophies
0
Age
44
XP
76
Country
United States
FYI: This didn't seem to work on my O3DSXL . I tried a few times (sha256 matched and did the minipasta trick), and hung at the exploiting arm9 every time. I compiled myself on windows and it worked first time. Hope this helps if someone else gets stuck
 
  • Like
Reactions: CeeDee

CeeDee

fuckin dork
Member
Joined
May 4, 2014
Messages
5,360
Trophies
2
XP
9,911
Country
United States
FYI: This didn't seem to work on my O3DSXL . I tried a few times (sha256 matched and did the minipasta trick), and hung at the exploiting arm9 every time. I compiled myself on windows and it worked first time. Hope this helps if someone else gets stuck
Same here. Shame too, as I have literally no idea how to compile it.
 

tivu100

Well-Known Member
Member
Joined
Jun 6, 2015
Messages
2,260
Trophies
0
Age
34
XP
1,136
Country
United States
I just tested myself with my otp and it worked... (N3DS Here)



Try 2.7
Is there anything else except Python? Run but nothing generated. First timee it upload the otp.bin then work something. Now I can't run it and it closes so quick without uploading otp.bin again. Where should the output goes to in case I miss something here?

Is there a way to freeze the screen so I can read what happen. Hard to know what is happening when it closes within 1s
 
Last edited by tivu100,

felipejfc

Well-Known Member
OP
Member
Joined
Mar 21, 2015
Messages
152
Trophies
0
Age
31
XP
319
Country
Brazil
is otp.bin in same folder as the python script? Is your otp 256 bytes in size? How are you running the script and under which platform?
 

felipejfc

Well-Known Member
OP
Member
Joined
Mar 21, 2015
Messages
152
Trophies
0
Age
31
XP
319
Country
Brazil
Maybe its your python version then... you can try to run it from console so that you can see what the error is
 

tivu100

Well-Known Member
Member
Joined
Jun 6, 2015
Messages
2,260
Trophies
0
Age
34
XP
1,136
Country
United States
Maybe its your python version then... you can try to run it from console so that you can see what the error is
Definitely something to do with my laptop. I take OTP.bin files from other people on the a9lh technical thread (which someone successfully compiled), and tried with your script, and same result: Nothing being output.

I never compile anything on this laptop. Only install Python.So is there anything else I need so I can use your python script?
 
Last edited by tivu100,

tivu100

Well-Known Member
Member
Joined
Jun 6, 2015
Messages
2,260
Trophies
0
Age
34
XP
1,136
Country
United States
no, just python, check otp.bin name and try to run from console to get output
I don;t know how to run from console.

I am sure it's otp.bin. I take people otp.bin ( this post) and tried. Same result from my laptop

Edit: Not sure if I am running in console mode, @felipejfc

Here is the error (red text):

Traceback (most recent call last):
File "C:\Users\Satellite A665\Desktop\data_input\post_otp.py", line 7, in <module>
res = urllib2.urlopen(req)
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
>>>
 
Last edited by tivu100,

felipejfc

Well-Known Member
OP
Member
Joined
Mar 21, 2015
Messages
152
Trophies
0
Age
31
XP
319
Country
Brazil
I don;t know how to run from console.

I am sure it's otp.bin. I take people otp.bin ( this post) and tried. Same result from my laptop

Edit: Not sure if I am running in console mode, @felipejfc

Here is the error (red text):

Traceback (most recent call last):
File "C:\Users\Satellite A665\Desktop\data_input\post_otp.py", line 7, in <module>
res = urllib2.urlopen(req)
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1240, in https_open
context=self._context)
File "C:\Python27\lib\urllib2.py", line 1197, in do_open
raise URLError(err)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
>>>

Ah, I see what happened, you're using an old and outdated windows so you do not trust letsencrypt ssl certificates, dont you have another computer to try? last case, pm me your otp.bin and I can run it for you.
 

tivu100

Well-Known Member
Member
Joined
Jun 6, 2015
Messages
2,260
Trophies
0
Age
34
XP
1,136
Country
United States
Ah, I see what happened, you're using an old and outdated windows so you do not trust letsencrypt ssl certificates, dont you have another computer to try? last case, pm me your otp.bin and I can run it for you.
I am saving toward new laptop, so no other PC at the moment.

Thanks. Still very interesting to learn if there is a workaround this.
 

LordVinz

Active Member
Newcomer
Joined
Apr 22, 2013
Messages
26
Trophies
0
Age
26
Location
Inverigo
XP
98
Country
Italy
Sorry i am a noob, how can i post on your site the otp.bin ? I used che python command but i don't know know if i should have done the site thing also
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Nut on the hill