Code Monkey home page Code Monkey logo

Comments (29)

ABCxFF avatar ABCxFF commented on August 28, 2024 1

This isnt

from diepindepth.

Craabby avatar Craabby commented on August 28, 2024 1

you could always make your own wasm hook and have it fetch the constants from an automator inside the hijacked WebAssembly.instatiate

from diepindepth.

diepiodiscord avatar diepiodiscord commented on August 28, 2024 1

GM_xmlhttpRequest bypasses CORS

from diepindepth.

diepiodiscord avatar diepiodiscord commented on August 28, 2024

console.time() your packet handling code to make sure it's really the packet hook

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

it is, i tested only the packet hook by itself

from diepindepth.

diepiodiscord avatar diepiodiscord commented on August 28, 2024

I cannot replicate, make sure you're using the latest version since there was a new build today

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

I import the script via a repl (so it automatically updates), there wasn't an issue until today's update. Can you reproduce with this?

// ==UserScript==
// @name         ABC Hook
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://diep.io/
// @icon         https://www.google.com/s2/favicons?domain=diep.io
// @require      https://raw.githubusercontent.com/Qwokka/wail.min.js/5e32d36bd7a5e0830d1ff4b64d3587aea13f77da/wail.min.js
// @require      https://wasm-hook-fetcher.codersudawuda.repl.co
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
})();

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024

Please stop opening off topic issues - I will update the build on packet hook now

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

how is this off topic?

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024

Oh wait lol. The phook automator is actually still running so there really is an issue! LOL

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024

@CoderSudaWuda I am not experiencing this issue. All you did was install the script? Or did you have other stuff

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024

If you had another memory related script installed, it might have made the packet hook script from hooking into the wrong function hence the lag - so maybe try running packet hook without any other scripts.

from diepindepth.

Craabby avatar Craabby commented on August 28, 2024

Try looking at the performance tab

from diepindepth.

diepiodiscord avatar diepiodiscord commented on August 28, 2024

I could not reproduce with your repl version either

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024

@CoderSudaWuda @require meta tag is cached in most Script Monkey extensions. Your issue is likely that the PacketHook cached in your extension is not the latest version. You can test this with PacketHook.CONFIG.BUILD === "b6c132517d2f9e84c9d9334a5fdeaba8a96e3343" in your userscript you sent above. If it returns false then that is the issue - if it returns true however, you can re open this issue

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

there isnt a config property for Hook.

as for the questions above: i tested in an environment where its the only script, there is no other script clashing

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

i can't open the issue so uh can someone read this

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024

Meant PacketHook.CONST not Hook.CONFIG Oops

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

yeah thats the issue, what do I do about it?

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024

Try fetch()ing the packet hook code yourself inside the script instead of depending on the tampermonkey/violentmonkey @require, that way it doesn't cache forever

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

CORS error, I can't do that. even if i could evalling doesnt work.

from diepindepth.

Craabby avatar Craabby commented on August 28, 2024

that is an issue on your server, there is a cors package on npm

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

i can't fetch clientside

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024

Fetch it from jsdelivr

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024
fetch("https://cdn.jsdelivr.net/gh/ABCxFF/diepindepth/protocol/userscripts/packethook.user.js?" + Date.now())

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

the thing with fetching is that i can't import anything from it since evalling it wont work

from diepindepth.

ABCxFF avatar ABCxFF commented on August 28, 2024

Maybe eval the config only? There should be a way, good luck on your scripting!

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

is there a way to import WAIL without using @require

from diepindepth.

Altanis avatar Altanis commented on August 28, 2024

ok i got around it!

    const resp = await fetch("https://cdn.jsdelivr.net/gh/ABCxFF/diepindepth/protocol/userscripts/packethook.user.js?" + Date.now());
    const js = await resp.text();

    const resp2 = await fetch('https://raw.githubusercontent.com/Qwokka/wail.min.js/5e32d36bd7a5e0830d1ff4b64d3587aea13f77da/wail.min.js');
    const js2 = await resp2.text();

    var script1 = document.createElement('script');
    script1.appendChild(document.createTextNode(js2));
    document.head.appendChild(script1);

    var script = document.createElement('script');
    script.appendChild(document.createTextNode(js));
    document.head.appendChild(script);

from diepindepth.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.