I'm trying to detect untrusted fake Mikrotik router (installed by hacker on virtual machine) in my wlan & kick it out
here is my simple script (noOBy one)
Code: Select all
:global int ;
:foreach int in=[/ip neighbor find] do={
:if ( [/ip neighbor get $int value-name=identity ] = "MikroTik" ) do={
:log info "Hacker!"
/ip neighbor get $int value-name=mac-address
/interface wireless access-list add mac-address=$int mac-address
} else={:log info "CleaN!"}
}
Code: Select all
interrupted
invalid value of mac-address, mac address required
Thank you