Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emlinhax/js-ac
Featuring multiple ways to detect cheating in browser games.
https://github.com/emlinhax/js-ac
anticheat browser-game cheating hooks javascript tampermonkey
Last synced: 2 months ago
JSON representation
Featuring multiple ways to detect cheating in browser games.
- Host: GitHub
- URL: https://github.com/emlinhax/js-ac
- Owner: emlinhax
- Created: 2023-06-02T09:39:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-02T10:16:47.000Z (over 1 year ago)
- Last Synced: 2023-07-23T22:24:16.380Z (over 1 year ago)
- Topics: anticheat, browser-game, cheating, hooks, javascript, tampermonkey
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# js-ac
Featuring multiple ways to detect cheating in browser games.\
Im fairly new to javascript "cheating" but these are some things I found:
# monkey-detect.js
this little code-snippet can detect tampermonkey scripts (and even call them out by their name in theory).\
it works by hooking a target function and then walking the stacktrace when its called.\
(reference: https://github.com/R4YVEN/monkey-detect)# proxy-check.js
the easiest trick i could find to checking if a function is being proxied.\
due to their nature you normally cannot detect proxies in javascript.\
this works by checking the stacktrace (again).# reflect-check.js
this is just another way of detecting a proxy function.\
it works by hooking reflect.apply and either checking where it comes from.\
the fact that the function is being called at all might just be enough for it to be considered a violation.