فكرة جديدة لطرد المخترقين في ميكروتك anti netcut

ماهو  برنامج نت كت 

فكرة جديدة لطرد المخترقين  في  ميكروتك anti netcut

فكرة جديدة لطرد المخترقين  في  ميكروتك anti netcut

 الفكرة جميلة 


اسكريبت يقوم بالفحص عن الماكات المكررة ويقوم بحذفه من الاكتف وحذفه من cookie

انسخ الامر والصق في تيرمينال

اسكريبت طرد المخترقين ميكروتك


/system scheduler add interval=15m name=Anti-netcut Izz-Net on-event="/ip dhcp-server lease { :local hostNames :foreach h1 in=[find] do={ :local hostName [get $h1 host-name] :if ([:len $hostName] > 0) do={ :set hostNames ($hostNames , $hostName) } } :local theve :foreach hn1 in=$hostNames do={ :local hostNameCount 0 :foreach hn2 in=$hostNames do={ :if ($hn2 = $hn1) do={ :set hostNameCount ($hostNameCount + 1) } } :if ($hostNameCount > 1) do={ :set theve ($theve , $hn1) } } :if ([:len $theve] >0 ) do={ :log warning ("mac chang izz: " . $theve) :foreach hn in=$theve do={ :foreach i in=[find host-name=$hn] do={ :local ipnum [get $i address] :local mac [get $i mac-address] /ip hotspot active remove [/ip hotspot active find address=$mac] /ip hotspot cookie remove [/ip hotspot cookie find mac-address=$mac] /ip dhcp-server lease remove [/ip dhcp-server lease find host-name=$hn] } } :log info " found mac" :log info $mac } }
تعليقات
ليست هناك تعليقات
إرسال تعليق