Guest User

streamup anti fraud

a guest
Feb 12th, 2026
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. <script>
  2. const file_id = "2768397",
  3. visitorData = {
  4. file_id: "2768397",
  5. gpu: null,
  6. cpu: null,
  7. screen_res: `${screen.width}x${screen.height}`,
  8. iframe_size: `${window.innerWidth}x${window.innerHeight}`,
  9. mouse_position: "",
  10. click_position: "",
  11. page_duration: 0,
  12. referer: document.referrer || window.location.href,
  13. watch_time: 0,
  14. tab_visibility_changes: 0
  15. };
  16. let startTime = Date.now(),
  17. lastActivityTime = Date.now(),
  18. inactivityStart = null;
  19.  
  20. function updateActivity() {
  21. lastActivityTime = Date.now()
  22. }
  23. document.addEventListener("mousemove", t => {
  24. visitorData.mouse_position = `${t.pageX}x${t.pageY}`, updateActivity()
  25. }), document.addEventListener("click", t => {
  26. visitorData.click_position = `${t.pageX}x${t.pageY}`, updateActivity()
  27. }), document.addEventListener("visibilitychange", () => {
  28. document.hidden && visitorData.tab_visibility_changes++
  29. }), setInterval(() => {
  30. let t = Date.now();
  31. t - lastActivityTime >= 1e4 && !inactivityStart ? inactivityStart = lastActivityTime : t - lastActivityTime < 1e4 && inactivityStart && (inactivityStart = null)
  32. }, 1e3);
  33. try {
  34. let t = document.createElement("canvas"),
  35. i = t.getContext("webgl") || t.getContext("experimental-webgl"),
  36. a = i.getExtension("WEBGL_debug_renderer_info");
  37. visitorData.gpu = a ? i.getParameter(a.UNMASKED_RENDERER_WEBGL) : "Unknown"
  38. } catch {
  39. visitorData.gpu = "Unavailable"
  40. }
  41. visitorData.cpu = navigator.hardwareConcurrency ? `${navigator.hardwareConcurrency} cores` : "Unknown";
  42. let hasSentData = !1;
  43.  
  44. function sendVisitorData() {
  45. hasSentData || (hasSentData = !0, visitorData.page_duration = Math.round((Date.now() - startTime) / 1e3), visitorData.watch_time = Math.round(totalWatchTime), fetch("/ajax/data", {
  46. method: "POST",
  47. headers: {
  48. "Content-Type": "application/json"
  49. },
  50. body: JSON.stringify(visitorData)
  51. }).catch(() => {}))
  52. }
  53. setInterval(() => {
  54. "undefined" != typeof totalWatchTime && !hasSentData && Math.floor(totalWatchTime) >= 87 && sendVisitorData()
  55. }, 500);
  56.  
  57. </script>
  58.  
Advertisement
Add Comment
Please, Sign In to add comment