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.

turok4n64

Well-Known Member
Member
Joined
Nov 5, 2007
Messages
116
Trophies
0
XP
266
Country
United States
sigh...

My Mii WiiDSmoker has been street passing people 24/7 to help others complete all puzzle pieces for almost two weeks now and all I ask is that someone help me get the remaining last 9 USA regions that I need.

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

It's really easy to do. Go to Settings, change your Region to one of the following and then we StreetPass and change the region again, repeat. I am using the DD WRT cron job so my MAC Address changes every 2 minutes so it's very fast.

I would love to help you complete all your regions in your country as well. Would truly appreciate it!

Someone help.....
 

fenor

Active Member
Newcomer
Joined
Jun 29, 2007
Messages
26
Trophies
0
XP
200
Country
Italy
I didn't use a USB dongle, my laptop has wifi and ethernet in the same network adapter, try unpluging your dongle (assuming you have a laptop/pc with wireless and cable connection) and run commands these in order
1) sudo chmod +x ./home_zone
2) sudo ./home_zone spoof1 wlan0 eth0
If that doens't work I'm out of ideas
home_zone is already executable (look the output of the ls -la | grep home_zone) and the sudo command is the one i give. with wlan1 since that's the name of the interface of the dongle.
 

turok4n64

Well-Known Member
Member
Joined
Nov 5, 2007
Messages
116
Trophies
0
XP
266
Country
United States
Can anyone tell me how to change your wireless MAC automatically using a DD-WRT router?
(How to cycle basically)


Once you have DD-WRT and your SSID set to "attwifi"; go to the Cron Job..I think it's under Administration and simply copy/paste this.

0-59/4 * * * * root ifconfig eth1 down && ifconfig eth1 hw ether 40:53:50:4F:4F:`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && ifconfig eth1 up
2-59/4 * * * * root ifconfig eth1 down && ifconfig eth1 hw ether 4E:53:50:4F:4F:`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && ifconfig eth1 up
 

JordenNixNix

Well-Known Member
Member
Joined
Feb 11, 2012
Messages
233
Trophies
0
XP
275
Country
Belgium
I use the Android method with the Streetpass Riilay app.

My 3DS successfully find a Nintendo Zone but I never have any Mii or other streetpass data. If I open the Nintendo Zone app it's showing a message "coming soon" and my 3DS is updated to the most recent firmware.
What must you do to get streetpass data? I use as SSID attwifi and as MAC 4E:53:50:4F:4F:46
 

gamefan5

Kid Icarus Uprising connoiseur
Member
Joined
Aug 29, 2010
Messages
5,010
Trophies
2
Location
Somewhere in this Earth
XP
4,064
Country
Canada
Once you have DD-WRT and your SSID set to "attwifi"; go to the Cron Job..I think it's under Administration and simply copy/paste this.

0-59/4 * * * * root ifconfig eth1 down && ifconfig eth1 hw ether 40:53:50:4F:4F:`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && ifconfig eth1 up
2-59/4 * * * * root ifconfig eth1 down && ifconfig eth1 hw ether 4E:53:50:4F:4F:`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && ifconfig eth1 up

Doesn't work.
 

gamefan5

Kid Icarus Uprising connoiseur
Member
Joined
Aug 29, 2010
Messages
5,010
Trophies
2
Location
Somewhere in this Earth
XP
4,064
Country
Canada
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

Can anyone please explain to me how to use this script? I used the code to put in administration commanes. However I don't understabd what to put in cron...
 

Koldur

Virtual Boy Ambassador
Member
Joined
Feb 2, 2008
Messages
294
Trophies
1
XP
1,542
Country
Netherlands
I am trying to get Streetpasses at work using the repeater function, but then eth1 does not work as my virtual wlan has a different mac address and has to be commanded differently than eth1 in the script, I already tried wl0.1 (that is the name of the virtual network and the default name of the "master network" is wl0) with no change in mac address, also tried eth1.1 without luck as well, anyone that can help me out with this?
 

bastalle

Member
Newcomer
Joined
Jun 16, 2013
Messages
11
Trophies
1
Age
46
XP
459
Country
does anyone who has the win xp method working know whats going wrong with mine?
i have followed the guide but when i setup the 3ds connection it fails to connect to the access point.
 

Lyomak

Well-Known Member
Member
Joined
Jun 24, 2009
Messages
436
Trophies
1
Age
39
Location
Bogotá
Website
twitch.tv
XP
389
Country
Colombia
Can anyone please explain to me how to use this script? I used the code to put in administration commanes. However I don't understabd what to put in cron...


Save it in Startup, reboot your router and wait a minute. Check it back and the Cron part will be filled.
 

Kitsunegi

New Member
Newbie
Joined
Aug 24, 2013
Messages
4
Trophies
0
Age
37
XP
61
Country
United States
You're on Windows? Try an RTL8192CU. They don't work that well for actual internet using (I was getting like 100 KB/s downstream max) but they do work well under windows for this. As has been mentioned though, you'll be restricted to MACs starting with a certain octet (like 4e:, 02:) link. Or you could go with the slightly cheaper RTL8188CUS: link
here's a link to the driver for both of them, though you'll need to copy/paste it into your address bar since User:Pass linking doesn't work here: ftp://WebUser:[email protected]/cn/wlan/RTL819xCU_AutoInstallPackage.zip


Just to be clear...is this for the virtual router network method? I don't want to spend my money and then have no idea what I'm doing :x
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
    +1
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
  • BakerMan @ BakerMan:
    Also, no, that was his first time having a seizure, and hopefully the last
    +1
  • K3Nv2 @ K3Nv2:
    Ea play raised priced to $6 a month lol
  • BigOnYa @ BigOnYa:
    Same with uremum, she's now $2 a month
  • K3Nv2 @ K3Nv2:
    Also seizures come and and go they don't have an off switch like that it all depends
    K3Nv2 @ K3Nv2: Also seizures come and and go they don't have an off switch like that it all depends