Tutorial  Updated

Using "smashhax" with Linux

If you can use the browser, I suggest that you use the new browserhax (up to 11.0.0-33!) in the meantime.

Try out Ubuntu 15.04: http://old-releases.ubuntu.com/releases/15.04/

This requires a New 3DS. The demo version doesn't work and is patched. If you have 1.1.3 or newer delete/disable the update data.

officially called smashbroshax sometimes smashax
Here is a new tool I call smashbroshax-helper. It is a graphical interface for the exploit which simplifies most of the process of broadcasting the packet. It requires almost no setup outside of creating a bootable Linux USB/DVD.

Important notes:
  • This does not work on Fedora or Red Hat-based distributions because aircrack-ng needs to be compiled on it (and I can't figure out how to install the needed things).
  • Don't use a virtual machine!
  • This probably will never work on Old 3DS.
Download smashbroshax-helper beta

It is recommended that you use a live Ubuntu 15.04 image. Versions 15.10+ have issues. http://old-releases.ubuntu.com/releases/15.04/
  1. Create a bootable USB/DVD with a Linux distribution (there are various guides online).
  2. If possible, get a second USB/SD card/storage device, download and save the above .zip to it.
    • Don't extract the contents of it to the USB device, as it might cause problems. Just save the .zip file to it.
    • If you can't do this, you'll have to connect to the Internet while in Linux to download it.
    • If using a bootable USB, make sure you can use two ports at a time. Don't take out the Linux USB while it is being used!
  3. Restart your computer and run the bootable USB/DVD you created.
  4. Extract the contents of the .zip to the Desktop.
  5. Open the smashbroshax-helper folder and double click "smashbroshax.sh".
  6. Follow the on-screen prompts.
  7. If everything goes well, you should now have homebrew!
Video demonstration, from boot to shutdown:

from https://gbatemp.net/threads/tutorial-using-smashhax-with-linux.397194/page-9#post-5842512


If you would like the full tutorial, involving terminal usage and compiling:
To reverse the changes to your wireless interface and remove issues connecting to networks after, rebooting your system or changing it to "Managed" instead of "monitor" should fix it. How to do that is in the second to last section.



@Cydget made a script that condenses most of this into a script. I have not tried it myself yet but it seems to work for others.
So, I made a little script for this. If anybody wants it, then unzip this file and read the readme. And yes, I like to pipe things. http://www.mediafire.com/download/oulnubnzkk9g3i0/smashhaxEZ.zip

Requirements
  • Any Linux distribution should do (this has only been tested with Debian-based distributions). Windows and OS X users should wait or find a method for now, sorry!
    • Please do not use Linux in a virtual machine, it likely won't give direct access to your wireless card. Dual boot or use a live USB/disk.
    • The recommended distro to use is Ubuntu 15.04 (link to Ubuntu MATE 15.04).
  • A Wi-Fi-capable wireless card.
  • Super Smash Bros. for Nintendo 3DS Full or Demo.
  • New 3DS. This does not work on Old 3DS.
  • Patience. The hax is sort-of unreliable so your game will most likely crash a few times.
  • Recommended: Another device to access the internet (phone, tablet, computer, console).
Preparing
  • Install these packages using your package manager. For example, "apt-get" for Debian-based distributions (including Ubuntu).
    Code:
    openssl libssl-dev libnl-genl-3-200 libnl-genl-3-dev libnl-3-200 libnl-3-dev pkg-config
  • Find your wireless card's interface by opening a terminal and using the command "ip link". It would be something like wlan0 or wlp3s0.
    Code:
    ian@ian-VPCEG34FX:~/Desktop/aircrack-ng-1.2-rc2/src$ ip link
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
        link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    3: wlan0: <NO-CARRIER,BROADCAST,ALLMULTI,PROMISC,NOTRAILERS,UP,LOWER_UP> mtu 1500 qdisc mq state DORMANT mode DORMANT group default qlen 1000
        link/ieee802.11/radiotap xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
  • You probably already have it, but get the homebrew starter kit and place it on your SD card.
  • Download the smashhax .pcap files from the releases section of the smashbroshax repository.
  • Determine the .pcap file to use. This should be straightforward using the file names.
    The built beacon-hax pcaps are located under "pcap_out/". In the filenames, "vXYZ" means game-version "vX.Y.Z". Full-game filenames for USA include "gameusa", while the other regions filenames include "gameother".
  • Get the "Otherapp payload" from the Homebrew Launcher site and save it to "smashpayload.bin" at the root of your SD card.
  • Download and extract aircrack-ng's latest release source.
  • Save aireplay-ng.patch from the smashbroshax repository in the folder "aircrack-ng-1.2-rc2".
Compiling aircrack-ng/aireplay-ng
  • Open a terminal and go to the "aircrack-ng-1.2-rc2" folder.
  • Use the command "patch src/aireplay-ng.c < aireplay-ng.patch". If you get the following then it has succeeded.
    Code:
    patching file src/aireplay-ng.c
    Hunk #1 succeeded at 560 (offset 1 line).
    Hunk #2 succeeded at 573 (offset 1 line).
  • Run "make" and wait. The program should be compiled with the patch now. If you get the following as the last line then it has succeeded.
    Code:
    make[1]: Leaving directory '/path/to/aircrack-ng-1.2-rc2/src'
The moment of truth
  • Run these 3 terminal commands in order, using the wireless interface (from "ip link") you found earlier.
    sudo ifconfig wireless_interface down
    sudo iwconfig wireless_interface mode monitor
    sudo ifconfig wireless_interface up
    sudo iwconfig wireless_interface channel 6​
    (the last line was suggested by @difool. and might make the payload trigger faster)
  • Enter the "src" folder in your terminal.
  • Run the following command to start broadcasting the packet: "sudo ./aireplay-ng --interactive -r /path/to/smashbros_version_beaconhax.pcap -h 59:ee:3f:2a:37:e0 -x 10 wireless_interface"
    Use the .pcap file and wireless interface you found out earlier.
  • On the 3DS system, start the game, then choose Smash and Group. Wait for the magic to happen.
Encountering errors? Something confusing?
  • Does running aireplay-ng end with "End of file"? You might be running your installed version of aircrack-ng. Don't forget the ./ for "sudo ./aireplay-ng ..."!
  • Please tell me the distribution you are using and the error you've encountered. This will help me fix your issue faster.
  • If you don't get something, don't hesitate to point it out! I want to help anyone I can.
  • Did you spot an inaccuracy or mistake I made? It would be great if you can tell me that too.
  • This was before the Otherapp payload selector was added to the HBL site. This is kept here for legacy reasons or something.
    • Determine what file you need to get from the Homebrew Launcher Payload section:
      With the release builds, the hax loads the payload from SD "/smashpayload.bin". This should contain the hb-launcher(https://smealum.github.io/3ds/) otherapp payload. Until there's a proper otherapp payload selector on the hb-launcher site, the payload can be downloaded from the following URL(see also https://github.com/smealum/sploit_installer):
      FIRMVER values(without quotes):
      • "POST5" = non-New3DS
      • "N3DS" = New3DS
      REGION values(without quotes):
      • "U" = USA
      • "E" = EUR
      • "J" = JPN
      MENUVER values(without quotes):
      • "11272": Non-JPN, system-version v9.0.
      • "12288": System-version v9.2.
      • "13330": System-version v9.3.
      • "14336": System-version v9.4.
      • "15360": System-version v9.5.
      • "16404": System-version v9.6.
      • "17415": System-version v9.7.
      • "20480_usa": USA, system-versions v9.9-v10.0.
      • "19456": Non-USA, system-versions v9.8-v10.0.
      MSETVER values(without quotes):
      • "8203": System-versions below v9.6.
      • "9221": System-versions starting with v9.6.
      For example, the payload URL for New3DS USA 9.9.0-X - 10.0.0-X is:https://smealum.github.io/ninjhax2/Pvl9iD2Im5/otherapp/N3DS_U_20480_usa_9221.bin
      The end result is a file named "smashpayload.bin" at the root of your SD card.

You are allowed to reproduce/reprint this tutorial, as long as a link back to this page (https://gbatemp.net/threads/tutorial-using-smashhax-with-linux.397194/) is included.
 
Last edited by ihaveahax,

ccccchoho

New Member
Newbie
Joined
May 9, 2016
Messages
2
Trophies
0
Age
36
XP
51
Country
Hong Kong
Hi all,
I have problem when "make" aircrack-ng.

Code:
ubuntu-mate@ubuntu-mate:~/Desktop/aircrack-ng-1.2-rc2$ make
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
make -C src all
make[1]: Entering directory '/home/ubuntu-mate/Desktop/aircrack-ng-1.2-rc2/src'
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -Iinclude   -c -o aircrack-ng.o aircrack-ng.c
make[1]: gcc: Command not found
<builtin>: recipe for target 'aircrack-ng.o' failed
make[1]: *** [aircrack-ng.o] Error 127
make[1]: Leaving directory '/home/ubuntu-mate/Desktop/aircrack-ng-1.2-rc2/src'
Makefile:25: recipe for target 'all' failed
make: *** [all] Error 2

I do the smashbroshax in linux after I failed to use smachbroshax helper (get no error but TOTALLY no respond when sending the package using the helper). But when it comes to aircrack-ng part, I failed to "make" the files.
I am using killer E2200 11ac wireless and my N3ds is currently in 10.7.32J.
Hope anyone can tell me what I have done wrong or what files I missed. Thanks. =(
 

Darukeru

Well-Known Member
Member
Joined
Apr 30, 2016
Messages
143
Trophies
0
Location
Yann
XP
982
Country
Mexico
Hi all,
I have problem when "make" aircrack-ng.

Code:
ubuntu-mate@ubuntu-mate:~/Desktop/aircrack-ng-1.2-rc2$ make
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
make -C src all
make[1]: Entering directory '/home/ubuntu-mate/Desktop/aircrack-ng-1.2-rc2/src'
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
/bin/sh: 1: gcc: not found
expr: syntax error
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0  -DCONFIG_LIBNL30 -DCONFIG_LIBNL -I/usr/include/libnl3 -Iinclude   -c -o aircrack-ng.o aircrack-ng.c
make[1]: gcc: Command not found
<builtin>: recipe for target 'aircrack-ng.o' failed
make[1]: *** [aircrack-ng.o] Error 127
make[1]: Leaving directory '/home/ubuntu-mate/Desktop/aircrack-ng-1.2-rc2/src'
Makefile:25: recipe for target 'all' failed
make: *** [all] Error 2

I do the smashbroshax in linux after I failed to use smachbroshax helper (get no error but TOTALLY no respond when sending the package using the helper). But when it comes to aircrack-ng part, I failed to "make" the files.
I am using killer E2200 11ac wireless and my N3ds is currently in 10.7.32J.
Hope anyone can tell me what I have done wrong or what files I missed. Thanks. =(
Is gcc already installed in your Linux OS?
 

ccccchoho

New Member
Newbie
Joined
May 9, 2016
Messages
2
Trophies
0
Age
36
XP
51
Country
Hong Kong
Is gcc already installed in your Linux OS?

I am a newbie to Linus OS^^"
I use ubuntu-mate-16.04 and make it a bootable USB disk drive. After loaded to ubuntu mate, I just follow the instructions in this post step by step untill that error occurred.
It might be the problem of my lan card. I have to update the driver of it under Windows 10 to get it fully function. (It had been lagging frequently)
 

SuperVioshi

Active Member
Newcomer
Joined
Nov 27, 2013
Messages
35
Trophies
1
Age
29
XP
297
Country
United States
So I've having issues with getting this to function. Running an N3dsXL with 10.7.0-32U, Smash V.1.0.0. Whenever I run the helper system it runs and works, but the pcap for 1.0.0. never seems to do anything,though the Terminal shows it sending packets constantly nothing happens on the console end. I decided to try the pcap's for 1.0.2 and 1.1.2, they seem to reach the console and cause it to crash and reboot(Since it's not the proper version), but 1.0.0 doesn't.Anyone have a suggestion?

EDIT: Small update, now I have it working, but it's still crashing then restarting, despite using a v1.0.0. pcap on a v1.0.0 cart, I'll keep making an attempt at it since I seem to be making progress, still any help is appreciated
 
Last edited by SuperVioshi,

Coolleon

New Member
Newbie
Joined
Apr 9, 2014
Messages
1
Trophies
0
Age
23
XP
86
Country
Hey guys, I am running ubuntu 16.04 using a bootable usb but when I run smashbroshax.sh, it just opens in Geedit and says that if im reading this, im doing something wrong. Can someone please help?
 

Attachments

  • Screenshot from 2016-05-12 20-38-34.png
    Screenshot from 2016-05-12 20-38-34.png
    111.4 KB · Views: 200
Last edited by Coolleon,

Darukeru

Well-Known Member
Member
Joined
Apr 30, 2016
Messages
143
Trophies
0
Location
Yann
XP
982
Country
Mexico
Hey guys, I am running ubuntu 16.04 using a bootable usb but when I run smashbroshax.sh, it just opens in Geedit and says that if im reading this, im doing something wrong. Can someone please help?
Execute it trough the terminal, google how to run .sh files if you need to.
 

wasp604

New Member
Newbie
Joined
Oct 19, 2012
Messages
1
Trophies
0
XP
74
Country
United States
I just tried this with my New 3DS, but I'm at 11.0.whatever.
It doesn't work, but I'm not sure it's because of that update.

I'm not sure, first of all, how to tell which version of smash I have.
I also am not sure which payload to use, since there are none at 11 yet.

Patience is appreciated.

If it is in fact the 11.0 update, then I understand that I will probably just have to wait for another exploit.

Thank you for any assistance.

p.s. Do you think the new browserhax might have a better shot with 11.0?

--------------------- MERGED ---------------------------

Hey guys, I am running ubuntu 16.04 using a bootable usb but when I run smashbroshax.sh, it just opens in Geedit and says that if im reading this, im doing something wrong. Can someone please help?
I assume you don't care about keeping ubuntu's settings pristine, so...

one way to do it is, once you have the file visible in the file viewer, go to edit (upper left)>preferences>behaviour>executables and switch to run
then just double click it again, after closing it.
 

Guriam

Active Member
Newcomer
Joined
Mar 24, 2016
Messages
40
Trophies
0
Age
30
XP
55
Country
I somehow can´t start this. When I double click the .sh file, it only opens Gedit, and when I execute it from Terminal, it doesn't start too.

I just tried this with my New 3DS, but I'm at 11.0.whatever.
It doesn't work, but I'm not sure it's because of that update.

I'm not sure, first of all, how to tell which version of smash I have.
I also am not sure which payload to use, since there are none at 11 yet.

Patience is appreciated.

If it is in fact the 11.0 update, then I understand that I will probably just have to wait for another exploit.

Thank you for any assistance.

p.s. Do you think the new browserhax might have a better shot with 11.0?

--------------------- MERGED ---------------------------


I assume you don't care about keeping ubuntu's settings pristine, so...

one way to do it is, once you have the file visible in the file viewer, go to edit (upper left)>preferences>behaviour>executables and switch to run
then just double click it again, after closing it.

Read the previous posts please.
 

Metalchilla

Well-Known Member
Newcomer
Joined
May 17, 2016
Messages
57
Trophies
0
Age
30
XP
161
Country
United States
hi guys, so im using ubuntu 14.04.4 LTS because thats what the op suggested (im doing it on a bootable usb)
i followed every step the op did but cant get it to work. it just opens in gedit. the box with the "alow executing as program" was already checked.
i dont know how to open it up in terminal too.
should i just get a newer version of ubuntu?
i heard somewhere that "files opened in Nautilus are now opened in gedit by default rather than prompting the user to execute them"
EDIT: got it to work by getting ubuntu mate. NOW ADD SUPPORT FOR VERSION 1.0.1!
i dont know how to downgrade super smash bros and thats the only version i could get
 
Last edited by Metalchilla,

beejay

Member
Newcomer
Joined
May 20, 2016
Messages
6
Trophies
0
Age
35
XP
41
Country
United States
Right now I am using a New 3DS on 11.0.0-33, smash version 1.1.5, Ubuntu 16.04 which is installed on a partition on my laptops hard drive. I can't seem to get smash helper running for some reason. Does anyone know if something I am using is incompatible? I'm new to this scene so I can't figure out if there's something wrong
 

ihaveahax

Well-Known Member
OP
Member
Joined
Apr 20, 2015
Messages
6,069
Trophies
2
XP
7,827
Country
United States
Right now I am using a New 3DS on 11.0.0-33, smash version 1.1.5, Ubuntu 16.04 which is installed on a partition on my laptops hard drive. I can't seem to get smash helper running for some reason. Does anyone know if something I am using is incompatible? I'm new to this scene so I can't figure out if there's something wrong
disable/delete the update, since 1.1.3 was the version that fixed it I think.
 

beejay

Member
Newcomer
Joined
May 20, 2016
Messages
6
Trophies
0
Age
35
XP
41
Country
United States
disable/delete the update, since 1.1.3 was the version that fixed it I think.
Thank you. The tutorial says that I should boot Linux from a thumb drive but I already have it installed on a partition on my hardrive. That shouldn't effect it, right?
 

Soundmaniac

New Member
Newbie
Joined
May 21, 2016
Messages
4
Trophies
0
Age
35
XP
53
Country
Belgium
Any reports that this allows you to downgrade from 10.7 to 9.2? I've been trying for a while and it doesn't let me downgrade, always gets stuck at "hax init..." or whatever the first step is in older/other updaters.

My info:
3ds firmware: 10.7.0-32E
Smash version: 1.0.1 (EU)

Tested updaters:
PlaiSysUpdater
sysUpdater
an older version of sysUpdater
SafeSysUpdater

Do I have to get Ocarina of Time? Also, if I were to use OoT would I need a save dongle or can I use the oot3dhax_installer through smashbroshax instead?

EDIT:
Was able to get my hands on OoT, installed OoT3dHax through smashhax and it allowed me to downgrade to 9.2 using SafeSysUpdater
 
Last edited by Soundmaniac,

Darukeru

Well-Known Member
Member
Joined
Apr 30, 2016
Messages
143
Trophies
0
Location
Yann
XP
982
Country
Mexico
Any reports that this allows you to downgrade from 10.7 to 9.2? I've been trying for a while and it doesn't let me downgrade, always gets stuck at "hax init..." or whatever the first step is in older/other updaters.

My info:
3ds firmware: 10.7.0-32E
Smash version: 1.0.1 (EU)

Tested updaters:
PlaiSysUpdater
sysUpdater
an older version of sysUpdater
SafeSysUpdater

Do I have to get Ocarina of Time? Also, if I were to use OoT would I need a save dongle or can I use the oot3dhax_installer through smashbroshax instead?
Yes, you can use OoT3dhax_installer through smashhax, it's compatible even with the oot3d digital version, I used it.
But sadly the downgrade didn't worked for me, once it rebooted, I saw the "An error ocurred" error black screen, then I had to update through recovery mode, now I'm on fw 11.0 and I have no more chances to try a downgrade :(
Good luck!

Edit: And yes, you have to buy OoT or Cubic Ninja, smash doesn't work for downgrades I tried it a lot of times before buying OoT.
 
Last edited by Darukeru,
  • Like
Reactions: Quin452

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @AncientBoi, https://www.youtube.com/watch?v=Z9p0iK877W4