Greasy Fork

Greasy Fork is available in English.

1v1.www v2

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         1v1.www v2
// @version      0.0000000000.1
// @description  1v1.LOL hack script - infinite ammmo, infinite armor, rapid fire
// @author       nekocell
// @namespace    http://greasyfork.icu/ja/users/762895-nekocell
// @match        https://sites.google.com/site/unblockedgameswtf/1v1-lol
// @icon         https://www.google.com/s2/favicons?domain=1v1.lol
// @require      http://greasyfork.icu/scripts/436749-wasm-patcher/code/wasm_patcher.js
// @license MIT
// ==/UserScript==
 
/* decrease ammo
end
get_local 1
get_local 1
i32.load align=2 offset=32
i32.const 1
i32.sub //
i32.store align=2 offset=32
i32.const 6646660
*/
 
/* set time when shoot
  f32.load align=2 offset=28
  f32.store align=2 offset=16 //
  br 2
end
get_local 0
i32.const 127
i32.store align=2 offset=8
*/
 
/* set armor point when hit
i32.load align=2 offset=136
get_local 1
i32.sub
i32.store align=2 offset=136
else
get_local 0
get_local 0
i32.load align=2 offset=140
get_local 1
i32.sub //
i32.store align=2 offset=140
*/
 
const Log = function(msg) {
    console.log("1v1.www : " + msg);
};
 
const wasm = WebAssembly;
const oldInstantiate = wasm.instantiate;
 
wasm.instantiate = async function(bufferSource, importObject) {
    Log("WebAssembly.instantiate() intercepted!!");
 
    const patcher = new WasmPatcher(bufferSource);
 
    patcher.aobPatchEntry({
        scan: 'B 20 1 20 1 28 ? ? 41 1 [ 6B ] 36 ? ? 41 84 D7 95 3',
        code: [
            OP.drop,
        ],
        onsuccess: () => Log('Infinite Ammo')
    });
 
    patcher.aobPatchEntry({
        scan: '2A ? ? | 38 ? ? C 2 B 20 0',
        code: [
            OP.drop,
            OP.f32.const, VAR.f32(0)
        ],
        onsuccess: () => Log('Rapid Fire')
    });
 
    patcher.aobPatchEntry({
        scan: '5 20 0 20 0 28 ? ? ? 20 1 [ 6B ] 36 ? ? ?',
        code: [
            OP.drop,
        ],
        onsuccess: () => Log('Infinite Armor')
    });
 
    return oldInstantiate(patcher.patch(), importObject);
};