ROS软路由一键修改mac跟ssid脚本

2024-01-02

{

:local TPMAC "BC:46:99,3C:46:D8,54:C8:0F,CC:34:29,D4:01:6D,EC:08:6B,18:A6:F7,24:69:68,30:B4:9E,00:0A:EB,C0:25:E9,70:4F:57,B0:4E:26,94:D9:B3,80:8F:1D,B0:BE:76,D8:0D:17,CC:08:FB,00:1D:0F,5C:63:BF,B0:48:7A,38:83:45,14:E6:E4,64:70:02,64:66:B3,6C:E8:73,30:B5:C2,9C:21:6A,E8:DE:27,14:86:92,1C:FA:68,BC:D1:77,C0:4A:00,08:1F:71,D4:6E:0E,C0:E4:2D,18:D6:C7,78:44:FD,50:3E:AA,AC:84:C6,B8:F8:83,DC:FE:18,20:6B:E7,9C:A6:15,68:FF:7B,00:19:E0,D8:15:0D,0C:72:2C,A8:15:4D,78:A1:06,28:2C:B2,8C:A6:DF,28:EE:52,34:96:72,48:7D:2E,54:75:95,D0:76:E7,FC:D7:33,54:E6:FC,D8:5D:4C,F8:1A:67"

:local HWMAC "E0:43:DB,48:AD:08,2C:AB:00,00:E0:FC,24:DF:6A,00:9A:CD,80:38:BC,D4:40:F0,64:A6:51,E8:CD:2D,AC:E2:15,EC:23:3D,78:F5:FD,80:B6:86,10:C6:1F,88:53:D4,0C:37:DC,BC:76:70,24:DB:AC,0C:45:BA,CC:A2:23,E8:08:8B,60:E7:01,AC:85:3D,74:88:2A,78:D7:52,E0:24:7F,00:46:4B,70:7B:E8,54:89:98,08:19:A6,3C:F8:08,B4:15:13,DC:D2:FC,28:5F:DB,40:4D:8E,78:1D:BA,00:1E:10,D0:3E:5C,F8:98:B9,2C:CF:58,E4:C2:D1,88:A2:D7,3C:47:11,D0:D0:4B,9C:52:F8,DC:09:4C,DC:EE:06,58:60:5F,88:28:B3,C4:F0:81,80:13:82,48:3C:0C,2C:9D:1E,C8:8D:83,F0:43:47,9C:B2:B2,84:BE:52,F0:98:38,18:DE:D7,C8:0C:C8"

:local TendaMAC "C8:3A:35,E8:65:D4,58:D9:D5,B4:0F:3B,04:95:E6,50:0F:F5,CC:2D:21,D8:32:14,B0:DF:C1,08:40:F3,50:2B:73,B8:3A:08,E0:05:C5,A0:F3:C1,8C:21:0A,EC:17:2F,EC:88:8F,14:CF:92,14:CC:20,C4:E9:84,E8:94:F6,DC:00:77,B0:95:8E,7C:8B:CA,0C:4B:54,C4:71:54,48:0E:EC,0C:80:63,98:DA:C4,A4:2B:B0,EC:26:CA,F8:D1:11,00:23:CD,40:16:9F,94:0C:6D,74:EA:3A,90:F6:52,10:FE:ED,C4:6E:1F,50:FA:84,F4:83:CD,88:25:93,80:89:17,5C:89:9A,50:BD:5F,14:75:90,60:E3:27,E4:D3:32,44:B3:2D,90:AE:1B,9C:D6:43,5C:D9:98,00:05:5D,A0:AB:1B,10:62:EB,78:32:1B,00:AD:24,EC:22:80,14:D6:4D,C8:BE:19,BC:F6:85"

:local MERCURYMAC "00:26:0D,00:20:9F,00:80:B6,C8:77:8B,00:0F:E5,50:89:65,50:3A:A0,6C:59:40,1C:60:DE,F4:EE:14,64:0D:CE,C0:A5:DD,BC:54:FC,8C:F2:28,BC:5F:F6,E4:F3:F5,C8:E7:D8,D0:25:16,38:6B:1C,00:4B:F3,48:8A:D2,3C:2C:94,B0:48:7A,38:83:45,14:E6:E4,64:70:02,64:66:B3,6C:E8:73,30:B5:C2,B0:48:7A,38:83:45,14:E6:E4,64:70:02,64:66:B3,6C:E8:73,30:B5:C2,9C:21:6A,E8:DE:27,14:86:92,1C:FA:68,BC:D1:77,C0:4A:00,08:1F:71,D4:6E:0E,C0:E4:2D,18:D6:C7,78:44:FD,50:3E:AA,AC:84:C6,B8:F8:83,DC:FE:18,20:6B:E7,80:35:C1,94:87:E0,7C:03:AB,D4:97:0B,F4:8B:32,4C:49:E3,04:B1:67,D8:CE:3A,48:FD:A3,7C:03:5E"

:local XiaoMiMAC "8C:5A:F8,F8:A4:5F,8C:BE:BE,64:09:80,98:FA:E3,9C:99:A0,C4:0B:CB,EC:D0:9F,F4:F5:DB,E4:46:DA,18:F0:E4,9C:2E:A1,50:A0:09,20:A6:0C,D8:32:E3,E0:62:67,48:2C:A0,18:01:F1,70:BB:E9,F0:B4:29,0C:98:38,0C:1D:AF,28:E3:1F,14:F6:5A,70:3A:51,04:CF:8C,40:31:3C,7C:49:EB,3C:BD:3E,38:A4:ED,B0:E2:35,64:CC:2E,D8:63:75,80:AD:16,20:47:DA,80:35:C1,94:87:E0,7C:03:AB,D4:97:0B,F4:8B:32,4C:49:E3,04:B1:67,D8:CE:3A,48:FD:A3,7C:03:5E,C8:28:32,EC:41:18,20:34:FB,E4:DB:6D,58:44:98,AC:C1:EE,78:02:F8,50:8F:4C,04:D1:3A,0C:F3:46,F4:60:E2,A4:50:46,00:9E:C8,7C:1D:D9,A0:86:C6,10:2A:B3,AC:F7:F3"

:local FASTMAC "00:50:BA,00:17:9A,1C:BD:B9,90:94:E4,28:10:7B,1C:7E:E5,C4:A8:1D,F8:E9:03,6C:19:8F,B0:C5:54,C0:A0:BB,D8:FE:E3,00:80:C8,1C:5F:2B,10:BE:F5,40:9B:CD,0C:B6:D2,00:0F:3D,00:15:E9,00:1C:F0,00:26:5A,AC:F1:DF,FC:75:16,9C:D6:43,5C:D9:98,00:05:5D,A0:AB:1B,10:62:EB,78:32:1B,00:AD:24,EC:22:80,14:D6:4D,C8:BE:19,BC:F6:85,CC:B2:55,84:C9:B2,E8:CC:18,E4:6F:13,00:19:5B,00:0D:88,1C:AF:F7,B8:A3:86,C8:D3:A3,C4:12:F5,54:B8:0A,3C:1E:04,70:62:B8,80:26:89,28:3B:82,58:D5:6E,00:1B:11,00:1E:58,00:22:B0,F0:7D:68,78:54:2E,90:8D:78,6C:72:20,48:EE:0C,18:0F:76,74:DA:DA,48:0E:EC,0C:80:63,98:DA:C4"

:local CNMAC "00:0F:E2,38:22:D6,80:F6:2E,58:66:BA,0C:DA:41,D4:61:FE,60:DA:83,1C:AB:34,74:EA:C8,74:EA:CB,30:7B:AC,44:1A:FA,88:DF:9E,04:40:A9,38:97:D6,50:DA:00,5C:DD:70,70:3D:15,94:28:2E,AC:74:09,9C:E8:95,3C:F5:CC,74:85:C4,38:91:D5,48:7A:DA,3C:E5:A6,60:0B:03,B0:F9:63,38:AD:8E,38:AD:BE,C4:CA:D9,74:25:8A,70:F9:6D,84:D9:31,9C:06:1B,90:E7:10,DC:DA:80,48:BD:3D,5C:C9:99,04:D7:A5,28:6C:07,68:DF:DD,64:B4:73,74:51:BA,34:80:B3,20:82:C0,FC:64:BA,C4:6A:B7,00:EC:0A,38:E6:0A,04:E5:98,50:64:2B,78:11:DC,34:CE:00,A8:9C:ED,DC:FE:18,20:6B:E7,9C:A6:15,68:FF:7B,00:19:E0,D8:15:0D,0C:72:2C,A8:15:4D"

:local MACLIST "TPMAC,HWMAC,TendaMAC,MERCURYMAC,XiaoMiMAC,FASTMAC,CNMAC"

:local sj "665512426412146226134043252515464320460635616265360632556554"

:local cb "QJINIHZ3QPF3CKKP066O2SQMZZDT52FDRBNZVI0GPJ3RPR3603366AHGA6I4D"

:local cc "1923566640377859528437585902854994807386221511453524510640109"

:local cd "BUBEDAPSZAEEMBAWMSOXDIRGLWKVYHATRABZKFOEKALOFSGXTMDNTTJDHASUF"

:local ae "D1894245454534F73C0F4878E67D218D955ED464CA1B5225D81017CD9DBACA539D22879E90234E974BBBCDDA2B1718DB614E5B796C0FD1ED81DC9942"

:local af "7693895461BB6D2C3F7DE46101266D3DB1DE433ABCC8020414325AB6BE9C8AE2281B2026B4FAF512EC093082919792FB1348054CF5DEEA12E16DA6B3"

:local ag "5E4D56BF8CF6A2E503D58762ADC3B72282CB58621D5E94CB4B732D7BBA62645B01EDDE361D4354EB3A588F86A6502BAB0F61287ABE756B3ED0C4F459"

:local ah "FFA7790AAA2F23523A5AB6181CF94FA70B1091DA5CB83FC088D55B8DFE73122F6379C9B9C65976533335DE4A995ECA6C54F23BF07DB6DFED9A8C190D"

:local ai "F793EBA357D471D061623595FE6423344FAAACF3EBA4C64D7492625E56BA2662DF921A7BF500B4ABC80965DC610A33025EDAC64407DD6033CD520D0D"

:local aj "E0737B386A1F029CA294EFB60BFBD8A7397E3BCB6771754FC2158E4CD456B2D2A7848DEBE14C8D23A4A077B74FB3FD5500C18D6ABDB90127AA24AADA"

:local ak "068FFC79283F2D048AC854A0F837DE7266E40E1421260FD3451B84B905B59C575DECB3076629FCBE011CA59BF6AA2394EB5FD05F75396F768592365C"

:for i from 1 to 30 do={

:local tt [:pick [/system clock get time ] 6 8];

:local ssid;:local nmac;:local omac;:local MACname;:local ossid;

:set MACname [:pick [:toarray $MACLIST] [:pick $sj $tt]];

if ($MACname="TPMAC") do={:set omac ([:pick [:toarray $TPMAC] $tt]);:set ossid "TP-LINK_";};

if ($MACname="HWMAC") do={:set omac ([:pick [:toarray $HWMAC] $tt]);:set ossid "HUAWEI-";};

if ($MACname="TendaMAC") do={:set omac ([:pick [:toarray $TendaMAC] $tt]);:set ossid "Tenda_";};

if ($MACname="MERCURYMAC") do={:set omac ([:pick [:toarray $MERCURYMAC] $tt]);:set ossid "MERCURY_";};

if ($MACname="XiaoMiMAC") do={:set omac ([:pick [:toarray $XiaoMiMAC] $tt]);:set ossid "Xiaomi_";};

if ($MACname="FASTMAC") do={:set omac ([:pick [:toarray $FASTMAC] $tt]);:set ossid "FAST_";};

if ($MACname="CNMAC") do={:set omac ([:pick [:toarray $CNMAC] $tt]);:set ossid "ChinaNet-";};

:set ssid ($ossid.[:tostr [:pick $cb $tt ]]. [:tostr [:pick $cc $tt ]]. [:tostr [:pick $cd $tt ]])

:delay 1000ms;

:set nmac ($omac.":".[:tostr [:pick $ae $tt ]]. [:tostr [:pick $af $tt ]].":".[:tostr [:pick $ah $tt ]]. [:tostr [:pick $ai $tt ]].":".[:tostr [:pick $aj $tt ]].[:tostr [:pick $ak $tt ]])

:delay 1000ms;

/interface wireless set [/interface wireless find name=("wlan_".$i)] ssid=($ssid.($i-0)) mac-address=$nmac

}

}?=====

:for i from 1 to 10 do={

/interface dis [/interface find name="Vpn_".$i];

:delay 500ms;

/interface en [/interface find name="Vpn_".$i];

}



【本文地址】

地址:广东省广州市天河区88号 客服热线:400-123-4567 传真:+86-123-4567 QQ:1234567890

Copyright © 2012-2018 首页-焦点娱乐-注册登录站琼ICP备xxxxxxxx号

平台注册入口