Might be an issue with the MAC address that you used, have you tried others?
Yessir - I tried 3 or 4 on the master list.
I'm going to mess around with it a bit more, but yeah, if anyone has any ideas, I'm open to trying anything.
Might be an issue with the MAC address that you used, have you tried others?
The virtual wifi mini port stops so you need to type in againOf course, I can make an "atheros version" and upload it. I'll post in this thread when that's done. Also, do you mean Virtual router stops? or the entire hosted network stops?
netsh wlan start hostednetowrk
Option Explicit
Dim shell
set shell=createobject("wscript.shell")
do
WScript.Sleep 930000
shell.Run "netsh wlan start hostednetwork"
loop
The virtual wifi mini port stops so you need to type in again
to re-enable it after a macshift hehe...Code:netsh wlan start hostednetowrk
Thanks! Atm I'm just using my own timed script to restart hostednetwork ..
it's a basic vb script set off to run after macshift timer expires (I use your default 15 mins)
Anyone needs it, here's the code:
Code:Option Explicit Dim shell set shell=createobject("wscript.shell") do WScript.Sleep 930000 shell.Run "netsh wlan start hostednetwork" loop
Sorry got to backread 5 pages and got your newest version Thank you!! Will try that one out !!yeah I've added this features. check my thread in tuts. and faqs
Sorry got to backread 5 pages and got your newest version Thank you!! Will try that one out !!
root@Nintendo-ROUTER:~# ifconfig ath0 down
root@Nintendo-ROUTER:~# ifconfig ath0 hwaddr=4E:53:50:4F:4F:40
root@Nintendo-ROUTER:~# ifconfig ath0 up
#!/bin/sh
TITLES="OO@OOAOOBOOCOODOOEOOFOOGOOHOOIOOJOOKOOLOOMOONOOO"
BASE="NSP"
RANDOM=$(head -c 2 /dev/urandom | hexdump -e '1/2 "%u"')
CTR=$(($RANDOM%$(($(expr length $TITLES)/3))))
root@DD-WRT:/tmp# /tmp/nzone
head: invalid option -- c
/tmp/nzone: line 5: arithmetic syntax error
This is for routers with DD-WRT firmware.
Well, lets move on to the title-based StreetPass!
MAC generated in a following way:
the first three octets are ASCII codes for "NSP" (4E:53:50)
the last three octets are CTR title code (i.e. CTR-XXX.-...)
Here you can find a list of game CTR codes: StreetPass CTR
For automatic MAC rotation just create a string from CTR-codes without any separators and add it to the following scripts just after [email protected] (you can choose to remove [email protected] as well if you do not want to use a common StreetPass MACs)
Insert script in Administration - Commands
hit Run Commands, insert again, hit Save StartupCode:echo -e "#!/bin/sh\nTITLES=\"OO@OOAOOBOOCOODOOEOOFOOGOOHOOIOOJOOKOOLOOMOONOOO\"\nBASE=\"NSP\"\nRANDOM=\$(head -c 2 /dev/urandom | hexdump -e '1/2 \"%u\"')\nCTR=\$((\$RANDOM%\$((\$(expr length \$TITLES)/3))))\nMAC=\$(echo -e \$BASE\$TITLES | cut -c 1-3,\$((\$CTR*3+4))-\$((\$CTR*3+6)) | hexdump -e '6/1 \"%02X:\"' | head -c 17)\nWLINT=\$(nvram get wl0_ifname)\nAPDCNF=/tmp/\${WLINT}_hostap.conf\nAPDPID=/var/run/\${WLINT}_hostapd.pid\nif [ -e \$APDCNF ]; then\nkill \$(cat \$APDPID)\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
In Administration - Management - Cron insert:Code:#!/bin/sh TITLES="OO@OOAOOBOOCOODOOEOOFOOGOOHOOIOOJOOKOOLOOMOONOOO" BASE="NSP" RANDOM=$(head -c 2 /dev/urandom | hexdump -e '1/2 "%u"') 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:"' | head -c 17) WLINT=$(nvram get wl0_ifname) APDCNF=/tmp/${WLINT}_hostap.conf APDPID=/var/run/${WLINT}_hostapd.pid if [ -e $APDCNF ]; then kill $(cat $APDPID) 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
and Apply Settings. Now your router will change to a random MAC from a selected list every 10 minutes starting from 1:00 to 7:50Code:*/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: Depending on router model it can tike upto two minutes for Access Point to restart with new MAC
A2: Though this script was tested on DD-WRT v24 preSP2 (Build 21061), 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 commandsCode:cat /proc/cpuinfo nvram get wl0_ifname ifconfig iwconfig ps
- support multi-ssid configuration
- check script with Realtek-baset routers
"Just a quick question. When I first set this up, Nintendo Zone shows up fine because of the SSID, but do I need to turn MAC cloning on or will the commands work on their own? Also, is there a way to set this to run 24/7 instead of just during a time frame?"
From what I've figured out so far:
1. You've gotta still turn MAC Cloning on
2. You can change time that it runs on the cron command part; the "1-7" is what's defining the window of "hours" that it runs on. Change "1-7" to just a "*" and it will run all the time. The first part is what defines when it runs based on minutes, so */10 = once every 10 minutes, */15 = once every 15, etc.
But I'm still stuck because even though I'm on the same build that duke is, DD-WRT is not liking the "-c" option on the head command
Thanks, going to give it a try now and try and test it. Also, does this change the wireless MAC or WAN MAC? I've been inputting all of these MAC addresses in Wireless and having no problems, but I tried WAN initially and it didn't work.
Setup -> MAC Address Clone -> Enable -> Clone Wireless MAC is the only one you need to change to get it to register as a Nintendozone, as long as the router's got access to the interwebs.
Setup -> MAC Address Clone -> Enable -> Clone Wireless MAC is the only one you need to change to get it to register as a Nintendozone, as long as the router's got access to the interwebs.