Hacking Official Corbenik - Another CFW for advanced users (with bytecode patches!)

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,287
Country
United States
How do you use the cxi file made by this: https://github.com/PokeAcer549/twl_firm_patcher
With corbenik?

Use the last commit and put the .cxi file inside the /corbenik/lib/module/twl folder

I should also mention this requires the absolute latest nightly build. Apache sent me into a bit of a scramble there... :/

Make sure you enable system module replacement.

open mset_ver.vco in a hex editor and edit it in a similar format to what it currently is (the "weird" bytes are tied to version numbers)

The source code to that patch is right in the repo. Why would you hex edit the compiled form? That's just making it difficult for no reason. https://github.com/chaoskagami/corbenik/blob/master/patch/mset_str.pco

Keep in mind that version string is the absolute maximum length. You cannot exceed that. Any longer and you start to trounce on other unrelated data.

The only thing technically required to build the patches is python2.
 
Last edited by chaoskagami,
D

Deleted User

Guest
corbenik-logo.png

This is yet another CFW for the 3DS. It's a lot like cakes in that patches are separate from the CFW itself, and a great deal of inspiration (as well as the FIRM decryption code) comes from Cakes.

Unlike Cakes, it uses bytecode-based patches and a VM to run them (both in the CFW and Loader,) taking a few very good ideas from @yifan_lu (Thanks, seriously.)

To people who don't quite understand that - it means patches consist of actual, interpreted code much like compiled Java, .NET CIL or Lua bytecode. The patches are roughly based on how Luma applies them.

This allows for much greater flexibility than Cakes, while working with near anything like Luma/ReiNAND. Corbenik is mainly intended for developers, power users and control freaks, not newbies. It is highly experimental, and may not work correctly in all cases.

If you don't know your way around the 3DS (or computers), chances are this isn't for you. I strongly recommend people use Luma3DS if they want something foolproof and simple. There's nothing wrong with Luma - Corbenik just has the exact opposite design goals.

At the moment, all of the essentials are in and functional. This includes all the basic patches. Signatures, FIRM Protection - as well as TWL/AGB patch support, reboot hooking, Multi-EmuNAND (both Gateway/Redirected) and other patches applied by Loader such as Region Free, update blocking, etc. It's also relatively stable at this point in time.

Please actually read the README.md and FAQ very carefully, and search the topic for problems if you have one before posting.

If you encounter issues, enable Logging and Verbose and upload boot.log and loader.log somewhere. If you don't have either, then you'll have to step through manually by enabling 'Step Through' in the options and taking down any text before it crashes. I can't help you if you don't provide proper debugging information. If you don't provide logs, that isn't helping me to help you. There is absolutely zero uniquely identifiable information in logs, so there is no reason not to upload them.

Current release: v0.2.0
Source code: https://github.com/chaoskagami/corbenik
Downloads: https://github.com/chaoskagami/corbenik/releases
Prefix-changed Nightlies: https://github.com/chaoskagami/skeith

The 'Disable SVC Permission Checks' patch is broken. Don't use it.

Q: Why would I want to use this...thing?
A: Don't ask me. In fact, I'm pretty sure you don't if this crossed your mind for even a second.

Q: Okay, smartass, is this a clone/fork of--
A: No. It does include code from some other stuff. README should explain that, but otherwise it's completely original.

Q: Why another CFW?
A: I wanted to try some weird shit and couldn't with Cakes, basically.

Q: It won't load my firmware.bin even though I put it in a native folder!
A: `native` is a file, and that file is the firmware. Without the firmware there is no native, and therefore no boot. Repeat. (Cookie if you got the reference.)

Q: It crashed! Halp.
A: Enable Logging, Verbose and upload boot.log and loader.log somewhere. If you don't have either, then you'll have to step through manually by enabling 'Step Through' in the options and taking down any text before it crashes. That said, I haven't seen a crash of that variety in a long time.

Q: I enabled autoboot and can't get into the menu!
A: Hold R. It's the same as a PSP.

