Merge pull request #2 from imariaprime/patch-2
Corrected MAC range to 00-9F, removed extra "0" from MAC characters
This commit is contained in:
commit
8ca08a3159
1 changed files with 8 additions and 9 deletions
17
relaymyhome
17
relaymyhome
|
@ -20,7 +20,7 @@
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
|
|
||||||
# RelayMyHome -- v. 0.3
|
# RelayMyHome -- v. 0.4
|
||||||
# by Rob Zimmerman (https://www.github.com/taintedzodiac)
|
# by Rob Zimmerman (https://www.github.com/taintedzodiac)
|
||||||
# View the original source, readme, and license at https://github.com/taintedzodiac/relaymyhome
|
# View the original source, readme, and license at https://github.com/taintedzodiac/relaymyhome
|
||||||
# Tested in OS X 10.8 (Mountain Lion)
|
# Tested in OS X 10.8 (Mountain Lion)
|
||||||
|
@ -35,22 +35,22 @@ WirelessMAC=$(networksetup -getmacaddress $wifi | awk '{print $3}')
|
||||||
if [ $1 == "full" ]
|
if [ $1 == "full" ]
|
||||||
then
|
then
|
||||||
# Generate a full list of 160 MAC's when "full" mode is specified
|
# Generate a full list of 160 MAC's when "full" mode is specified
|
||||||
# To use full mode: ./relaymyhome en1 full
|
# To use full mode: ./relaymyhome full
|
||||||
# (Replacing en1 with your specific WiFi interface)
|
|
||||||
# Check the repo at github for more information.
|
# Check the repo at github for more information.
|
||||||
echo "Full Mode enabled. Randomly seeding from full list of addresses."
|
echo "Full Mode enabled. Randomly seeding from full list of addresses."
|
||||||
|
|
||||||
# Set the base MAC address
|
# Set the base MAC address
|
||||||
baseAddr="4E:53:50:4F:4F:"
|
baseAddr="4E:53:50:4F:4F:"
|
||||||
|
|
||||||
# Legal characters for MAC
|
# Legal characters for MAC (Limited range for first digit)
|
||||||
Chars=("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "0" "A" "B" "C" "D" "E" "F")
|
CharsA=("0" "1" "2" "3" "4" "5" "6" "7" "8" "9")
|
||||||
|
CharsB=("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "A" "B" "C" "D" "E" "F")
|
||||||
|
|
||||||
# Create the addresses programatically
|
# Create the addresses programatically
|
||||||
count=0
|
count=0
|
||||||
for i in "${Chars[@]}"
|
for i in "${CharsA[@]}"
|
||||||
do
|
do
|
||||||
for j in "${Chars[@]}"
|
for j in "${CharsB[@]}"
|
||||||
do
|
do
|
||||||
mac=$baseAddr$i$j
|
mac=$baseAddr$i$j
|
||||||
Addr+=($mac)
|
Addr+=($mac)
|
||||||
|
@ -71,8 +71,7 @@ then
|
||||||
|
|
||||||
else
|
else
|
||||||
# This standard set of MAC's will be used in standard mode
|
# This standard set of MAC's will be used in standard mode
|
||||||
# Usage: ./relaymyhome en1
|
# Usage: ./relaymyhome
|
||||||
# (Replacing en1 with your specific WiFi interface)
|
|
||||||
addr[0]='00:0D:67:15:2D:82'
|
addr[0]='00:0D:67:15:2D:82'
|
||||||
addr[1]='00:0D:67:15:D7:21'
|
addr[1]='00:0D:67:15:D7:21'
|
||||||
addr[2]='00:0D:67:15:D5:44'
|
addr[2]='00:0D:67:15:D5:44'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue