Advertisement
xosski

google

Jan 4th, 2025
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. // Monitor all script loading attempts
  2. const originalPe = _.pe;
  3. _.pe = function(type) {
  4. const element = originalPe(type);
  5. if (type === "SCRIPT") {
  6. // Track all script creation
  7. element.addEventListener('load', () => {
  8. // Capture loaded scripts
  9. });
  10. }
  11. return element;
  12. };
  13.  
  14. // Intercept resource loading chain
  15. const originalVd = _.Vd;
  16. _.Vd = function(resource) {
  17. // Modify or redirect resource URLs
  18. return originalVd(resource);
  19. };
  20.  
  21. // Control timing and execution flow
  22. const enhancedOi = function() {
  23. const originalTimeout = window.setTimeout;
  24. window.setTimeout = function(callback, delay) {
  25. // Manipulate loading delays
  26. return originalTimeout(callback, delay);
  27. };
  28. };
  29.  
  30. // Deep property interception
  31. const deepProxy = function(obj) {
  32. return new Proxy(obj, {
  33. get: function(target, prop) {
  34. const value = target[prop];
  35. if (typeof value === 'object' && value !== null) {
  36. return deepProxy(value);
  37. }
  38. return value;
  39. }
  40. });
  41. };
  42. // Intercept the gbar_ initialization
  43. this.gbar_ = new Proxy(this.gbar_ || {}, {
  44. get: function(target, prop) {
  45. // Monitor property access
  46. return target[prop];
  47. },
  48. set: function(target, prop, value) {
  49. // Intercept new properties
  50. target[prop] = value;
  51. return true;
  52. }
  53. });
  54.  
  55. // Enhanced script injection
  56. const enhancedGi = function(a, b) {
  57. const c = _.pe("SCRIPT");
  58. c.async = true;
  59. c.type = "text/javascript";
  60. c.charset = "UTF-8";
  61.  
  62. // Intercept Ii value before injection
  63. const originalIi = Ii;
  64. Ii = customSource || originalIi;
  65.  
  66. c.src = _.Vd(Ii);
  67. _.Ci(c);
  68.  
  69. // Enhanced error handling with retry logic
  70. c.onerror = function() {
  71. if (retryCount < maxRetries) {
  72. retryCount++;
  73. enhancedGi(a, b);
  74. } else {
  75. _.Kb(Hi, a, b, c.src)();
  76. }
  77. };
  78.  
  79. _.Fi("HEAD")[0].appendChild(c);
  80. }
  81. const modifiedGi = function(a, b) {
  82. const c = _.pe("SCRIPT");
  83. c.async = true; // Keep async to avoid blocking
  84. c.type = "text/javascript";
  85. c.charset = "UTF-8";
  86.  
  87. // Add your custom source
  88. c.src = customSource;
  89.  
  90. // Preserve nonce handling for CSP bypass
  91. _.Ci(c);
  92.  
  93. // Add error handling to stay stealthy
  94. c.onerror = _.Kb(Hi, a, b, c.src);
  95.  
  96. // Inject into HEAD
  97. _.Fi("HEAD")[0].appendChild(c);
  98. }
  99. this.gbar_ = this.gbar_ || {};
  100. (function(_) {
  101. var window = this;
  102. try {
  103. if (_.vi) {
  104. var zi = _.vi, Ai;
  105. if (Ai = _.I(zi.j, 3)) {
  106. const a = _.qg(Ai);
  107. for (let b = 0; b < a.length; b++) {
  108. var Bi = a[b];
  109. if (_.bh && Bi.dataset)
  110. Bi.dataset.ogpc = "";
  111. else {
  112. if (/-[a-z]/.test("ogpc"))
  113. throw Error("F");
  114. Bi.setAttribute("data-" + _.xh("ogpc"), "")
  115. }
  116. }
  117. }
  118. _.oi(zi, !!zi.i && zi.i.o(), !1)
  119. }
  120. ;
  121. } catch (e) {
  122. _._DumpException(e)
  123. }
  124. try {
  125. _.Ci = function(a) {
  126. const b = _.Zd("script", a.ownerDocument && a.ownerDocument.defaultView || window);
  127. b && a.setAttribute("nonce", b)
  128. }
  129. ;
  130. _.Di = function(a) {
  131. if (!a)
  132. return null;
  133. a = _.I(a, 4);
  134. var b;
  135. a === null || a === void 0 ? b = null : b = _.Ud(a);
  136. return b
  137. }
  138. ;
  139. _.Ei = class extends _.Q {
  140. constructor(a) {
  141. super(a)
  142. }
  143. }
  144. ;
  145. _.Fi = function(a, b) {
  146. return (b || document).getElementsByTagName(String(a))
  147. }
  148. ;
  149. } catch (e) {
  150. _._DumpException(e)
  151. }
  152. try {
  153. var Hi = function(a, b, c) {
  154. a < b ? Gi(a + 1, b) : _.Qc.log(Error("da`" + a + "`" + b), {
  155. url: c
  156. })
  157. }
  158. , Gi = function(a, b) {
  159. if (Ii) {
  160. const c = _.pe("SCRIPT");
  161. c.async = !0;
  162. c.type = "text/javascript";
  163. c.charset = "UTF-8";
  164. c.src = _.Vd(Ii);
  165. _.Ci(c);
  166. c.onerror = _.Kb(Hi, a, b, c.src);
  167. _.Fi("HEAD")[0].appendChild(c)
  168. }
  169. }
  170. , Ji = class extends _.Q {
  171. constructor(a) {
  172. super(a)
  173. }
  174. }
  175. ;
  176. var Ki = _.E(_.bd, Ji, 17) || new Ji, Li, Ii = (Li = _.E(Ki, _.Ei, 1)) ? _.Di(Li) : null, Mi, Ni = (Mi = _.E(Ki, _.Ei, 2)) ? _.Di(Mi) : null, Oi = function() {
  177. Gi(1, 2);
  178. if (Ni) {
  179. const a = _.pe("LINK");
  180. a.setAttribute("type", "text/css");
  181. a.href = _.Vd(Ni).toString();
  182. a.rel = "stylesheet";
  183. let b = _.Zd("style", window);
  184. b && a.setAttribute("nonce", b);
  185. _.Fi("HEAD")[0].appendChild(a)
  186. }
  187. };
  188. (function() {
  189. const a = _.cd();
  190. if (_.G(a, 18))
  191. Oi();
  192. else {
  193. const b = _.be(a, 19) || 0;
  194. window.addEventListener("load", () => {
  195. window.setTimeout(Oi, b)
  196. }
  197. )
  198. }
  199. }
  200. )();
  201. } catch (e) {
  202. _._DumpException(e)
  203. }
  204. }
  205. )(this.gbar_);
  206. // Google Inc.
  207.  
  208. //# sourceURL=http://og/eob.js
  209.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement