Advertisement
Guest User

1v1.lol HACK

a guest
Feb 24th, 2022
17,489
-3
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.35 KB | None | 0 3
  1. // ==UserScript==
  2. // @name 1v1.REKTED
  3. // @version 0.69
  4. // @description BEASTHACK
  5. // @author THAT ONE ZEXXXYMF
  6. // @namespace no
  7. // @match https://1v1.lol/*
  8. // @icon https://www.google.com/s2/favicons?domain=1v1.lol
  9. // @require https://greasyfork.org/scripts/436749-wasm-patcher/code/wasm_patcher.js
  10. // ==/UserScript==
  11.  
  12. const Log = function(msg) {
  13. console.log("1v1.www : " + msg);
  14. };
  15.  
  16. const wasm = WebAssembly;
  17. const oldInstantiate = wasm.instantiate; //
  18.  
  19. wasm.instantiate = async function(bufferSource, importObject) {
  20. const patcher = new WasmPatcher(bufferSource);
  21.  
  22. patcher.aobPatchEntry({
  23. scan: 'B 20 1 20 1 28 ? ? 41 1 [ 6B ] 36 ? ? 41 84 D7 95 3',
  24. code: [
  25. OP.drop,
  26. ],
  27. onsuccess: () => Log('Infinite Ammo')
  28. });
  29.  
  30. patcher.aobPatchEntry({
  31. scan: '2A ? ? | 38 ? ? C 2 B 20 0',
  32. code: [
  33. OP.drop,
  34. OP.f32.const, VAR.f32(0)
  35. ],
  36. onsuccess: () => Log('Rapid Fire')
  37. });
  38.  
  39. patcher.aobPatchEntry({
  40.  
  41. scan: '5 20 0 20 0 28 ? ? ? 20 1 [ 6B ] 36 ? ? ?',
  42. code: [
  43. OP.drop,
  44. ],
  45. onsuccess: () => Log('Infinite Armor')
  46. });
  47.  
  48. if(new URLSearchParams( window.location.search ).get('TU9SRUhBQ0tT') === 'true') {
  49.  
  50. alert('[FreeFly] is added');
  51.  
  52. const pressSpaceKeyIndex = patcher.addGlobalVariableEntry({
  53. type: 'u32',
  54. value: 0,
  55. mutability: true,
  56. exportName: 'PRESS_SPACE_KEY'
  57. });
  58.  
  59. patcher.aobPatchEntry({
  60. scan: '4 40 20 B 20 1D 38 2 0 20 F 20 1E [ 38 2 0 ]',
  61. code: [
  62. OP.global.get, pressSpaceKeyIndex,
  63. OP.i32.const, VAR.s32(1),
  64. OP.i32.eq,
  65. OP.if,
  66. OP.local.get, VAR.u32(15),
  67. OP.f32.const, VAR.f32(2.5),
  68. OP.f32.store, VAR.u32(2), VAR.u32(0),
  69. OP.end
  70. ],
  71. onsuccess: () => Log('Free Fly (offline)')
  72. });
  73.  
  74. patcher.aobPatchEntry({
  75. scan: '4 40 20 6 21 3 B 20 1A 20 21 38 2 0 20 F 20 22 [ 38 2 0 ]',
  76. code: [
  77. OP.drop,
  78. OP.drop,
  79. OP.global.get, pressSpaceKeyIndex,
  80. OP.i32.const, VAR.s32(1),
  81. OP.i32.eq,
  82. OP.if,
  83. OP.local.get, VAR.u32(15),
  84. OP.f32.const, VAR.f32(2.5),
  85. OP.f32.store, VAR.u32(2), VAR.u32(0),
  86. OP.end
  87. ],
  88. onsuccess: () => Log('Free Fly (online)')
  89. });
  90. }
  91.  
  92. const result = await oldInstantiate(patcher.patch(), importObject);
  93.  
  94. if(new URLSearchParams( window.location.search ).get('TU9SRUhBQ0tT') === 'true') {
  95. const exports = result.instance.exports;
  96.  
  97. const pressSpaceKey = exports.PRESS_SPACE_KEY;
  98.  
  99. document.addEventListener('keydown', evt => evt.code === 'Space' && (pressSpaceKey.value = 1));
  100. document.addEventListener('keyup', evt => evt.code === 'Space' && (pressSpaceKey.value = 0));
  101.  
  102. localStorage.removeItem('TU9SRUhBQ0tT');
  103. }
  104.  
  105. return result;
  106. };
  107.  
  108. if(new URLSearchParams( window.location.search ).get('TU9SRUhBQ0tT') === 'true') return;
  109.  
  110. const $moreHacks = document.createElement('a');
  111. const $ads = document.querySelector('ads');
  112. $moreHacks.innerText = 'MADE BY THAT ONE ZEXXXY MF';
  113. $moreHacks.style.display = 'flex';
  114. $moreHacks.style.position = 'absolute';
  115. $moreHacks.style.zIndex = '50';
  116. $moreHacks.style.color = 'black';
  117. $moreHacks.style.cursor = 'pointer';
  118. document.body.prepend($moreHacks);
  119.  
  120. $moreHacks.onclick = function() {
  121. localStorage.setItem('TU9SRUhBQ0tT', true);
  122. location.href = 'https://www.youtube.com/channel/UCT--TDeInyYo9tNb0K7n_IA';
  123. };
  124.  
  125.  
  126.  
  127. var MODMENU = document.createElement('MODMENU');
  128. MODMENU.innerText = 'ESP';
  129. MODMENU.style.display = 'flex';
  130. MODMENU.style.position = 'absolute';
  131. MODMENU.style.zIndex = '100';
  132. MODMENU.style.color = 'black';
  133. MODMENU.style.cursor = 'pointer';
  134. document.body.prepend(MODMENU);
  135.  
  136.  
  137.  
  138. MODMENU.onclick = function() {
  139. espEnabled = ! espEnabled;
  140. };
  141.  
  142. let espEnabled = true;
  143. let wireframeEnabled = false;
  144. let shield = false;
  145.  
  146. const WebGL = WebGL2RenderingContext.prototype;
  147.  
  148. const uniformName = 'myUniform';
  149.  
  150. WebGL.shaderSource = new Proxy( WebGL.shaderSource, {
  151. apply( target, thisArgs, args ) {
  152.  
  153. const isVertexShader = args[ 1 ].indexOf( 'gl_Position' ) > - 1;
  154.  
  155. if ( isVertexShader || args[ 1 ].indexOf( 'SV_Target0' ) > - 1 ) {
  156.  
  157. const varName = isVertexShader ? 'gl_Position.z' : 'SV_Target0';
  158. const value = isVertexShader ? '1.0' : 'vec4(1.0, 0.0, 0.0, 1.0)';
  159.  
  160. args[ 1 ] = args[ 1 ].replace( 'void main', 'uniform bool ' + uniformName + ';\nvoid main' )
  161. .replace( /return;/, `${varName} = ${uniformName} ? ${value} : ${varName};` );
  162.  
  163. }
  164.  
  165. return Reflect.apply( ...arguments );
  166.  
  167. }
  168. } );
  169.  
  170. WebGL.getUniformLocation = new Proxy( WebGL.getUniformLocation, {
  171. apply( target, thisArgs, [ program, name ] ) {
  172.  
  173. const result = Reflect.apply( ...arguments );
  174.  
  175. if ( result ) {
  176.  
  177. result.name = name;
  178. result.program = program;
  179.  
  180. }
  181.  
  182. return result;
  183.  
  184. }
  185. } );
  186.  
  187. WebGL.uniform4fv = new Proxy( WebGL.uniform4fv, {
  188. apply( target, thisArgs, args ) {
  189.  
  190. if ( args[ 0 ].name === 'hlslcc_mtx4x4unity_ObjectToWorld' ) {
  191.  
  192. args[ 0 ].program.isUIProgram = true;
  193.  
  194. }
  195.  
  196. return Reflect.apply( ...arguments );
  197.  
  198. }
  199. } );
  200.  
  201. WebGL.drawElements = new Proxy( WebGL.drawElements, {
  202. apply( target, thisArgs, args ) {
  203.  
  204. const program = thisArgs.getParameter( thisArgs.CURRENT_PROGRAM );
  205.  
  206. if ( ! program.uniformLocation ) {
  207.  
  208. program.uniformLocation = thisArgs.getUniformLocation( program, uniformName );
  209.  
  210. }
  211.  
  212. thisArgs.uniform1i( program.uniformLocation, espEnabled && args[ 1 ] > 4000 );
  213.  
  214. args[ 0 ] = wireframeEnabled && ! program.isUIProgram && args[ 1 ] > 6 ? thisArgs.LINES : args[ 0 ];
  215.  
  216. return Reflect.apply( ...arguments );
  217.  
  218. }
  219. } );
  220.  
  221. window.addEventListener( 'keyup', function ( event ) {
  222.  
  223. switch ( String.fromCharCode( event.keyCode ) ) {
  224.  
  225. case 'V' : espEnabled = ! espEnabled; break;
  226. case 'N' : wireframeEnabled = ! wireframeEnabled; break;
  227. case 'P' : shield = ! shield; break;
  228. }
  229.  
  230. } );
  231.  
  232. window.addEventListener( 'DOMContentLoaded', function () {
  233.  
  234. const value = parseInt( new URLSearchParams( window.location.search ).get( 'showAd' ), 16 );
  235.  
  236. const shouldShowAd = isNaN( value ) || Date.now() - value < 0 || Date.now() - value > 10 * 60 * 1000;
  237.  
  238. const el = document.createElement( 'div' );
  239.  
  240. el.innerHTML = `<style>
  241.  
  242. .dialog {
  243. position: absolute;
  244. left: 50%;
  245. top: 50%;
  246. padding: 20px;
  247. background: #1e294a;
  248. color: #fff;
  249. transform: translate(-50%, -50%);
  250. text-align: center;
  251. z-index: 999999;
  252. font-family: cursive;
  253. }
  254.  
  255. .dialog * {
  256. color: #fff;
  257. }
  258.  
  259. .close {
  260. position: absolute;
  261. right: 5px;
  262. top: 5px;
  263. width: 20px;
  264. height: 20px;
  265. opacity: 0.5;
  266. cursor: pointer;
  267. }
  268.  
  269. .close:before, .close:after {
  270. content: ' ';
  271. position: absolute;
  272. left: 50%;
  273. top: 50%;
  274. width: 100%;
  275. height: 20%;
  276. transform: translate(-50%, -50%) rotate(-45deg);
  277. background: #fff;
  278. }
  279.  
  280. .close:after {
  281. transform: translate(-50%, -50%) rotate(45deg);
  282. }
  283.  
  284. .close:hover {
  285. opacity: 1;
  286. }
  287.  
  288. .btn {
  289. cursor: pointer;
  290. padding: 0.5em;
  291. background: red;
  292. border: 3px solid rgba(0, 0, 0, 0.2);
  293. }
  294.  
  295. .btn:active {
  296. transform: scale(0.8);
  297. }
  298.  
  299. </style>
  300. <div class="dialog">${shouldShowAd ? `<big>Loading ad...</big>` : `<div class="close" onclick="this.parentNode.style.display='none';"></div>
  301. <big>ESP & Wireframe</big>
  302. <br>
  303. <br>
  304. [V] to toggle ESP
  305. <br>
  306. [N] to toggle wireframe
  307. <br>
  308. <br>
  309. By Zertalious
  310. <br>
  311. <br>
  312. <div style="display: grid; grid-template-columns: 1fr 1fr; grid-gap: 5px;">
  313. <div class="btn" onclick="window.open('https://discord.gg/K24Zxy88VM')">Discord</div>
  314. <div class="btn" onclick="window.open('https://www.instagram.com/zertalious/', '_blank')">Instagram</div>
  315. <div class="btn" onclick="window.open('https://twitter.com/Zertalious', '_blank')">Twitter</div>
  316. <div class="btn" onclick="window.open('https://greasyfork.org/en/users/662330-zertalious', '_blank')">More scripts</div>
  317. </div>
  318. ` }
  319. </div>`;
  320. })
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
Advertisement
Comments
  • N00bmaster69
    319 days
    # text 0.16 KB | 0 0
    1. no funciona solo es una pantalla negra creo que esta parcheado o es un virus lo probe con tamper monkey y tambien probe usar la injection instantanea y tampoco funciona
Add Comment
Please, Sign In to add comment
Advertisement