Advertisement
asyams

wms autologin

May 23rd, 2019
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. https://welcome2.wifi.id/wms/?gw_id=WAG-D4-KBU&client_mac=74:4d:28:2e:8e:2a&wlan=KMGOM00057/TLK-WI32312450-0001:SKB
  2. ____________________________________________________________________________________________________________________
  3. yg pertu digati=
  4. 1. gw_id
  5. 2.mac&wlan
  6.  
  7.  
  8. :if ([/ping address=8.8.8.8 count=2] = 0) do={
  9. /ip dns cache flush
  10. /ip dhcp-client release [find interface=namainterfacewlan]
  11. log warning ("NEW DHCP CLIENT")
  12. delay 10
  13. log error ("@WMS is down --- trying to reconnect ......")
  14. :local ip [/ip address get [/ip address find interface="wlan2"] address];
  15. :local mac [/interface wireless get [ find default-name=wlan2 ] mac-address];
  16. :local ip [put [:pick $ip 0 [:find $ip "/"]]];
  17. /tool fetch http-method=post http-data="username=radiokopi&password=radiokopi" url=("https://welcome2.wifi.id/wms/auth/authnew/autologin/quarantine.php\?ipc=$ip&gw_id=?gw_id=WAG-D4-KBU&client_mac=$mac&wlan=74:4d:28:2e:8e:2e&wlan=KMGOM00057/TLK-WI32312450-0001:SKB") keep-result=no;
  18. } else {
  19. log warning ("@WMS is UP")
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement