Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Ubiquiti Radio Shortcut
  3. // @namespace http://tisd.net
  4. // @version 0.2
  5. // @description Enters passwords on Ubiquiti Radios
  6. // @author Janca
  7. // @include htt*://10.123.*/login*
  8. // @include htt*://10.16.*/login*
  9. // @include http*://10.104.*/login*
  10. // @grant none
  11. // ==/UserScript==
  12. var url = document.URL;
  13.  
  14. var username = document.getElementById("username");
  15. username.value = "admin";
  16.  
  17. var password = document.getElementById("password");
  18. if (url.indexOf("master") == -1) {
  19. password.value = atob("VElTRFJvY2tzMg==");
  20. } else {
  21. return;
  22. }
  23.  
  24. var submit = document.getElementById("loginform");
  25. submit.submit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement