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,

Toshivic

New Member
Newbie
Joined
Nov 27, 2016
Messages
2
Trophies
0
Age
35
XP
51
Country
United States
Can anyone help me with using this on Ubuntu mate 16.04 or Ubuntu 15.04? I tried updated ones on page 25 but I am getting ./lua53 and ./aireplay-ng command not found errors. I have installed lua5.3 and aircrack-ng.
 
Last edited by Toshivic,

abelxo

New Member
Newbie
Joined
Nov 27, 2016
Messages
3
Trophies
0
Age
31
XP
53
Country
United States
can someone help me?

i am on a macbook pro and i went to boot up linux using unbuntu and my mac is not recognizing unbuntu on my flashdrive. help?
 

abelxo

New Member
Newbie
Joined
Nov 27, 2016
Messages
3
Trophies
0
Age
31
XP
53
Country
United States
Have you tried making the Ubuntu image in a BIOS mode? Not the EFI.

how do you do that? im sorry im slightly new at this and learning still.

i used unetbootin to put ubuntu onto my usb. i tried to run ubuntu on my mac by alt+power and only my regular hard drive shows up.
 
D

Deleted User

Guest
Can anyone help me with using this on Ubuntu mate 16.04 or Ubuntu 15.04? I tried updated ones on page 25 but I am getting ./lua53 and ./aireplay-ng command not found errors. I have installed lua5.3 and aircrack-ng.
You have to be in the /src folder to find aireplay-ng
can someone help me?

i am on a macbook pro and i went to boot up linux using unbuntu and my mac is not recognizing unbuntu on my flashdrive. help?
not sure, i am not familiar with mac OS

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

Confused at how this works, you absolutely need a laptop for this right?
not necessarily, what you essentially need is a wi-fi card that can send packets.
Seems like I have a version 1.0.0 super smash version. Seems to return home after clicking "group" in super smash and doesn't boot to homebrew, but still continuouly sends packets. Any suggestions??
Do you have the payload named "smashppayload.bin" placed in the root of your sd card?
So i cant get it to work,the game crashes, "an error as ocurred" 2 seconds after entering the "group" screen. I am using the correct payload and otherapp (1.1.0 USA). What should i do? I have been trying for 5 hours.
I am not sure whats happening, do you mind if i see what is in the root of your sd card?
 

chompita239

Active Member
Newcomer
Joined
Sep 20, 2016
Messages
37
Trophies
0
Age
29
XP
71
Country
Argentina
You have to be in the /src folder to find aireplay-ng

not sure, i am not familiar with mac OS

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


not necessarily, what you essentially need is a wi-fi card that can send packets.

Do you have the payload named "smashppayload.bin" placed in the root of your sd card?

I am not sure whats happening, do you mind if i see what is in the root of your sd card?
Hey, i was reading the github page from yellow8s, smashhax DOES NOT WORK with catdriges that are no 1.0.0, so, i am f*cked because 1.1.0, i will buy an sky3ds and try....or better with freakyhax.
 

Willgheminass

The Ultimate Pink Lurker
Member
Joined
Nov 29, 2016
Messages
121
Trophies
0
Age
22
Website
rhylnzux.carrd.co
XP
1,773
Country
United States
Could someone help me please? Im kind of a noob with linux and I've been trying to do smashhax for 2 hours now. No, I have not screwed up my computer yet due to my stupidity. But I need help with this part, I press "Ok" after I get through to the part it says "A terminal window will now open with aireplay-ng. When it says "Use this packet ?", type y and press enter." After I press "Ok" this comes up in the terminal:
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211,
ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead. Make
sure RFMON is enabled: run 'airmon-ng start wlp2s0 <#>'
Sysfs injection support was not found either.
I don't know how to fix this, I repeat. I have spent 2 hours trying to do the entire tutorial. I am desperate for help right now. Thank you for reading -The_Provider
 

Willgheminass

The Ultimate Pink Lurker
Member
Joined
Nov 29, 2016
Messages
121
Trophies
0
Age
22
Website
rhylnzux.carrd.co
XP
1,773
Country
United States
Could someone help me please? Im kind of a noob with linux and I've been trying to do smashhax for 2 hours now. No, I have not screwed up my computer yet due to my stupidity. But I need help with this part, I press "Ok" after I get through to the part it says "A terminal window will now open with aireplay-ng. When it says "Use this packet ?", type y and press enter." After I press "Ok" this comes up in the terminal:
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211,
ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead. Make
sure RFMON is enabled: run 'airmon-ng start wlp2s0 <#>'
Sysfs injection support was not found either.
I don't know how to fix this, I repeat. I have spent 2 hours trying to do the entire tutorial. I am desperate for help right now. Thank you for reading -The_Provider
I am on smash 1.0.1 on a compatible firmware on a New 3DS XL btw
 

Willgheminass

