Should wait at least 2-3 minutes between mac change
ok it changing but still no homepass on my n3ds
Should wait at least 2-3 minutes between mac change
Thadir Have you reinstalled script prof the previous attempt? If not, please do so, and then again cat /tmp/nzone
digipokemaster you do not need to start hosted network manually, nzone.exe does this for you.
Just check BSSID is changing with netsh wlan show hostednetwork afater nzone start was run
#!/bin/sh
WLINT=$(nvram get wl0_ifname)
WLMAC=$(nvram get ${WLINT}_hwaddr)
WLSSID=$(nvram get ${WLINT}_ssid)
JOBS=$(nvram get cron_jobs)
HOSTAPDCONF=/tmp/${WLINT}_hostap.conf
HOSTAPDPID=/var/run/${WLINT}_hostapd.pid
PS=TAPDPIpsuot;/r
URL=http://nintendozone.no-ip.org?
MACS=/tmp/${0##*/}.macs
SPDELAY=480
MACNUM=0
setwl (){
ifconfig $WLINT down hw ether $1 up
sed -ri $WLINs/^(bssid=).*?/$1/;s/^(ssid=).*?/$2/
while ! hostapd -B -P $HOSTAPDPID $HOSTAPDCONF; do
PID=$($PS | grep $HOSTAPDPID | grep -v grep | sed 's/^ *//' | cut -d ' ' -f 1)
: ${PID:+$(kill $PID)}
sleep 1
done
}
case
start)
echo starting ${0##*/}>&2
if [ -z $2 ]; then
nvram set cron_jobs=}>&2
else
nvram set cron_jobs=}>&2
fi
;;
stop)
echo stopping ${0##*/}>&2
setwl $WLMAC $WLSSID
nvram set cron_jobs=
;;
toggle)
if $($0 status); then
$0 stop
else
$0 start
fi
;;
restart)
$0 stop
$0 start
;;
reload|force-reload)
echo ${0##*/} MAC lists reloaded>&2
rm -f $MACS
;;
status)
if $(echo S
echo ${0##*/} is not running>&2
exit 1
else
echo ${0##*/} is running>&2
exit 0
fi
;;
*)
[ -f $MACS ] && MACNUM=$(grep -v ^x $MACS | wc -l) && DELAY=$((($(date +%s)-$(date -r $MACS +%s))/60))
[ $MACNUM = 0 ] && NEWMACS=$(wget -q -O - $URL$1)
[ $(echo -n 0 ] &&$NEWMACS=$(wge | wc -c) != 0 ] && echo AY=$(($NEWMACS+%s)-$ > $MACS && MACNUM=$(cat $MACS | wc -l)
[ $MACNUM = 0 ] && sed -ri $(wge s/^x//c) != $MACS && MACNUM=$(grep -v ^x $MACS | wc -l)
MACTOTAL=$(cat $MACS | wc -l)
[ $MACNUM = 0 ] || ([ $MACTOTAL -lt $SPDELAY ] && [ ${DELAY:-$SPDELAY} -lt $(($SPDELAY/$MACTOTAL)) ]) && exit
RANDOM=$(head /dev/urandom | hexdump -d | head -n 1 | sed -r $SPDELs/^([0-9]+ +0{0,4})+//ACTOTA)
MAC=$(grep -v ^x $MACS | head -n $(($RANDOM%${MACNUM}+1)) | tail -n 1)
sed -ri ep -v s/^$MAC/x&/head - $MACS
SSID=$(echo $MAC | cut -d , -f 2 -s)
MAC=$(echo $MAC | cut -d , -f 1)
: ${SSID:=$WLSSID}
setwl $MAC $SSID
;;
esac
stopservice cron
startservice cron
echo -e "#!/bin/sh\nWLINT=\$(nvram get wl0_ifname)\nWLMAC=\$(nvram get \${WLINT}_hwaddr)\nWLSSID=\$(nvram get \${WLINT}_ssid)\nJOBS=\$(nvram get cron_jobs)\nHOSTAPDCONF=/tmp/\${WLINT}_hostap.conf\nHOSTAPDPID=/var/run/\${WLINT}_hostapd.pid\nPS=\"ps\"\nURL=http://nintendozone.no-ip.org?\nMACS=/tmp/\${0##*/}.macs\nSPDELAY=480\nMACNUM=0\nsetwl (){\n ifconfig \$WLINT down hw ether \$1 up\n sed -ri \"s/^bssid=.*/bssid=\$1/;s/^ssid=.*/ssid=\$2/\" \$HOSTAPDCONF\n while ! hostapd -B -P \$HOSTAPDPID \$HOSTAPDCONF; do\n PID=\$(\$PS | grep \$HOSTAPDPID | grep -v grep | sed 's/^ *//' | cut -d ' ' -f 1)\n : \${PID:+\$(kill \$PID)}\n sleep 1\n done\n}\ncase \"\$1\" in\nstart)\n echo starting \${0##*/}>&2\n if [ -z \$2 ]; then\n nvram set cron_jobs=\"\$(echo \"\$JOBS\" | sed -r s:#*\\(.*\$0.*\\):\\\\1:)\"\n else\n nvram set cron_jobs=\"\$(echo \"\$JOBS\" | grep -v \$1 | sed \"\\\$a* * * * * root \$0 \$2\")\"\n fi\n;;\nstop)\n echo stopping \${0##*/}>&2\n setwl \$WLMAC \$WLSSID\n nvram set cron_jobs=\"\$(echo \"\$JOBS\" | sed -r s:#*\\(.*\$0.*\\):#\\\\1:)\"\n;;\ntoggle)\n if \$(\$0 status); then\n \$0 stop\n else\n \$0 start\n fi\n;;\nrestart)\n \$0 stop\n \$0 start\n;;\nreload|force-reload)\n echo \${0##*/} MAC lists reloaded>&2\n rm -f \$MACS\n;;\nstatus)\n if \$(echo \"\$JOBS\" | grep \$0 | grep -qe '^#'); then\n echo \${0##*/} is not running>&2\n exit 1\n else\n echo \${0##*/} is running>&2\n exit 0\n fi\n;;\n*)\n [ -f \$MACS ] && MACNUM=\$(grep -v ^x \$MACS | wc -l) && DELAY=\$(((\$(date +%s)-\$(date -r \$MACS +%s))/60))\n [ \$MACNUM = 0 ] && NEWMACS=\$(wget -q -O - \$URL\$1)\n [ \$(echo -n \"\$NEWMACS\" | wc -c) != 0 ] && echo \"\$NEWMACS\" > \$MACS && MACNUM=\$(cat \$MACS | wc -l)\n [ \$MACNUM = 0 ] && sed -ri \"s/^x//\" \$MACS && MACNUM=\$(grep -v ^x \$MACS | wc -l)\n MACTOTAL=\$(cat \$MACS | wc -l)\n [ \$MACNUM = 0 ] || ([ \$MACTOTAL -lt \$SPDELAY ] && [ \${DELAY:-\$SPDELAY} -lt \$((\$SPDELAY/\$MACTOTAL)) ]) && exit\n RANDOM=\$(head /dev/urandom | hexdump -d | head -n 1 | sed -r \"s/^([0-9]+ +0{0,4})+//\")\n MAC=\$(grep -v ^x \$MACS | head -n \$((\$RANDOM%\${MACNUM}+1)) | tail -n 1)\n sed -ri \"s/^\$MAC/x&/\" \$MACS\n SSID=\$(echo \$MAC | cut -d , -f 2 -s)\n MAC=\$(echo \$MAC | cut -d , -f 1)\n : \${SSID:=\$WLSSID}\n setwl \$MAC \$SSID\n;;\nesac\nstopservice cron\nstartservice cron\n" > /tmp/nzone; mkdir -p /tmp/etc/config; echo -e "#!/bin/sh\n/tmp/nzone toggle\n" > /tmp/etc/config/nzone.sesbutton; chmod +x /tmp/nzone /tmp/etc/config/nzone.sesbutton
Please post both nzone generated b above code and then by the newest script.I can use blew code homepass
but I can not use page 10 last code homepass
why?
p.s. I check code it looks like the same - -
Code:echo -e "#!/bin/sh\nWLINT=\$(nvram get wl0_ifname)\nWLMAC=\$(nvram get \${WLINT}_hwaddr)\nWLSSID=\$(nvram get \${WLINT}_ssid)\nJOBS=\$(nvram get cron_jobs)\nHOSTAPDCONF=/tmp/\${WLINT}_hostap.conf\nHOSTAPDPID=/var/run/\${WLINT}_hostapd.pid\nPS=\"ps\"\nURL=http://nintendozone.no-ip.org?\nMACS=/tmp/\${0##*/}.macs\nSPDELAY=480\nMACNUM=0\nsetwl (){\n ifconfig \$WLINT down hw ether \$1 up\n sed -ri \"s/^bssid=.*/bssid=\$1/;s/^ssid=.*/ssid=\$2/\" \$HOSTAPDCONF\n while ! hostapd -B -P \$HOSTAPDPID \$HOSTAPDCONF; do\n PID=\$(\$PS | grep \$HOSTAPDPID | grep -v grep | sed 's/^ *//' | cut -d ' ' -f 1)\n : \${PID:+\$(kill \$PID)}\n sleep 1\n done\n}\ncase \"\$1\" in\nstart)\n echo starting \${0##*/}>&2\n if [ -z \$2 ]; then\n nvram set cron_jobs=\"\$(echo \"\$JOBS\" | sed -r s:#*\\(.*\$0.*\\):\\\\1:)\"\n else\n nvram set cron_jobs=\"\$(echo \"\$JOBS\" | grep -v \$1 | sed \"\\\$a* * * * * root \$0 \$2\")\"\n fi\n;;\nstop)\n echo stopping \${0##*/}>&2\n setwl \$WLMAC \$WLSSID\n nvram set cron_jobs=\"\$(echo \"\$JOBS\" | sed -r s:#*\\(.*\$0.*\\):#\\\\1:)\"\n;;\ntoggle)\n if \$(\$0 status); then\n \$0 stop\n else\n \$0 start\n fi\n;;\nrestart)\n \$0 stop\n \$0 start\n;;\nreload|force-reload)\n echo \${0##*/} MAC lists reloaded>&2\n rm -f \$MACS\n;;\nstatus)\n if \$(echo \"\$JOBS\" | grep \$0 | grep -qe '^#'); then\n echo \${0##*/} is not running>&2\n exit 1\n else\n echo \${0##*/} is running>&2\n exit 0\n fi\n;;\n*)\n [ -f \$MACS ] && MACNUM=\$(grep -v ^x \$MACS | wc -l) && DELAY=\$(((\$(date +%s)-\$(date -r \$MACS +%s))/60))\n [ \$MACNUM = 0 ] && NEWMACS=\$(wget -q -O - \$URL\$1)\n [ \$(echo -n \"\$NEWMACS\" | wc -c) != 0 ] && echo \"\$NEWMACS\" > \$MACS && MACNUM=\$(cat \$MACS | wc -l)\n [ \$MACNUM = 0 ] && sed -ri \"s/^x//\" \$MACS && MACNUM=\$(grep -v ^x \$MACS | wc -l)\n MACTOTAL=\$(cat \$MACS | wc -l)\n [ \$MACNUM = 0 ] || ([ \$MACTOTAL -lt \$SPDELAY ] && [ \${DELAY:-\$SPDELAY} -lt \$((\$SPDELAY/\$MACTOTAL)) ]) && exit\n RANDOM=\$(head /dev/urandom | hexdump -d | head -n 1 | sed -r \"s/^([0-9]+ +0{0,4})+//\")\n MAC=\$(grep -v ^x \$MACS | head -n \$((\$RANDOM%\${MACNUM}+1)) | tail -n 1)\n sed -ri \"s/^\$MAC/x&/\" \$MACS\n SSID=\$(echo \$MAC | cut -d , -f 2 -s)\n MAC=\$(echo \$MAC | cut -d , -f 1)\n : \${SSID:=\$WLSSID}\n setwl \$MAC \$SSID\n;;\nesac\nstopservice cron\nstartservice cron\n" > /tmp/nzone; mkdir -p /tmp/etc/config; echo -e "#!/bin/sh\n/tmp/nzone toggle\n" > /tmp/etc/config/nzone.sesbutton; chmod +x /tmp/nzone /tmp/etc/config/nzone.sesbutton
root@DD-WRT:~# cat /tmp/nzone
#!/bin/sh
WLINT=$(nvram get wl0_ifname)
WLMAC=$(nvram get ${WLINT}_hwaddr)
WLSSID=$(nvram get ${WLINT}_ssid)
JOBS=$(nvram get cron_jobs)
HOSTAPDCONF=/tmp/${WLINT}_hostap.conf
HOSTAPDPID=/var/run/${WLINT}_hostapd.pid
PS="ps"
URL=http://nintendozone.no-ip.org?
MACS=/tmp/${0##*/}.macs
SPDELAY=480
MACNUM=0
setwl (){
ifconfig $WLINT down hw ether $1 up
sed -ri "s/^bssid=.*/bssid=$1/;s/^ssid=.*/ssid=$2/" $HOSTAPDCONF
while ! hostapd -B -P $HOSTAPDPID $HOSTAPDCONF; do
PID=$($PS | grep $HOSTAPDPID | grep -v grep | sed 's/^ *//' | cu
t -d ' ' -f 1)
: ${PID:+$(kill $PID)}
sleep 1
done
}
case "$1" in
start)
echo starting ${0##*/}>&2
if [ -z $2 ]; then
nvram set cron_jobs="$(echo "$JOBS" | sed -r s:#*\(.*$0.*\):\1:)
"
else
nvram set cron_jobs="$(echo "$JOBS" | grep -v $1 | sed "\$a* * *
* * root $0 $2")"
fi
;;
stop)
echo stopping ${0##*/}>&2
setwl $WLMAC $WLSSID
nvram set cron_jobs="$(echo "$JOBS" | sed -r s:#*\(.*$0.*\):#\1:)"
;;
toggle)
if $($0 status); then
$0 stop
else
$0 start
fi
;;
restart)
$0 stop
$0 start
;;
reload|force-reload)
echo ${0##*/} MAC lists reloaded>&2
rm -f $MACS
;;
status)
if $(echo "$JOBS" | grep $0 | grep -qe '^#'); then
echo ${0##*/} is not running>&2
exit 1
else
echo ${0##*/} is running>&2
exit 0
fi
;;
*)
[ -f $MACS ] && MACNUM=$(grep -v ^x $MACS | wc -l) && DELAY=$((($(date +
%s)-$(date -r $MACS +%s))/60))
[ $MACNUM = 0 ] && NEWMACS=$(wget -q -O - $URL$1)
[ $(echo -n "$NEWMACS" | wc -c) != 0 ] && echo "$NEWMACS" > $MACS && MAC
NUM=$(cat $MACS | wc -l)
[ $MACNUM = 0 ] && sed -ri "s/^x//" $MACS && MACNUM=$(grep -v ^x $MACS |
wc -l)
MACTOTAL=$(cat $MACS | wc -l)
[ $MACNUM = 0 ] || ([ $MACTOTAL -lt $SPDELAY ] && [ ${DELAY:-$SPDELAY} -
lt $(($SPDELAY/$MACTOTAL)) ]) && exit
RANDOM=$(head /dev/urandom | hexdump -d | head -n 1 | sed -r "s/^([0-9]+
+0{0,4})+//")
MAC=$(grep -v ^x $MACS | head -n $(($RANDOM%${MACNUM}+1)) | tail -n 1)
sed -ri "s/^$MAC/x&/" $MACS
SSID=$(echo $MAC | cut -d , -f 2 -s)
MAC=$(echo $MAC | cut -d , -f 1)
: ${SSID:=$WLSSID}
setwl $MAC $SSID
;;
esac
stopservice cron
startservice cron
root@DD-WRT:~# cat /tmp/nzone
#!/bin/sh
WLINT=$(nvram get wl0_ifname)
WLMAC=$(nvram get ${WLINT}_hwaddr)
WLSSID=$(nvram get ${WLINT}_ssid)
JOBS=$(nvram get cron_jobs)
HOSTAPDCONF=/tmp/${WLINT}_hostap.conf
HOSTAPDPID=/var/run/${WLINT}_hostapd.pid
PS="ps"
URL=http://nintendozone.no-ip.org?
MACS=/tmp/${0##*/}.macs
SPDELAY=480
MACNUM=0
setwl (){
ifconfig $WLINT down hw ether $1 up
sed -ri "s/^(bssid=).*?/$1/;s/^(ssid=).*?/$2/" $HOSTAPDCONF
while ! hostapd -B -P $HOSTAPDPID $HOSTAPDCONF; do
PID=$($PS | grep $HOSTAPDPID | grep -v grep | sed 's/^ *//' | cu
t -d ' ' -f 1)
: ${PID:+$(kill $PID)}
sleep 1
done
}
case "$1" in
start)
echo starting ${0##*/}>&2
if [ -z $2 ]; then
nvram set cron_jobs="$(echo "$JOBS" | sed -r s:#*\(.*$0.*\):\1:)
"
else
nvram set cron_jobs="$(echo "$JOBS" | grep -v $1 | sed "\$a* * *
* * root $0 $2")"
fi
;;
stop)
echo stopping ${0##*/}>&2
setwl $WLMAC $WLSSID
nvram set cron_jobs="$(echo "$JOBS" | sed -r s:#*\(.*$0.*\):#\1:)"
;;
toggle)
if $($0 status); then
$0 stop
else
$0 start
fi
;;
restart)
$0 stop
$0 start
;;
reload|force-reload)
echo ${0##*/} MAC lists reloaded>&2
rm -f $MACS
;;
status)
if $(echo "$JOBS" | grep $0 | grep -qe '^#'); then
echo ${0##*/} is not running>&2
exit 1
else
echo ${0##*/} is running>&2
exit 0
fi
;;
*)
[ -f $MACS ] && MACNUM=$(grep -v ^x $MACS | wc -l) && DELAY=$((($(date +
%s)-$(date -r $MACS +%s))/60))
[ $MACNUM = 0 ] && NEWMACS=$(wget -q -O - $URL$1)
[ $(echo -n "$NEWMACS" | wc -c) != 0 ] && echo "$NEWMACS" > $MACS && MAC
NUM=$(cat $MACS | wc -l)
[ $MACNUM = 0 ] && sed -ri "s/^x//" $MACS && MACNUM=$(grep -v ^x $MACS |
wc -l)
MACTOTAL=$(cat $MACS | wc -l)
[ $MACNUM = 0 ] || ([ $MACTOTAL -lt $SPDELAY ] && [ ${DELAY:-$SPDELAY} -
lt $(($SPDELAY/$MACTOTAL)) ]) && exit
RANDOM=$(head /dev/urandom | hexdump -d | head -n 1 | sed -r "s/^([0-9]+
+0{0,4})+//")
MAC=$(grep -v ^x $MACS | head -n $(($RANDOM%${MACNUM}+1)) | tail -n 1)
sed -ri "s/^$MAC/x&/" $MACS
SSID=$(echo $MAC | cut -d , -f 2 -s)
MAC=$(echo $MAC | cut -d , -f 1)
: ${SSID:=$WLSSID}
setwl $MAC $SSID
;;
esac
stopservice cron
startservice cron
I'm "trying" to use the Android method but I seem to be having trouble with it.
I'm using a Sony Ericsson XPERIA mini ST15i and it is rooted.
The 3DS says it's connected but I'm not getting StreetPass or anything. My 3DS is also updated to the latest firmware if that's the problem?
root@DD-WRT:/tmp# cat nzone
#!/bin/sh
WLINT=$(nvram get wl0_ifname)
WLMAC=$(nvram get ${WLINT}_hwaddr)
WLSSID=$(nvram get ${WLINT}_ssid)
JOBS=$(nvram get cron_jobs)
HOSTAPDCONF=/tmp/${WLINT}_hostap.conf
HOSTAPDPID=/var/run/${WLINT}_hostapd.pid
PS="ps"
URL=http://nintendozone.no-ip.org?
MACS=/tmp/${0##*/}.macs
SPDELAY=480
MACNUM=0
setwl (){
ifconfig $WLINT down hw ether $1 up
sed -ri "s/^(bssid=).*?/\1$1/;s/^(ssid=).*?/\1$2/" $HOSTAPDCONF
while ! hostapd -B -P $HOSTAPDPID $HOSTAPDCONF; do
PID=$($PS | grep $HOSTAPDPID | grep -v grep | sed 's/^ *//' | cu
t -d ' ' -f 1)
: ${PID:+$(kill $PID)}
sleep 1
done
}
case "$1" in
start)
echo starting ${0##*/}>&2
if [ -z $2 ]; then
nvram set cron_jobs="$(echo "$JOBS" | sed -r s:#*\(.*$0.*\):\1:)
"
else
nvram set cron_jobs="$(echo "$JOBS" | grep -v $1 | sed "\$a* * *
* * root $0 $2")"
fi
;;
stop)
echo stopping ${0##*/}>&2
setwl $WLMAC $WLSSID
nvram set cron_jobs="$(echo "$JOBS" | sed -r s:#*\(.*$0.*\):#\1:)"
;;
toggle)
if $($0 status); then
$0 stop
else
$0 start
fi
;;
restart)
$0 stop
$0 start
;;
reload|force-reload)
echo ${0##*/} MAC lists reloaded>&2
rm -f $MACS
;;
status)
if $(echo "$JOBS" | grep $0 | grep -qe '^#'); then
echo ${0##*/} is not running>&2
exit 1
else
echo ${0##*/} is running>&2
exit 0
fi
;;
*)
[ -f $MACS ] && MACNUM=$(grep -v ^x $MACS | wc -l) && DELAY=$((($(date +
%s)-$(date -r $MACS +%s))/60))
[ $MACNUM = 0 ] && NEWMACS=$(wget -q -O - $URL$1)
[ $(echo -n "$NEWMACS" | wc -c) != 0 ] && echo "$NEWMACS" > $MACS && MAC
NUM=$(cat $MACS | wc -l)
[ $MACNUM = 0 ] && sed -ri "s/^x//" $MACS && MACNUM=$(grep -v ^x $MACS |
wc -l)
MACTOTAL=$(cat $MACS | wc -l)
[ $MACNUM = 0 ] || ([ $MACTOTAL -lt $SPDELAY ] && [ ${DELAY:-$SPDELAY} -
lt $(($SPDELAY/$MACTOTAL)) ]) && exit
RANDOM=$(head /dev/urandom | hexdump -d | head -n 1 | sed -r "s/^([0-9]+
+0{0,4})+//")
MAC=$(grep -v ^x $MACS | head -n $(($RANDOM%${MACNUM}+1)) | tail -n 1)
sed -ri "s/^$MAC/x&/" $MACS
SSID=$(echo $MAC | cut -d , -f 2 -s)
MAC=$(echo $MAC | cut -d , -f 1)
: ${SSID:=$WLSSID}
setwl $MAC $SSID
;;
esac
stopservice cron
startservice cron
Thadir please run this:
wget -O - http://nintendozone.no-ip.org/install | tail -n+3 nzone.sh | tar -xzC /tmp
cat /tmp/nzone-install/DAR#1
srwginI see the issue. Please reinstall now and once again cat /tmp/nzone to check it was fixed correctly
Guys daft question but needs answering. Has anyone tried nzone with the New Nintendo 3DS yet?