1v1lol

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

目前为 2022-01-13 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name 1v1lol
  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 about:blank
  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. const wasm = WebAssembly;
  16. const oldInstantiate = wasm.instantiate;
  17. wasm.instantiate = async function(bufferSource, importObject) {
  18. console.log("1v1.www : WebAssembly.instantiate() intercepted!!");
  19. await FixedWailLoader.load();
  20. const wail = new WailParser(bufferSource);
  21. const infiniteAmmoFuncIndex = wail.getFunctionIndex(36865);
  22. const infiniteArmorFuncIndex = wail.getFunctionIndex(36774);
  23. const rapidFireFuncIndex = wail.getFunctionIndex(36902);
  24. wail.addCodeElementParser(infiniteAmmoFuncIndex, param => {
  25. return param.bytes.replace([40, 2, 32, 65, 1, 107, 54, 2, 32], [40, 2, 32, 65, 1, 26, 54, 2, 32]);
  26. });
  27. wail.addCodeElementParser(infiniteArmorFuncIndex, param => {
  28. return param.bytes.replace([40, 2, 104, 32, 1, 107, 54, 2, 104], [40, 2, 104, 32, 1, 26, 54, 2, 104]);
  29. });
  30. wail.addCodeElementParser(rapidFireFuncIndex, param => {
  31. return param.bytes.replace([42, 2, 28, 56, 2, 16], [42, 2, 28, 26, 67, 0, 0, 0, 0, 56, 2, 16])
  32. });
  33. wail.load(bufferSource);
  34. wail.parse();
  35. return oldInstantiate(wail.write(), importObject);
  36. };