The Ultimate Pink Lurker
Member
Joined
Nov 29, 2016
Messages
121
Trophies
0
Age
22
Website
rhylnzux.carrd.co
XP
1,773
Country
United States
I am on smash USA v 1.0.3 , which pcap would i use v102 or 104? I get the "an error has occured".
Do you mind helping me out first? Or do you not understand what I posted?
I am on smash 1.0.1 on a compatible firmware on a New 3DS XL btw
Wait! Im very close to completing this! My recent problem is this now:
wlp2s0 Intel + iwlwifi - [phy0]SIOCSIFFLAGS: Name not unique on network
I just need the solution to this problem and Ill be golden!
 

GeminiTH

Member
Newcomer
Joined
May 29, 2016
Messages
13
Trophies
0
Age
21
XP
68
Country
United States
I'm also having trouble. I deleted my update data for Sm4sh 3DS, I'm on a N3DSXL, I have all needed files on my microSD, I'm using Ubuntu 15.04 on a live USB, and I couldn't get the original smashbroshax-helper program to do ANYTHING AT ALL. The edited one works up until the part where the terminal is supposed to open, and then it just doesn't open it. Also, Aircrack really doesn't ever like me. Same with makefiles. How do i fix all these problems?

EDIT: Well, most problems are indeed fixed. HOWEVER, it stops at 73 packets sent.
 
Last edited by GeminiTH,
D

Deleted User

Guest
I'm also having trouble. I deleted my update data for Sm4sh 3DS, I'm on a N3DSXL, I have all needed files on my microSD, I'm using Ubuntu 15.04 on a live USB, and I couldn't get the original smashbroshax-helper program to do ANYTHING AT ALL. The edited one works up until the part where the terminal is supposed to open, and then it just doesn't open it. Also, Aircrack really doesn't ever like me. Same with makefiles. How do i fix all these problems?

EDIT: Well, most problems are indeed fixed. HOWEVER, it stops at 73 packets sent.
you may need to have a usb wireless card since most built-in into laptops do not work
 

shilofax

New Member
Newbie
Joined
Dec 5, 2016
Messages
2
Trophies
0
Age
28
XP
52
Country
United States
I am able to run the program via the Live USB. However, when I start sending packets, nothing happens on the N3DSXL. I have the payload file on the root of the SD. My program stops sending packets at ~115 packets. What can I do?
 

kumita-chan

Member
Newcomer
Joined
May 6, 2016
Messages
21
Trophies
0
Age
25
Location
Spain
XP
430
Country
I don't use a laptop. I use a desktop. Does my phone's wifi tether thing do the trick?
If you have tplink Wi-Fi card you can use it as hotspot with the drivers at least in windows. I don't know if they're available in Linux.

Sent from my HTC One M9 using Tapatalk
 

GeminiTH

Member
Newcomer
Joined
May 29, 2016
Messages
13
Trophies
0
Age
21
XP
68
Country
United States
tplink...? what's that? I have a realtek wifi thingy and a samsung galaxy j7 with wifi tethering availible.
 

kumita-chan

Member
Newcomer
Joined
May 6, 2016
Messages
21
Trophies
0
Age
25
Location
Spain
XP
430
Country
tplink...? what's that? I have a realtek wifi thingy and a samsung galaxy j7 with wifi tethering availible.
Well, in the tplink webpage you can download a tool to make you're PC's cars as a hotspot. Idk if there's one for realteks one, but you could try to search it. Sorry if I wrote badly, but I'm kinda drunk xD

Sent from my HTC One M9 using Tapatalk
 
D

Deleted User

Guest
tplink...? what's that? I have a realtek wifi thingy and a samsung galaxy j7 with wifi tethering availible.
I believe wifi tethering means that your phone is sending out a wifi signal to connect devices to, i am unsure if you can use it as a wireless card.

Can anyone help me with using this on Ubuntu mate 16.04 or Ubuntu 15.04? I tried updated ones on page 25 but I am getting ./lua53 and ./aireplay-ng command not found errors. I have installed lua5.3 and aircrack-ng.
also whoops, try just typing "gksudo" in terminal and if it says anything about ( apt install ), follow the instructions there then navigate to the folder where smashhaxhelper.sh is then run the command "gksudo smashhaxhalper.sh" or whichever the ".sh" name is then you can proceed as normal, though you may need a wireless card capable of injecting packets (if it stops at 70-120 packets sent then your card is not capable of injecting packets to the 3ds)
 

3lentropy

New Member
Newbie
Joined
Dec 13, 2016
Messages
4
Trophies
0
Age
26
XP
52
Country
Brazil
I tried using the helper in one of my laptops(a dell with ubuntu 16), but it would give an error when sending the packages. I tried again on an older laptop(a HP xubuntu this time) and the packages were being sent, but nothing happened on the 3ds. I have a New 3ds XL on 11.1-34U and deleted the smash update data(so I was using the 1.00 version in the helper/) and also have the payload named smashpayload in my microsd card. What can I do? Below is an image of the terminal
Screenshot_2016_12_13_16_33_18.png
s36ohgd4f
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Black_Manta_8bit @ Black_Manta_8bit: Oh @RedColoredStars yeah thats sad :sad: i feel it.