Berikut contoh script auto login WiFi ID WMS, silahkan ganti username dan password terlebih dahulu sebelum script ini di gunakan di Mikrotik Anda
:if ([/ping address=8.8.8.8 count=10] = 0) do={
/ip dns cache flush
/ip dhcp-client release [find interface=wlan1]
log warning ("DAPAT IP BARU")
delay 10
log warning ("@wifi.id is UP")
:local ip [/ip address get [/ip address find interface="wlan1"] address];
:local mac [/interface wireless get [ find default-name=wlan1 ] mac-address];
:local ip [put [:pick $ip 0 [:find $ip "/"]]];
/tool fetch http-header-field="User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0" http-data="username=84001524615@spin2&password=83950574517867" url= ("https://welcome2.wifi.id/authnew/login/check_login.php?ipc=$ip&gw_id=WAG-D7-BAL&mac=$mac&redirect=&wlan=MSBAL00040-N/TLK-CI-14796:@wifi.id") keep-result=no;
} else {
log error ("@wifi.id is down --- COBA LAGI ...")
}