Professional Documents
Culture Documents
:do {
:tool fetch mode=https http-header-field="Content-Type: application/x-www-
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=$wlan&sessionid=02202122200000a8923a158623&redirec
t=$redirect" http-method=post http-data="username=$user&password=$pass"
url="https://welcome2.wifi.id/wms/auth/authnew/autologin/quarantine.php\?
ipc=$ip&gw_id=$gwid&mac=$mac&redirect=$redirect&wlan=$wlan" dst-path=wms.txt;
:if ([/ping address=$gateway interface="$ether" count=2] = 0) do={
:log error "Login gagal... ";
/ip dhcp-client release [find interface="$ether"];
}
:if ([/ping address=$gateway interface="$ether" count=2] != 0) do={
:log info "Login sukes..."
:local iRes [/file get wms.txt contents];
:log warning $iRes
delay 1s
:file remove wms.txt
}
}
#:log warning "$user.$char3$char1$char2$wms"
https://welcome2.wifi.id/login/?gw_id=WAG-D5-
KBL&client_mac=70:3A:51:9A:AC:2B&wlan=PBKRZ00019-N/TLK-CI-
59043:@wifi.id&sessionid=WAG-D5-01203120200000d71452067276