You are on page 1of 1

/system script

add name="ShadySoft Mac" policy=\


ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
source="# define char table\r\
\n:global chArray 0abcdef0123456789abcdef012345abcdef0123456789abcdef01234\
56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef012345\r\
\n:local strPass \"\";\r\
\n\r\
\n\r\
\n#get counters\r\
\n#:local chz1num [/system clock get time ];\r\
\n#:local chz2num [/system clock get time ];\r\
\n:local chz3num [/system clock get time ];\r\
\n:local chz4num [/system clock get time ];\r\
\n:local chz5num [/system clock get time ];\r\
\n:local chz6num [/system clock get time ];\r\
\n:local chz7num [/system resource get cpu-load ];\r\
\n:local chz8num [/system resource get cpu-load ];\r\
\n:local chz9num [/system resource get uptime ];\r\
\n:local chz10num [/system resource get uptime ];\r\
\n:local chz11num [/system resource get uptime ];\r\
\n:local chz12num [/system resource get cpu-load ];\r\
\n\r\
\n\r\
\n:local ch1num 0;\r\
\n:local ch2num 0;\r\
\n:local ch3num [:pick \$chz3num 6 8];\r\
\n:local ch4num [:pick \$chz4num 6 8];\r\
\n:local ch5num [:pick \$chz5num 6 8];\r\
\n:local ch6num [:pick \$chz6num 6 8];\r\
\n:local ch7num [:pick \$chz7num];\r\
\n:local ch8num [:pick \$chz8num];\r\
\n:local ch9num [:pick \$chz9num 5 7];\r\
\n:local ch10num [:pick \$chz10num 2 4];\r\
\n:local ch11num [:pick \$chz11num 8 10];\r\
\n:local ch12num [:pick \$chz12num];\r\
\n\r\
\n# generate password\r\
\n:set strPass ( [:tostr [ :pick \$chArray \$ch1num ]] . [:tostr [:pick \$\
chArray \$ch2num ]] . [:tostr [:pick \$chArray (\$ch3num+\$chz12num) ]] . \
[:tostr [:pick \$chArray (\$ch4num*2) ]] . [:tostr [:pick \$chArray (\$ch5\
num+16) ]] . [:tostr [:pick \$chArray (\$ch6num+4) ]] . [:tostr [:pick \$c\
hArray (\$ch7num+12) ]] . [:tostr [:pick \$chArray \$ch8num ]] . [:tostr [\
:pick \$chArray \$ch9num ]] . [:tostr [:pick \$chArray \$ch10num ]] . [:to\
str [:pick \$chArray \$ch11num ]] . [:tostr [:pick \$chArray \$ch12num ]] \
);\r\
\n\r\
\n/interface ethernet set LAN2 mac-address=\$strPass;\r\
\n:log warning \$strPass;\r\
\n#the end"
/system scheduler
add disabled=no interval=4h name="ShadySoft Mac" on-event="ShadySoft Mac" \
policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
start-date=aug/30/2013 start-time=00:00:00
------------------- 4
----------- ( )
http://mikrotikarabic.blogspot.com/

You might also like