Open Lohorunk opened 1 year ago
@hiikion,
Thank you very much!
I think that's how Aternos detects library requests.
Fix: execute document.getElementById = function(_a) { };
before executing the code.
I've checked token parser using tests/js_samples.py
now. Every sample was processed incorrectly.
Oh, that's because of document.doctype
property.
I think the most efficient solution is to create the accurate copy of window
and document
objects from Firefox DevTools, but there are too many properties and methods.
Maybe I'll write a script for checking AJAX_TOKEN every day and finding usage of properties not implemented in python-aternos.
Temporarily fixed
That happened again: Aternos added document.currentScript
. Fixed in v3.0.3
document.prepend
, fixed in 3.0.4
Is the cause known?
@pythoncat1, yes. Please, read the conversation above.
So I imagine https://github.com/DarkCat09/python-aternos/issues/85#issuecomment-1614176348 must be done?
may be related to https://github.com/DarkCat09/python-aternos/issues/75#issuecomment-1572125741
(i dont think ajax tokens are sensitive info but will censor them anyway)
I noticed in the dev console that the ajax token used by aternos did not match the one given by the library
LGuu****************
< used by aternos websiteTBsn****************
< used by the libraryI deobfuscated the js function by hand to try and understand how it works
And yeah it just sets the
AJAX_TOKEN
toLGuu****************
its all determined by the!
i tested and the
to_ecma5
dosent seem to be the thing causing the error. If a had to guess its probably thectx.execute('window.document = { };')
and the others that are causing the problem.