ZernaxLeDozo

Untitled

Nov 20th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. function ShowUI() {
  2. var Visibility = document.getElementById('MountShit');
  3. var DarkenBack = document.getElementById('DarkBack');
  4. if(Visibility.style.visibility == "hidden")
  5. {
  6. Visibility.style.visibility = "visible";
  7. DarkenBack.style.visibility = "visible";
  8. } else {
  9. Visibility.style.visibility = "hidden";
  10. DarkenBack.style.visibility = "hidden";
  11. }
  12. }
  13.  
  14. $(document.body).on("keydown", this, function (event) { if (event.keyCode == 117) { ShowUI(); } });
  15.  
  16. function Inject()
  17. {
  18. var StatusConsole = document.getElementById('StatusText');
  19. StatusConsole.append('Authenticating...\n');
  20. var Email = BdApi.getData('Platinbots', 'Username');
  21. var Password = BdApi.getData('Platinbots', 'Password');
  22. $.get("https://platinbots.xyz/API/Authenticate.php?E=" + Email + "&P=" + Password, function(ReturnedData) {
  23. if(ReturnedData == "1")
  24. {
  25. $.get("https://platinbots.xyz/API/Username.php?E=" + Email, function(UsernameReturned) {
  26. var Username = UsernameReturned;
  27. StatusConsole.append('Authenticated...\n');
  28. StatusConsole.append('Loading css...\n');
  29. $.get("https://platinbots.xyz/cdn/PlatinCss.php", function(CssData) {
  30. var CSS = document.createElement("style");
  31. document.getElementsByTagName("head")[0].append(CSS);
  32. CSS.innerText = CssData;
  33. });
  34. StatusConsole.append('Loaded css...\n');
  35. StatusConsole.append('Loading javascript...\n');
  36. $.get("https://platinbots.xyz/cdn/PlatinJS.php", function(JSData) {
  37. var script = document.createElement("script");
  38. document.getElementsByTagName("head")[0].append(script);
  39. script.innerText = JSData;
  40. });
  41. StatusConsole.append('Loaded javascript...\n');
  42. StatusConsole.append('Loading HTML...\n');
  43. StatusConsole.append('Loaded HTML...\n');
  44. StatusConsole.append('Welcome back ' + Username + "\nClosing injector in 2 seconds!");
  45. setTimeout(function () {
  46. document.getElementById('InjectorID').remove();
  47. $.get("https://platinbots.xyz/BetaTest/?Name=" + Username, function(HTMLData) {
  48. document.getElementById('MountShit').innerHTML += HTMLData;
  49. });
  50. }, 2000);
  51. });
  52. } else if(ReturnedData == "69") {
  53. StatusConsole.append('Your account does not have a payed membership :C\nClosing injector in 5 seconds!');
  54. setTimeout(function () {
  55. document.getElementById('InjectorID').remove();
  56. }, 5000);
  57. } else {
  58. StatusConsole.append('Your account could not be found :C\nGoto the plugin settings and enter/edit your credentials\nClosing injector in 5 seconds!');
  59. setTimeout(function () {
  60. document.getElementById('InjectorID').remove();
  61. }, 5000);
  62. }
  63. });
  64. }
Add Comment
Please, Sign In to add comment