Tutorial [HOW-TO] Have a homemade Streetpass Relay

What method you are using?

  • Linux

    Votes: 93 7.9%
  • Android

    Votes: 133 11.4%
  • Router

    Votes: 226 19.3%
  • Windows

    Votes: 426 36.4%
  • A pony with a wifi antenna O.o?

    Votes: 292 25.0%

  • Total voters
    1,170
Status
Not open for further replies.

fenor

Active Member
Newcomer
Joined
Jun 29, 2007
Messages
26
Trophies
0
XP
200
Country
Italy
a little question. i tried the ubuntu method.
the dongle is called wlan1 i changed the entry in the config file (/etc/dnsmasq.conf ) according to it # Interface to bind to
interface=wlan1
i try to start the nintendo zone with the command
sudo ./home_zone spoof1 wlan1 eth0
. the mobile phone (android) find it with the right ssid
the 3ds don't find it
the only difference with the iwconfig in the tutorial is Tx-Power in the tutorial it's 15 in mine it's 20
the script is placed in the directory ~/3ds/relay. should i have it in the home directory?
am i missing something?
 

duke_srg

Well-Known Member
Member
Joined
Mar 1, 2011
Messages
1,862
Trophies
0
Age
44
Location
Moscow
XP
807
Country
Serbia, Republic of
Just tested script and fixed for WL500G custom firmware on WL500gP (1.9.2.7-d-r2624). Script is v3.3 now, there is no need to update on DD-WRT, there was not chages for it.

P.S. Will appreciate if someone will test with RT-Nxx-1.9.2.7-rtn-r5066
 

fenor

Active Member
Newcomer
Joined
Jun 29, 2007
Messages
26
Trophies
0
XP
200
Country
Italy
looks like my 3ds doesn't even find the connection. while my phone does. :\. if someone can point me in the right direction i'll be glad
 

ScizzlerMcNasty

New Member
Newbie
Joined
Aug 22, 2013
Messages
2
Trophies
0
Age
44
XP
51
Country
United States
i just want to say THANK YOU to anyone and everyone who has contributed to this amazing discovery. I was hesitant to try it because it's way out of my knowledge base lol, but i just kept at it and now i have a very efficient system using a mac computer. This is the first thing i have come to this site for and i have been blown away by how friendly and helpful everyone has been, even to brand new members. Anyway, i just wanted to show my appreciation for everyone's hard work and persistence, because i am eternally grateful for homepass!!!!!!!
 

turok4n64

Well-Known Member
Member
Joined
Nov 5, 2007
Messages
116
Trophies
0
XP
266
Country
United States
I am WiiDSmoker. Been leaving my 3DS on 24/7 to SP with people to help them out and would like help as well.

I need the remaining following USA locations:

Montana
Wyoming
North Dakota
South Dakota
Nebraska
Oklahoma
Louisiana
West Virginia
Vermont
Puerto Rico


Anyone want to help me get this? Change your 3DS location to that region then we StreetPass and change it again
 

Kitsunegi

New Member
Newbie
Joined
Aug 24, 2013
Messages
4
Trophies
0
Age
36
XP
51
Country
United States
Perhaps somebody would be kind enough to help me with this...? I've been trying various methods for the past few days with no success. First, I tried the virtual router manager on my laptop, found out I can't do hosted networks on it. Sad.

So, then I tried my router. I use a LinksysWRT54GS which, according to the database should be able to work with this. I change my SSID to attwifi and disable the security, and I get the Nintendo Zone notification to pop up on my 3DS. But that's obviously not enough, as I have to change my MAC address; this is where I'm getting issues. Under the MAC address clone section, I have the MAC of my router. If I change this, it freaks out and shuts off the internet, including my phone. The various tutorials I read say that this is my LAN MAC (I think? I'm VERY technologically impaired.) and that I need to change my WAN MAC to one of the MACs listed here in order to get any hits. Upon more investigation I found out that I should be doing something with the Wireless MAC filter? So I open that and there are options for enable and disable. When I enable it, I can input MACs into a filter list, but I'm also forced to choose 'allow only PCs listed to access the wireless network.' I tried to follow some other tutorials and put my the MAC of my 3ds into it, but it doesn't work. On the same screen where I need to input the MAC, it also wants me to put in an IP address or something... I am so confused.

Do I have to install DD-WRT? I have no clue what it is but I heard it can be harmful if done wrong, and this is not my router, it's my parents so I don't want to screw anything up.

Also, would me getting a wifi usb adapter be of any help?

Again, if anybody would be kind enough to help me (preferrably with baby-steps; as stated earlier I'm VERY bad with technology.), I would be in their debt. I am in DESPERATE need of a streetpass to revive my PMD team on floor 97 on the 99-floor dungeon...

Thanks in advance, and sorry for being so incompetent :(
 

Kitsunegi

New Member
Newbie
Joined
Aug 24, 2013
Messages
4
Trophies
0
Age
36
XP
51
Country
United States
Awh, that sounds way too complicated for me... guess I'll just have to take a trip to McDonald's until I get lucky. Unless a wifi usb adapter would work, as previously inquired.
 

bastalle

Member
Newcomer
Joined
Jun 16, 2013
Messages
11
Trophies
1
Age
46
XP
459
Country
have managed to setup a hotspot using an old xp machine and nintendo wifi dongle. the 3ds shows a hotspot but i dont seem to be getting any hits, whats the best mac addy to test with? am using 4E53504F4F47 at the mo
 

Lyomak

Well-Known Member
Member
Joined
Jun 24, 2009
Messages
436
Trophies
1
Age
39
Location
Bogotá
Website
twitch.tv
XP
389
Country
Colombia
This is for routers with DD-WRT firmware, micro build is not supported yet
The v3.3 script is the main now!

This script also can be used with ASUS WL-5xx and RT-N1x custom firmware

Insert script in Administration - Commands (for WL500G custom firmware just use Telnet/SSH client or use three commands one-by-one in System Setup - System Command ):
Code:
wget -O /tmp/nzone.sh http://duke-srg.dyndns.org/3ds/nzone/nzone.sh; chmod +x /tmp/nzone.sh; /tmp/nzone.sh
and push hit Apply Settings. This script will install the MAC changing script to your router, set up cron to run the script and reboot router to apply changes. After reboot you can change the MAC lists to get and time period to run the MAC change, just go to Administration - Management - Cron and edit the line. You can change the second asterisk with the working hours of the script, e.x. "* 1-7 * * *..." will run MAC change from 1:00 to 07:59 (am). Do not change the first asterisk, this script designed to run every minute and calculate if it is time to change MAC based on the MAC quantity and cooldown time. The script parameter (by default 49,BASE16,GBATEMP) is a comma-separated address-list identifiers. This script will connect to my server and get your selected lists. For now only these lists are available:
BASE1 - the common prime "@SPOOF" address
BASE16 - the common prime 16 addresses range
BASE256 - the prime 256 addresses range
1 to 3 digit number - the Country Code for Nintendo Zone official hot spot MACS. For now only "49" for USA is available.
3 character game CTR code - to have a desired game title streetpass data. See example below or use my compilation of StreetPass CTR codes. Use only CTR codes for the games you have enabled streetpass!
GBATEMP - custom addresses from GBATEMP users static MAC adresses.
This script will cycle randomly through all MACs in list, one time per each MAC, and try to update list from the server.
StarWars III have a CRT code "ALG", it is displayed on a sticker in the middle of a character string below, and printed at the beggining of the string at the back of a gamecard:
Gamecard.jpg
Insert script in Administration - Commands
Code:
echo -e "#!/bin/sh\nMACS=/tmp/nzone.macs\n[ -f \$MACS ] || wget -q -O \$MACS \"http://duke-srg.dyndns.org/3ds/nzone?\$1\"\nMACNUM=\$(cat \$MACS | wc -l)\n[ \$MACNUM != 0 ] || exit\nRANDOM=\$(head /dev/urandom | hexdump -d | head -n 1 | cut -c 11-15)\nMACNUM=\$((\$RANDOM%\${MACNUM}+1))\nMAC=\$(head -n \$MACNUM \$MACS | tail -n 1)\nWLINT=\$(nvram get wl0_ifname)\nAPDCNF=/tmp/\${WLINT}_hostap.conf\nAPDPID=/var/run/\${WLINT}_hostapd.pid\nif [ -e \$APDCNF ]; then\nkill \$(cat \$APDPID)\nsleep 3\nsed -ri s/bssid=.*/bssid=\$MAC/ \$APDCNF\nhostapd -B -P \$APDPID \$APDCNF\nelse\nifconfig \$WLINT down\nifconfig \$WLINT hw ether \$MAC\nifconfig \$WLINT up\nfi" >/tmp/nzone; chmod 555 /tmp/nzone
hit Save Startup
Code:
#!/bin/sh
MACS=/tmp/nzone.macs
[ -f $MACS ] || wget -q -O $MACS "http://duke-srg.dyndns.org/3ds/nzone?$1"
MACNUM=$(cat $MACS | wc -l)
[ $MACNUM != 0 ] || exit
RANDOM=$(head /dev/urandom | hexdump -d | head -n 1 | cut -c 11-15)
MACNUM=$(($RANDOM%${MACNUM}+1))
MAC=$(head -n $MACNUM $MACS | tail -n 1)
WLINT=$(nvram get wl0_ifname)
APDCNF=/tmp/${WLINT}_hostap.conf
APDPID=/var/run/${WLINT}_hostapd.pid
if [ -e $APDCNF ]; then
kill $(cat $APDPID)
sleep 3
sed -ri s/bssid=.*/bssid=$MAC/ $APDCNF
hostapd -B -P $APDPID $APDCNF
else
ifconfig $WLINT down
ifconfig $WLINT hw ether $MAC
ifconfig $WLINT up
fi
In Administration - Management - Cron insert:
Code:
*/15 * * * * root /tmp/nzone 49,BASE16
and change script parameter. The script parameter (in example above is 49,BASE16) is a comma-separated address-list identifiers. This script will connect to my server and get your selected lists. For now only these lists are available:
BASE1 - the common prime "@SPOOF" address
BASE16 - the common prime 16 addresses range
BASE256 - the prime 256 addresses range
1 to 3 digit number - the Country Code for Nintendo Zone official hot spot MACS. For now only "49" for USA is available.
3 character game CTR code - to have a desired game title streetpass data. See example below or use my compilation of StreetPass CTR codes. Use only CTR codes for the games you have enabled streetpass!
GBATEMP - custom addresses from GBATEMP users static MAC adresses.
hit Apply Settings. Now your router will change to a random MAC from a selected list every 10 minutes starting from 1:00 to 7:50
23.08 v.3. script updated - compatibility with WL500G custom firmware checked and fixed
22.08 v.3. script updated, MAC time change bug fixed
20.08 v3.1 script is the main now
16.08.2013 v2 script is the main one
15.08.2013 (edit 2) Fixed probable arithmetic error bug
15.08.2013 improved compatibility with DD-WRT mini builds
14.08.2013 added sleep to wait hostapd stop, greatly reduce time to stop-start AP on Atheros routers
Code:
#!/bin/sh
TITLES="OO@OOAOOBOOCOODOOEOOFOOGOOHOOIOOJOOKOOLOOMOONOOO"
BASE="NSP"
RANDOM=$(head /dev/urandom | hexdump -d | head -n 1 | cut -c 11-15)
CTR=$(($RANDOM%$(($(expr length $TITLES)/3))))
MAC=$(echo -e $BASE$TITLES | cut -c 1-3,$(($CTR*3+4))-$(($CTR*3+6)) | hexdump -e '6/1 "%02X:"' | cut -c 1-17)
WLINT=$(nvram get wl0_ifname)
APDCNF=/tmp/${WLINT}_hostap.conf
APDPID=/var/run/${WLINT}_hostapd.pid
if [ -e $APDCNF ]; then
kill $(cat $APDPID)
sleep 3
sed -ri s/bssid=.*/bssid=$MAC/ $APDCNF
hostapd -B -P $APDPID $APDCNF
else
ifconfig $WLINT down
ifconfig $WLINT hw ether $MAC
ifconfig $WLINT up
fi
Code:
*/10 1-7 * * * root /tmp/nzone
Q: Why do we need a title-specific MACS? I feel comfortable with common 16 MACS
A: There are over 130 StreetPass-enabled games now. If you're using less common games, you may pass hundreds of streetpasses to get a StreetPass data for them. The dedicated MAC for a title will guarantee you will get data for that title, as soon as somebody else is using it.

Q: Why not to use a siple cycle through all common MACs
A: In case it is not randomized, you have a big probability to get a StreetPass data from the same partner several times in a row

Q: Can a change MAC more often to get more streetpasses?
A: Since you can only get one StreetPass from a unique MAC per 8 hours, switching MAC too often will at least do nothing for you and at worst spam all used MACs with your data. I suggest you shold change MAC not more than (Number_of_MACS / 8)*2 times per hour

Q: Your script is not working as it should
A1: You should not check for a MAC change at the DD-WRT interface, here only the permanent MAC used at the router startup is displayed. You can check your mac have changed like this
Code:
ifconfig $(nvram get wl0_ifname)
A2: If you have a DD-WRT micro build, it is not supported, at least yet.
A3: You should try to manually run script
Code:
/tmp/nzone
If MAC is not changed please PM me the output, if any.
If MAC is changed, try to restart cron daemon
Code:
stopservice cron; startservice cron
as it seems to be a bug with cron deamon goes to sleep and prevent running scheduled jobs at several DD-WRT builds
A4: Though this script was tested on DD-WRT v24 preSP2 (Build 21061) and WL500gP (1.9.2.7-d-r2624), it may not run properly on your device because of the DD-WRT build differences for a variety of hardware. If this is the case, please make sure you have the latest DD-WRT available for your router and PM me output for this commands
Code:
cat /proc/cpuinfo
nvram get wl0_ifname
ifconfig
iwconfig
ps
- support multi-ssid configuration
- check script with Realtek-baset routers
- DD-WRT micro support


Thanks a lot! After hours of testing, the code works very well, but when I have the script enabled the wireless signal turns off randomly and I can only turn it on by power cycling the router or applying the wireless settings again on the control panel using wired connection. Do I have to keep enabled the Mac Address Clone option on the router? I don't know why this is happening. My router is a TP-Link WR741ND, with dd-wrt build 22118. If it were for me, I wouldn't ask, but my family also need to use the network. Thanks in advance.
 

el_johan

New Member
Newbie
Joined
Aug 23, 2013
Messages
4
Trophies
0
Age
34
XP
128
Country
Colombia
Hi Everyone
Someone can guide me, I've trying the 2 State Forms I can, with Win7 and android, but in no way works, up to 6 macs And noStreetPass , I have the console closed?, Or Open Work?
 

Arrick

New Member
Newbie
Joined
Aug 24, 2013
Messages
1
Trophies
0
Age
42
XP
51
Country
United States
I just have to ask: how in the world do you get the Nintendo Zone to work when you change the MAC address using the OSX method?

I followed the method exactly, and when I change the MAC address, the Internet goes out. I can't even connect to my MacBook Pro anymore. I change the MAC address back to normal, and all is fine, Internet-wise. Still the Nintendo Zone doesn't work.

What gives? Why does it seem so easy to just change your MAC and you'll get StreetPasses?

I assume if you can use the Nintendo Zone, then you'd get StreetPasses, but I can never use the Nintendo Zone.

Anyone else have this problem, and can help me?

Thanks
 

duke_srg

Well-Known Member
Member
Joined
Mar 1, 2011
Messages
1,862
Trophies
0
Age
44
Location
Moscow
XP
807
Country
Serbia, Republic of
Thanks a lot! After hours of testing, the code works very well, but when I have the script enabled the wireless signal turns off randomly and I can only turn it on by power cycling the router or applying the wireless settings again on the control panel using wired connection. Do I have to keep enabled the Mac Address Clone option on the router? I don't know why this is happening. My router is a TP-Link WR741ND, with dd-wrt build 22118. If it were for me, I wouldn't ask, but my family also need to use the network. Thanks in advance.
This can be caused hostapd not stopping in 3 second timeot. Have you troed to wait, usially it auto restarts in 2 minutes or at yhe next scheduled mac change. Try to increase sleep time between hostapd kill/start cycle.
 

JODIsBack

Member
Newcomer
Joined
Sep 17, 2009
Messages
18
Trophies
0
XP
119
Country
United States
I decided to research and use the BusyBox + Terminal Emulator method. Went into root features and typed a command like

"ip link set tiap0 address XX:XX:XX:XX:XX:XX" (XX:XX:XX:XX:XX:XX being one of the mac addresses in the google doc)

It then told me "Operation not permitted". Not sure why this is a problem... my phone is rooted after all
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: So negative