1v1.www

1v1.LOL hack script - infinite ammo, infinite armor, rapid fire

  1. // ==UserScript==
  2. // @name 1v1.www
  3. // @version 0.1
  4. // @description 1v1.LOL hack script - infinite ammo, infinite armor, rapid fire
  5. // @author ;)
  6. // @namespace https://greasyfork.org/ja/users/762895-nekocell
  7. // @match https://1v1.lol/
  8. // @icon https://www.google.com/s2/favicons?domain=1v1.lol
  9. // @connect raw.githubusercontent.com
  10. // @require https://greasyfork.org/scripts/431787-gm-fetch-nekocell/code/GM_fetch%20-%20nekocell.js?version=966477
  11. // @require https://greasyfork.org/scripts/431788-fixedwailloader/code/FixedWailLoader.js?version=966480
  12. // @require https://greasyfork.org/scripts/431845-nekoutil/code/NekoUtil.js?version=966813
  13. // @grant GM_xmlhttpRequest
  14. // ==/UserScript==
  15.  
  16. const wasm = WebAssembly;
  17.  
  18. const oldInstantiate = wasm.instantiate;
  19.  
  20. wasm.instantiate = async function(bufferSource, importObject) {
  21. console.log("1v1.www : WebAssembly.instantiate() intercepted!!");
  22.  
  23. await FixedWailLoader.load();
  24.  
  25. const wail = new WailParser(bufferSource);
  26.  
  27. const infiniteAmmoFuncIndex = wail.getFunctionIndex(36865);
  28. const infiniteArmorFuncIndex = wail.getFunctionIndex(36774);
  29. const rapidFireFuncIndex = wail.getFunctionIndex(36902);
  30.  
  31. wail.addCodeElementParser(infiniteAmmoFuncIndex, param => {
  32. return param.bytes.replace([40, 2, 32, 65, 1, 107, 54, 2, 32], [40, 2, 32, 65, 1, 26, 54, 2, 32]);
  33. });
  34.  
  35. wail.addCodeElementParser(infiniteArmorFuncIndex, param => {
  36. return param.bytes.replace([40, 2, 104, 32, 1, 107, 54, 2, 104], [40, 2, 104, 32, 1, 26, 54, 2, 104]);
  37. });
  38.  
  39. wail.addCodeElementParser(rapidFireFuncIndex, param => {
  40. return param.bytes.replace([42, 2, 28, 56, 2, 16], [42, 2, 28, 26, 67, 0, 0, 0, 0, 56, 2, 16])
  41. });
  42.  
  43. wail.load(bufferSource);
  44. wail.parse();
  45.  
  46. return oldInstantiate(wail.write(), importObject);
  47. };