-
Notifications
You must be signed in to change notification settings - Fork 2
/
WIFI.pass1
95 lines (73 loc) · 5 KB
/
WIFI.pass1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
fchangeMacLoop.sh 0000700 0000000 0023415 00000001402 12667627022 011607 0 ustar 0 9997 #!/system/bin/sh
# firstPrime : x40 = 64
# lastPrime : x4F = 79
# first Extended : 00 - 9F (00 - 159)
min=0
max=159
#15 minutes = 900
wait=180
echo "Start Rotating Mac"
index=`cat macIndex`
if [[ ${index} -lt ${min} || ${index} -gt ${max} ]]
then
echo "reset mac to " $min
index=$min
fi
while true
do
hexindex=`printf "%X\n" $index`
echo "Set MAC to " $index " / " $hexindex
am start -n com.android.settings/.TetherSettings
input tap 600 200
sleep 2
echo -ne '\x'$hexindex | dd of=/data/nvram/APCFG/APRDEB/WIFI bs=1 seek=9 conv=notrunc
input tap 600 200
index=$(($index+1))
if [ ${index} -gt ${max} ]
then
echo "reset mac to " $min
index=$min
fi
echo $index > macIndex
echo "wait " $wait " seconds"
sleep $wait
done