Status
Not open for further replies.
Tutorial  Updated

3DS Homepass device works with existing WiFi network, AND it hosts Wii U exploit too!

Please scroll down to a few posts below for ready-to-use files, without reading how it is made to work.

I know it is late to the homepass party, but it is always good to have choice isn't it ;)

What this guide is:
Some basic instructions on how to make the captioned device. It is not a step-by-step guide for beginners

What the result device is:
A small hardware (~$12, I got it in China for $8) that connects to your WiFi network, then broadcasts 'attwifi' for 3DS homepass.
It also serves WiiU exploit files, so it is essentially a 2-in-1 device!

What it's for:
Someone without a raspberry pi / rooted android, or does not have control to the router, or don't want to turn the PC on just for homepass, or just want a cheap set-and-forget homepass device.

What you need:
ZSUN WiFi microSD reader
Basic knowledge in linux commands

Tools:
microSD (you only need it for flashing OpenWRT and reset the device)
PC
USB extension cable (not required, but will be handy when you mess something up)
patience

Note: If you happen to mess up the settings after flashed OpenWRT to the device and can no longer connect to it, just insert and eject the uSD card from the device while the LED is blinking (around 5 seconds after power up). The LED will blink even faster, and after 30 seconds it will reset. This could be done with a normal USB port, but using an extension cable makes it MUCH MUCH easier.

