Compile A9LH on demand

Discussion in '3DS - Flashcards & Custom Firmwares' started by felipejfc, Feb 26, 2016.

  1. felipejfc
    OP

    felipejfc GBAtemp Regular

    Member
    136
    140
    Mar 21, 2015
    Brazil
    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 (Web) (credits for the web interface go to @PeachIceTea):

    LINK
    Just drop your OTP.bin and wait your installer do be downloaded.

    Method 2 (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 3 (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
     

    Attached Files:

    Last edited by felipejfc, Mar 3, 2016
  2. MarcusD

    MarcusD ソノちゃん❤\xF0\x9F\x8D\xBC

    Member
    1,192
    2,467
    Oct 16, 2015
    Austria
    /Users/Sono/
    Damn, I was working on the same 2DAY! :cry:
    You (cubic) ninja! :ninja:

    Anyways, great job! :yay:
    Little simple NodeJS server :P Safe, and minimalistic :D

    One suggestion: You should check/limit the uploaded filesize, so it doesn't waste time/space/bandwidth, and doesn't output a corrupted 3dsx
     
  3. Ronhero

    Ronhero Too Weird to Live, Too Rare to Die

    Member
    3,037
    1,063
    Jun 28, 2014
    United States
    Arizona Bay
    Wow this is going to be extremely useful for some users.
     
    Last edited by Ronhero, Feb 27, 2016
  4. Swiftloke

    Swiftloke Hwaaaa!

    Member
    1,770
    1,520
    Jan 26, 2015
    United States
    Nowhere
    Nice.
     
  5. PetitMagique

    PetitMagique GBAtemp Regular

    Member
    117
    31
    Jan 4, 2016
    United States
    Is this compiling from the delebile or dark_samus fork?
     
  6. dkabot

    dkabot Better With Others' Systems Than Their Own

    Member
    1,000
    349
    Sep 9, 2014
    United States
    Delebile, unless that's changed (not that it's been long).
     
  7. gameking66

    gameking66 GBAtemp Advanced Fan

    Member
    576
    181
    Mar 9, 2010
    United States
    Was working on this as well.

    Remember that you're trusting your 3DS to someone else's compiles.

    Also C&D in three... Two...
     
  8. dkabot

    dkabot Better With Others' Systems Than Their Own

    Member
    1,000
    349
    Sep 9, 2014
    United States
    Many people already trust others to compile A9LH, working code is probably more reliable than a human for it.

    A9LH installers aren't copyrighted Ninty code. Nothing to C&D on, this isn't a romhack.
    If you could C&D things like this, all publicly hosted WiiU exploits wouldn't exist.


    I stand corrected, though I still doubt a C&D will occur.
     
    Last edited by dkabot, Feb 26, 2016
  9. gameking66

    gameking66 GBAtemp Advanced Fan

    Member
    576
    181
    Mar 9, 2010
    United States
    This is most certainly copyrighted and is created using proprietary code, private decryption keys, etc. There's a reason you have top compile it yourself. It's not because the devs hate you, it's because they prefer to not be sued to oblivion.
     
  10. dkabot

    dkabot Better With Others' Systems Than Their Own

    Member
    1,000
    349
    Sep 9, 2014
    United States
    No, you have to compile it yourself because you need the OTP dump which is console-specific.
    By your logic, the updater wouldn't exist, which is pre-compiled as it just replaces one non-console-specific portion.
     
    Last edited by dkabot, Feb 26, 2016
  11. gameking66

    gameking66 GBAtemp Advanced Fan

    Member
    576
    181
    Mar 9, 2010
    United States
    The OTP is a separate issue. Why do you think the other files aren't bundled and devs like dark_samus created modified installers SPECIFICALLY excluding them from being compiled into the binary?
     
  12. dkabot

    dkabot Better With Others' Systems Than Their Own

    Member
    1,000
    349
    Sep 9, 2014
    United States
    And your source on this is where?
    Capito has a fork that has files used for compilation in it, but the original one has a "data_input" folder where you provide the files.
    That's irrelevant, if that were all it was it'd be released on the ISO site pre-compiled anyway.
     
    Last edited by dkabot, Feb 26, 2016
  13. gameking66

    gameking66 GBAtemp Advanced Fan

    Member
    576
    181
    Mar 9, 2010
    United States
    Ask any of the devs yourself in #Cakey, they've been chatting about this for a week now... It was per their suggestion that I held off making something like this earlier.
     
  14. dkabot

    dkabot Better With Others' Systems Than Their Own

    Member
    1,000
    349
    Sep 9, 2014
    United States
    If you can't state it here, then we're done.
    You need OTP.bin to compile it, and if you can arbitrarily claim that it is "irrelevant", then I can claim the reverse about the fact you need to insert firmware files to "data_input".

    Good day, sir.
     
    Last edited by dkabot, Feb 26, 2016
  15. felipejfc
    OP

    felipejfc GBAtemp Regular

    Member
    136
    140
    Mar 21, 2015
    Brazil
    nintendo surely got bigger concerns than a webserver compiling a exploit for 0.000000001% of their 3ds users
    me and my webserver are surely irrelevant to them
     
    Last edited by felipejfc, Feb 26, 2016
    Ryccardo likes this.
  16. LennartL

    LennartL Member

    Newcomer
    48
    1
    Feb 15, 2009
    hi there im using your litte tool i know what a hashsum is but have doent it two times now check on photo here if it looks right to you please fo you think the hashes looks ok i have tried 3 times and i dont think its look like they are matching
    [​IMG] Namnlös.gif

    — Posts automatically merged - Please don't double post! —

    forget im tierd and dumb right now i guess i thought at first i should match the hashes from otp.bin vs arm9loader.3dsx but that doesnt work im totally up in the blue tonight or iam thinking wrong now ?
     
  17. pbanj

    pbanj The "friendly" neighborhood sandwich

    Member
    2,732
    1,433
    Dec 29, 2014
    United States
    in a ziploc
    the hashes should match the files, so the hash for otp should match your otp and the hash for the .3dsx should match that
     
  18. LennartL

    LennartL Member

    Newcomer
    48
    1
    Feb 15, 2009
    Yep I downloaded an hash check and it seems to match
     
  19. Mthodmn101

    Mthodmn101 GBAtemp Regular

    Member
    209
    61
    Jan 31, 2008
    United States
    I have tried this as well as compiling it myself and the hashes dont match each other. So not sure which to use :/
     
  20. dkabot

    dkabot Better With Others' Systems Than Their Own

    Member
    1,000
    349
    Sep 9, 2014
    United States
    Hashes will just about never match from compilations on different machines.
    As for which, which setup do you trust more: Your own, or this cloud one?