Added "full" mode

This commit is contained in:
Rob Zimmerman 2013-08-20 10:11:25 -04:00
parent 1bfd57618e
commit d62d4c0c53
2 changed files with 77 additions and 30 deletions

View file

@ -2,6 +2,11 @@ relaymyhome
===========
OSX Bash Script for automating the process of getting Nintendo 3DS StreetPass hits via Internet Connection Sharing.
What's New
==========
**v 0.2**
* New Mode - running the script with the command **./relaymyhome en1 full** will now cause the script to randomly select addresses from the "Extended Prime MAC's" list (currently 160 addresses). While this mode will likely get you more duplicate StreetPasses, it can be run multiple times within the 8-hour cooldown period. You should be able to run this mode, clear out your StreetPass hits, and run the script again roughly 10 times before you run out of potential StreetPass hits within the 8-hour cooldown window.
What It Does
============
By setting up your Mac computer to act like a StreetPass Relay, you can get StreetPass tags from all over the world. This script cycles through over 20 of the most popular streams in order to fill up your StreetPass queue in 20-30 minutes. Just set your 3DS down, configure your computer, and run the script.

View file

@ -27,6 +27,47 @@
#! /bin/bash
if [ $2 == "full" ]
then
# Generate a full list of 160 MAC's when "full" mode is specified
# To use full mode: ./relaymyhome en1 full
# (Replacing en1 with your specific WiFi interface)
# Check the repo at github for more information.
echo "Full Mode enabled. Randomly seeding from full list of addresses."
# Set the base MAC address
baseAddr="4E:53:50:4F:4F:"
# Legal characters for MAC
Chars=("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "0" "A" "B" "C" "D" "E" "F")
# Create the addresses programatically
count=0
for i in "${Chars[@]}"
do
for j in "${Chars[@]}"
do
mac=$baseAddr$i$j
Addr+=($mac)
done
done
for a in {1..20}
do
selectedAddr=${Addr[$RANDOM % ${#Addr[@]} ]}
echo "Cycling WiFi..."
sudo ifconfig $1 lladdr $selectedAddr
networksetup -setairportpower $1 off
networksetup -setairportpower $1 on
echo "Spoofing $1 to $selectedAddr for 60 seconds"
sleep 60
done
else
# This standard set of MAC's will be used in standard mode
# Usage: ./relaymyhome en1
# (Replacing en1 with your specific WiFi interface)
addr[0]='00:0D:67:15:2D:82'
addr[1]='00:0D:67:15:D7:21'
addr[2]='00:0D:67:15:D5:44'
@ -58,5 +99,6 @@ do
echo "Spoofing $1 to $a for 60 seconds"
sleep 60
done
fi
echo "Cycling of Relays has completed. Time to check your StreetPasses!"