<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="【原创】ROS自动记录蹭网客户端脚本（3.22已测试可以使用）">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">熊茂祥</a><br />时间:2010-08-31 12:28<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">ROS</a><br />附件:<a href="index.php?action=downfile&amp;id=27&amp;hash=">1.jpg</a><br />内容:
ROS里将所有已知客户端MAC标记为其他对应名字后，然后再新建一个unknown不指定MAC放在最后。

每5分钟记录一次，发现蹭网客户这记录下相应MAC，信号，速度，在线时间。效果如图。


:foreach i in=[/interface wireless registration-table find comment=&quot;unknown&quot;] do={

:local a [/interface wireless registration-table get $i mac]

:local b [:pick [/interface wireless registration-table get $i signal-str] 0 5]

:local c [/interface wireless registration-table get $i tx-rate]

:local d [/interface wireless registration-table get $i rx-rate]

:local e [/interface wireless registration-table get $i uptime]

:local f (&quot;Found unknown wireless user&quot; . &quot; mac:&quot; . $a . &quot; signal:&quot; . $b . &quot; tx-rate:&quot; . $c . &quot; rx-rate:&quot; . $d . &quot; uptime:&quot; . $e)

:log warning [:put $f]

}
</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
