This is a simple fork from the original yellows8's update browserhax script.
It automatically downloads the latest browserhax_site, replaces the hardcoded urls, copies the browserhax_cfg.php to the webroot folder and generates a valid qrcode (using the google char api).
This script has 3 versions:
update_browserhax.sh
is a simple improvement over the original that fixes hardcoded paths and auto copies thebrowserhax_cfg.php
to the webroot directory and you must configure it yourself, aswell as compiling the 3ds_browserhax_common repo yourselfupdate_browserhax_auto.sh
automatically sets everything up, compiles 3ds_browserhax_common, and uses a predefined configuration file with auto id generation. No extra configuration neededupdate_browserhax_auto_static.sh
, same as the auto version, but generates static files (no symlinking), allows copying. Access http://example.com/generateqrcode.php to generate the qr code for the page.
You can find the latest static release here. Extract to your webroot and access http://yoursite.com/generateqrcode.php to generate the missing qrcode. If you ever need to regenerate it, just delete the qrcode and open the link again.
A GNU/Linux machine (tested on Ubuntu) with the following packages installed:
- git
- gcc-arm-none-eabi (needed to make the 3ds_browserhax_common project and generate the 3ds_arm11code.bin)
You can download this script by either cloning this repo or simply:
- Using
update_browserhax.sh
:curl -o update_browserhax.sh "https://raw.githubusercontent.com/Cartman123/update_browserhax/master/update_browserhax.sh" && chmod +x update_browserhax.sh
- Using
update_browserhax_auto.sh
:curl -o update_browserhax_auto.sh "https://raw.githubusercontent.com/Cartman123/update_browserhax/master/update_browserhax_auto.sh" && chmod +x update_browserhax_auto.sh
./update_browserhax.sh <path to repos base directory> <path to pub_html root> <webpageURL>
or
./update_browserhax_auto.sh <path to repos base directory> <path to pub_html root> <webpageURL>
Full paths are preferable. For cleaner code, don't use trailing slashes (/some/dir
instead of /some/dir/
, and http://example.com
instead of http://example.com/
).
./update_browserhax.sh /home/user/repos /var/www/html "http://example.com"
./update_browserhax_auto.sh /home/user/repos /var/www/html "http://example.com"
You can create a very simple mirror by running the following line (remember to install de requirements first):
bash <(curl -s https://raw.githubusercontent.com/Cartman123/update_browserhax/master/update_browserhax_auto.sh) /path/to/repos /path/to/webroot "http://example.com"
And it's done! The new mirror should be up and running on http://example.com/3dsbrowserhax.php (the qr code will point you to http://example.com/3dsbrowserhax_auto.php)
- Go into the
3ds_browserhax_common
repo directory (cd /home/user/repos/3ds_browserhax_common
) - run
make OUTPUT_PATH=./
- this will generate the
3ds_arm11code.bin
- On the webroot directory, edit
browserhax_cfg.php
- Use this file as a base
- Change
<someid>
to whatever you like - Change
realpath(dirname(__FILE__)) . "/payloads/3ds_arm11code.bin"
to the path of your3ds_arm11code.bin
.- Example:
"/home/user/repos/3ds_browserhax_common/3ds_arm11code.bin"
- Or keep it that way and copy/symlink the file to a directory named
payloads
in the webroot:cd webroot_dir
mkdir payloads
- symlink:
ln -s /home/user/repos/3ds_browserhax_common/3ds_arm11code.bin ./payloads/3ds_arm11code.bin
- or copy:
cp -p repos_dir/3ds_browserhax_common/3ds_arm11code.bin ./payloads/3ds_arm11code.bin
- Example:
- Change
Just run the script again. It won't overwrite the config file, so you'll only need to recompile browserhax if it has changed (not necessary if running the auto version).