remove users who steal mac address

Does this work with routerOS v4.13

Programs that steal IP and mac address like NetCut, Doesn’t show the PC name. We can benefit from this if we see that the same MAC address has appeared for different PC in short time, Then the second computer is stealer and we can remove lease of DHCP user and the new users will get new lease.
A second best script might be this from pipi

:local hosts [:toarray “comp1,comp2”]
:local host;
:local ipnum;
:local unum;
:local usr;
:local i;

:foreach host in=$hosts do={
:foreach i in= [/ip dhcp-server lease find host-name=$host] do={
:set ipnum [/ip dhcp-server lease get $i address];
:set unum [/ip hotspot active find address=$ipnum];
:set usr [/ip hotspot active get $unum user];
:log warning ($host . " " . $ipnum . " " . $usr);
/ip hotspot active remove $unum
/ip dhcp-server lease remove [/ip dhcp-server lease find host-name=$host]
}
}

>

:

Please correct the codes if they have errors