Q: I can't compile it! (running Windows)
A: Compiling on Windows was never supported to begin with. If you really want to do this, search through the topic. It's easier to just install Debian in VirtualBox, though. Read the README, first off. Compiling is rather involved.

Q: What are these random letters in brackets?
A: Decrypting the firmware is a long process, and a lot can go wrong. Those represent the steps involved.

Q: Where can I get ahold of you?
A: Usually on freenode/#Cakey (which, contrary to popular belief, is more the generic arm9 dev channel now.) Otherwise, there's plenty other methods. Email is likely to be slowest.

Q: Where can I donate a few bucks to you?
A: No. Associating cash with homebrew is a bad idea for multiple reasons. I don't want your money. I appreciate the thought, though.

Q: When will the next release be?
A: When I feel like it. I prefer to not do rapid releases unless there are actual bugs that need a fix or features that add value immediately. Until things stack up such that I feel like a release is warranted, either compile from git or use the Skeith build (and brave instability.)

Q: What are your thoughts on the Nintendo Dev program?
A: You sign an NDA that forbids many things. Please do not contribute to my code if you are under this NDA. I'll grill any new contributors on the spot on this issue. If you do not pass (e.g. are under the NDA) I will be unable to accept your code no matter how good it is for the sake of my own legal safety. I don't want to open this can of worms.

Q: Why the name?
A: Because .hack > SAO, and it's totally appropriate naming.

Seriously? It's a CFW. It may have fancy menus, but there really isn't much to look at. These are all slightly out of date (get me new ones, please!)

The bland out-of-box experience:
View attachment 54203

When I was testing the newer wallpaper code (yes the brightness is off):
View attachment 54202

@yifan_lu For the absolutely insane and wonderful idea to use bytecode, as well as the open source loader replacement. https://github.com/yifanlu/3ds_injector
@mid-kid General inspiration from Cakes, FIRM decryption code, reboot assembly code, some code for text display. https://github.com/mid-kid/CakesForeveryWan
@Wolfvak Code segment dumping + loading, plus BootAnim9 which is cool.
@Aurora Wright RE work, patches, EmuNAND, and Reboot/Firmlaunch C code. https://github.com/AuroraWright/Luma3ds
@Reisyukaku For the 'Force TestMenu' patch, and RE work. Also coded ReiNand, which some parts of Luma are derived from and thus some parts of this.
@d0k3 start.s, recursive directory listing, RE work. https://github.com/d0k3/GodMode9
@TuxSH RE work, code, and patches. Some code in loader is based on his extensions to it.
@Steveice10 RE work, patch offsets.
@dark_samus3 RE work, screen init.
@b1l1s RE work, screen init.
@Normmatt RE work, screen init, and sdmmc.c/h
@delebile RE work, screen init, and also the A9LH version I personally use.
@smealum Pioneering the open source hax frontier. (No actual code of his is in this repo itself, but ctrulib is basically essential for everything.)
@TiniVi RE work, screen deinit.
@Temptress Cerise A LOT of testing which was really helpful.
@Crystal the Glaceon A LOT of testing which was really helpful.
CyberConnect2 Because the name originates from .hack, which you should go play.

can i use salty sd with this
 
D

Deleted User

Guest
i might get corbenik but can corbenik boot like luma3ds (splash screen, press button for payload etc)
 

gnmmarechal

Well-Known Member
Member
GBAtemp Patron
Joined
Jul 13, 2014
Messages
6,043
Trophies
2
Age
25
Location
https://gs2012.xyz
Website
gs2012.xyz
XP
6,010
Country
Portugal
i might get corbenik but can corbenik boot like luma3ds (splash screen, press button for payload etc)
Corbenik can have splash screens, and it is capable of chainloading payloads through a cool menu.

Sent from my Motorola DynaTAC 8000x using Tapatalk
 
  • Like
Reactions: TheCyberQuake

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BigOnYa @ BigOnYa: I'd like to find a power strip and HDMI selector built in 1 unit, so I can select which game...