1. Obtain the said WiFi uSD reader
2. Flash OpenWRT onto it (https://wiki.hackerspace.pl/projects:zsun-wifi-card-reader:factory-update)
3. remove uSD card
4. Connect to the SSID openwrt, go to http://192.168.1.1, set root password
5. change default subnet from 192.168.1.X to something else if your router is using the same subnet. Connect again with the new IP.
6. put openwrt-homepass script and MAC table on the device, set cron job (https://github.com/Nephiel/openwrt-homepass)
Note: I changed all SSID to attwifi. Added single quotes around ap in line 14 of the script, becomes [grep "mode='ap'"]
7. edit the config files to make the device connect to your existing WiFi (best if it is a guest network that is isolated from your main computer network) (https://forum.piratebox.cc/read.php?22,16780)
Note: In /etc/config/wireless shown on the website, the second block is your existing WiFi, the third block should describe attwifi without password. MAC filtering could be added. I also added the default MAC address so it will boot up with a valid homepass MAC.

The following steps are for hosting WiiU exploit only:
https://gbatemp.net/threads/self-host-from-wiiu-any-size-sd-card-fully-self-contained.421341/
8. Comment out the https in /etc/config/uhttpd
9. Transfer exploit files to internal memory using SCP
10. Set up the Wii U to connect to attwifi and launch exploit from browser. At default it will have network access, REMEMBER TO BLOCK INTERNET ACCESS of your WiiU's MAC in OpenWRT, you never know when 5.5.2 will be released!! (https://bokunokeiken.wordpress.com/2015/06/27/how-to-block-device-on-openwrt-based-on-mac-address/)
Note: Network connection will drop when the device is changing MAC address. So sometimes the console will fail to connect to the device, which is normal.

The following step was not implemented but worth studying:
11. Add a script to make it search for next WiFi network when the default one is not in range (useful if you move it to multiple places, such as home and work) https://forum.openwrt.org/viewtopic.php?id=43352 for some ideas

And finally, you get a tiny device that allow you homepass with most WiFi networks!
(I am not sure if it works with those networks that require additional login, though)

Background: Already have a Raspberry Pi 2 as a homepass device, but wishes to free it for Kodi player. Also have a ZSUN WiFi dongle that serves exploit files for my Wii U.

Disclaimer: I am not living in China. I am not a Chinese. I am not affiliated with ZSUN or OpenWRT or Nintendo.
And finally, I am not an expert in linux or networking. I will try but may not be able to answer every question.
 
Last edited by gualala,

TarkinMX

Well-Known Member
Member
Joined
Nov 4, 2009
Messages
197
Trophies
0
XP
325
Country
United States
My router has dd-wrt on it, would this work on it as is or would I have to take different steps because it's not openwrt?
 

gualala

Well-Known Member
OP
Newcomer
Joined
May 2, 2011
Messages
64
Trophies
0
XP
213
Country
United States
Thanks for this! Mind sharing the edited files from step 6 and 7?
Attached with this post.
Assume you're using Windows and the device is flashed to OpenWRT in its default state. The files are edited using Notepad++ or other Linux-aware text editor:

0. Connect to Openwrt network
1. go to https://192.168.1.1 in your browser and change the password
2. Extract the archive, open etc\config\wireless, change the WiFi SSID & passkey so it could connect to an existing router for internet. Also edit the allowed MAC addresses to block unauthorized entry. Don't forget to add the MAC of the computer that configures the device!
3. (Wii U Only) open etc\config\firewall, change the second-to-last line to your WiiU's MAC address. This will block the WiiU's access to the internet.
4. Upload the modified files to the / folder using WinSCP. Replace the current files when asked. Mine default to the /root/ folder upon login, so you may need to go up one level before you upload the files
5. (Wii U Only) upload the static exploit files to /www/ folder
6. In WinSCP, chmod the /usr/bin/homepass.sh to 755
7. Login via SSH. Type "/etc/init.d/cron enable ; reboot now" without quotes to enable MAC rotation every 5 minutes

Note: If it could not find your WiFi network, the attwifi network will not appear.
Note2: The IP address of ZSUN will be changed to 192.168.200.1 after step 7. Modify it in etc\config\network before step 4 if your router is using this same subnet.

My router has dd-wrt on it, would this work on it as is or would I have to take different steps because it's not openwrt?
Sorry I am not an expert in this area. This post is dedicated to the ZSUN device.
 

Attachments

  • zsun.zip
    4.7 KB · Views: 333
Last edited by gualala,

Pecrow

Well-Known Member
Member
Joined
Jun 23, 2015
Messages
1,137
Trophies
0
Age
33
XP
640
Country
United States
I want to do this so bad, i wonder if I can get all of this to run using an old Wii running Linux :-D a dedicate wii for use of my other wii u and 3ds.
 

Attainable

Well-Known Member
Newcomer
Joined
Aug 24, 2007
Messages
75
Trophies
0
Age
30
XP
303
Country
United States
I'm running into issues updating the firmware. I keep getting status -2 on the update firmware.

File directory on the mSD card in the zsun is just a .update folder, and inside of it there is the SD100 file....any ideas?
 

misterion

Well-Known Member
Newcomer
Joined
Nov 22, 2005
Messages
83
Trophies
1
XP
760
Country
Belgium
It seems be be deleted on booting. I got over it by:
  1. prepare the folder as "x.update" with the file inside
  2. Connect to WiFi
  3. http://10.168.168.1:8080/goform/Setcardworkmode?workmode=0
  4. log in under http://10.168.168.1
  5. rename x.update to .update directory on Zsun
  6. http://10.168.168.1:8080/goform/upFirmWare
  7. I did not see any flashing LEDs and just waited a minute (old : Wait for long LED flash, then multiple fast flashes - now OpenWRT is booting for the first time.)
  8. disconnected from usb power
  9. re-USB powered … (remember that the network was changed do openWrt and new IP by the script )
  10. PROFITed!
Hope that helps !
 

misterion

Well-Known Member
Newcomer
Joined
Nov 22, 2005
Messages
83
Trophies
1
XP
760
Country
Belgium
Can somebody here please explain the exact steps to alter this script above

to change the wireless network connection if it gets out reach ... so it will connect to another network SSID .. so you can use the same device at home ... on work .. at your friends home ....

I would very appreciate that ! Thank you
 

Attainable

Well-Known Member
Newcomer
Joined
Aug 24, 2007
Messages
75
Trophies
0
Age
30
XP
303
Country
United States
It seems be be deleted on booting. I got over it by:
  1. prepare the folder as "x.update" with the file inside
  2. Connect to WiFi
  3. http://10.168.168.1:8080/goform/Setcardworkmode?workmode=0
  4. log in under http://10.168.168.1
  5. rename x.update to .update directory on Zsun
  6. http://10.168.168.1:8080/goform/upFirmWare
  7. I did not see any flashing LEDs and just waited a minute (old : Wait for long LED flash, then multiple fast flashes - now OpenWRT is booting for the first time.)
  8. disconnected from usb power
  9. re-USB powered … (remember that the network was changed do openWrt and new IP by the script )
  10. PROFITed!
Hope that helps !
Yeah this helped a lot. I didn't know you could browse it via that address in your Step 4. Worked out perfectly :)
 

misterion

Well-Known Member
Newcomer
Joined
Nov 22, 2005
Messages
83
Trophies
1
XP
760
Country
Belgium
:D!

So now we must wait for someone to explain the network toggling thing ... No ideas? Wrong thread ? :gba:
 

gualala

Well-Known Member
OP
Newcomer
Joined
May 2, 2011
Messages
64
Trophies
0
XP
213
Country
United States
OK. The attwifi SSID was not available in the previous version if the target SSID is not found. The new files have incorporated the failover script, which you can still SSH to change config:

0. Connect to Openwrt network
1. go to https://192.168.1.1 in your browser and change the password
2. Extract the archive inside your PC, open etc\config\wireless, change the WiFi SSID & passkey so it could connect to an existing router for internet. Also edit the allowed MAC addresses to block unauthorized entry. Don't forget to add the MAC of the computer that configures the device!
3. (Wii U Only) open etc\config\firewall, change the second-to-last line to your WiiU's MAC address. This will block the WiiU's access to the internet.
4. Upload the modified files to the / folder using WinSCP. Replace the current files when asked. Mine default to the /root/ folder upon login, so you may need to go to the top level before you upload the files
5. (Wii U Only) upload the static exploit files to /www/ folder
6. In WinSCP, chmod both /usr/bin/homepass.sh AND /usr/bin/revert_to_AP.sh to 755
7. Unplug and replug the zsun device. Profit!

Note: It will generate an extra SSID "homepass-error-nonetwork" when the target wireless network is not available. You can connect to the device via SSH to make changes. The SSID attwifi is still available to allow WiiU exploit to work.
Note2: It takes time to retore from the error state.

Reference: https://forum.openwrt.org/viewtopic.php?pid=309131#p309131


Back to Paper Mario Color Splash. Guess I won't touch anything 3DS-related for weeks...
 

Attachments

  • zsunnew.rar
    5.7 KB · Views: 258

MrKaralis

New Member
Newbie
Joined
Oct 12, 2016
Messages
3
Trophies
0
Age
44
Location
Cagliari
XP
123
Country
Italy
Have some problems making it work.
Here's what i did:
  1. Made a folder named "x.update" with the open wrt update in the first post
  2. Connected to Zsun wifi
  3. Set workmode 0 http://10.168.168.1:8080/goform/Setcardworkmode?workmode=0
  4. Logged in under http://10.168.168.1, opened the file manager and renamed x.update to .update. (i'm on windows) directory on Zsun
  5. Then i upgraded the firmware with http://10.168.168.1:8080/goform/upFirmWare and waited unti blinking was done
  6. Unpluged and reinserted the zsun
  7. Log in to 192.168.1.1, set the password and modified in Luci the subnet to 192.168.2.1 (it took a while to figure how)
  8. Connected with the new subnet and used WinSCP and uploaded the directories from the archive in the last post.
  9. Modified etc\config\wireless using WinSCP to match my wifi router ssid e password. Not setting anything mac related (Not interested)
  10. Used chmod 755 comand on both homepass.sh and revert_to_AP.sh via WINSCP
  11. Unplug the zsun.
Then when i plug the zsun again i can't connect and after a bit that network disappear from the Windows network list and don't appear again even if you unplug and plug again the zsun.
What i'm doing wrong? Please help
 

cmdwedge

Well-Known Member
Newcomer
Joined
May 10, 2006
Messages
47
Trophies
1
Location
Canberra, Australia
XP
346
Country
Australia
Just wanted to say thanks for these instructions. I used the zsunnew.rar file. Took me a little while to realise that yes, attwifi must be open for it to work - which explains the MAC filtering list.

Have had my little ZSUN running for 4 days now and have had more Streetpass hits than I can ever get through!

Thanks very much.

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

Have some problems making it work.
Here's what i did:
  1. Made a folder named "x.update" with the open wrt update in the first post
  2. Connected to Zsun wifi
  3. Set workmode 0 http://10.168.168.1:8080/goform/Setcardworkmode?workmode=0
  4. Logged in under http://10.168.168.1, opened the file manager and renamed x.update to .update. (i'm on windows) directory on Zsun
  5. Then i upgraded the firmware with http://10.168.168.1:8080/goform/upFirmWare and waited unti blinking was done
  6. Unpluged and reinserted the zsun
  7. Log in to 192.168.1.1, set the password and modified in Luci the subnet to 192.168.2.1 (it took a while to figure how)
  8. Connected with the new subnet and used WinSCP and uploaded the directories from the archive in the last post.
  9. Modified etc\config\wireless using WinSCP to match my wifi router ssid e password. Not setting anything mac related (Not interested)
  10. Used chmod 755 comand on both homepass.sh and revert_to_AP.sh via WINSCP
  11. Unplug the zsun.
Then when i plug the zsun again i can't connect and after a bit that network disappear from the Windows network list and don't appear again even if you unplug and plug again the zsun.
What i'm doing wrong? Please help

MrKaralis, if you look at the etc/config/wireless file, you will note that it is already setting MAC filtering to be on - and unless you have one of the two MAC addresses in the list, you cannot connect.

Upload the rar file contents (from the root).
Go into the control panel at 192.168.2.1.
Head over to your wireless settings and DISABLE MAC filtering.

Having said that.. I would get it up and running without MAC filtering but then enable it. Otherwise anyone can connect.
 

MrKaralis

New Member
Newbie
Joined
Oct 12, 2016
Messages
3
Trophies
0
Age
44
Location
Cagliari
XP
123
Country
Italy
Ooooh thanks! I live in a rural area and my neighbors are far away from my house so I guess I'll simply remove the mac filtering. TY so much!
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: https://youtu.be/MddR6PTmGKg?si=mU2EO5hoE7XXSbSr