HOME

WIFI.ID WMS AND SEAMLESS AUTO LOGIN SCRIPT GENERATOR FOR MIKROTIK ROUTEROS

Script Generator Results
#####################################################################
# Wifi.id WMS and Seamless Auto Login Script Generator By BuanaNETPBun.Github.io
# Date/Time:
# Created By: BuanaNETPBun.Github.io - fb.me/buananet.pbun
# Wifi.id Type -> WMS WIFI.ID
#####################################################################
/interface wireless set [ find default-name=wlan1] name=wlan1 comment="WIFI.ID BY BNT"
/interface wireless set [ find default-name=wlan2] name=wlan2 comment="WIFI.ID BY BNT"
/ip firewall nat add chain=srcnat out-interface="" action=masquerade comment="WIFI.ID BY BNT"
/ip dhcp-client
add default-route-distance=1 disabled=no interface="wlan1" comment="WIFI.ID BY BNT" script=":local rma\ rk \"check-wms-\";\r\ \n:local count [/ip route print count-only where comment=\$rmark];\r\ \n:if (\$count = 0) do={\r\ \n /ip route add gateway=\$\"gateway-address\" comment=\$rmark routing-mar\ k=\$rmark check-gateway=ping;\r\ \n} else={\r\ \n:if (\$count = 1) do={\r\ \n:local test [/ip route find where comment=\$rmark];\r\ \n:if ([/ip route get \$test gateway] != \$\"gateway-address\") do={\r\ \n /ip route set \$test gateway=\$\"gateway-address\";\r\ \n}}}"
/system script
add dont-require-permissions=no name="WMS-AUTO-LOGIN" comment="WIFI.ID BY BNT" policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\
local USERNAME \".\";\r\ \n:local PASSWWORD \"\";\r\ \n:local GWID \"\";\r\ \n:local WLANID \"\";\r\ \n:local SESSIONID \"wlan1\";\r\ \n:local INTDEFNAME \"\";\r\ \n:local REDIRECT \"\";\r\ \n:local MAC [/interface wireless get [ find default-name=\$INTDEFNAME ] m\ ac-address];\r\ \n:local INTNAME [/interface wireless get [ find default-name=\$INTDEFNAME\ ] name];\r\ \n:local IPADDR [/ip address get [/ip address find interface=\$INTNAME] ad\ dress];\r\ \n:local IPADDR [put [:pick \$IPADDR 0 [:find \$IPADDR \"/\"]]];\r\
\n:tool fetch mode=https http-header-field=\"Content-Type: application/x-w\ ww-form-urlencoded; charset=UTF-8,User-Agent: Mozilla/5.0 (Windows NT 10.0\ ; Win64; x64) AppleWebKit/537.36,Referer: https://welcome2.wifi.id/login/\ \?gw_id=\$GWID&client_mac=\$MAC&wlan=\$WLANID&sessionid=\$SESSIONID&redire\ ct=\$REDIRECT\" http-method=post http-data=\"username=\$USERNAME&pa\ ssword=\$PASSWWORD\" url=\"https://welcome2.wifi.id/wms/auth/authnew/autol\ ogin/quarantine.php\\\?ipc=\$IPADDR&gw_id=\$GWID&mac=\$MAC&username=\$USER\ NAME&password=\$PASSWWORD&redirect=\$REDIRECT&wlan=\$WLANID\";\r\ \n"
/system scheduler
add comment="WIFI.ID By BNT" interval=1m name=WMS-AUTO-LOGIN on-event="if ([/i\ p route get [/ip route find comment=\"check-wms-\"] active]=no) do={\ \r\ \n:local INTNAME [/interface wireless get [ find default-name=\"\"] n\ ame];\r\ \n/ip dhcp-client disable [find interface=\$INTNAME] ;\r\ \n:delay 2s;\r\ \n/ip dhcp-client enable [find interface=\$INTNAME] ;\r\ \n:delay 10s;\r\ \n/system script run WMS-AUTO-LOGIN;\r\ \n}\r\ \n" policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \ start-time=startup

[ View Tutorial ] Copy-Paste Script to Terminal :)