Giter VIP home page Giter VIP logo

Comments (9)

abrahamjuliot avatar abrahamjuliot commented on September 22, 2024

Special thanks to adtechmadness for the article. I'm just a fan of the blog.

JS evasions cause glowing leaks in the native code. As outlined in the article, patching them is possible and that can cause more leaks. The use of a Proxy is a technique described. It has some less obvious leaks.

from creepjs.

AsaphF avatar AsaphF commented on September 22, 2024

I see, thank you about your awnser, and why the value is changed this error appears : Navigator.deviceMemory:
failed undefined properties

from creepjs.

abrahamjuliot avatar abrahamjuliot commented on September 22, 2024

This should return undefined.

Object.getOwnPropertyDescriptor(navigator, 'deviceMemory')

If we do something like this, the above no longer returns undefined

Object.defineProperty(navigator, 'deviceMemory', { value: 4 })

from creepjs.

AsaphF avatar AsaphF commented on September 22, 2024

Object.defineProperty(navigator, 'deviceMemory', { value: 4 })

I am making exactly this and its returnig undefined.

from creepjs.

abrahamjuliot avatar abrahamjuliot commented on September 22, 2024

Can you share your code?

from creepjs.

AsaphF avatar AsaphF commented on September 22, 2024

Yes i can.

Here :

js_code = f""" Object.defineProperty(navigator, 'deviceMemory', {{ "get": () => 4 }}); """ driver = uc.Chrome(options=options) driver.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", {"source": js_code})

from creepjs.

abrahamjuliot avatar abrahamjuliot commented on September 22, 2024

Here it is. If we run Object.getOwnPropertyDescriptor like so, it correctly returns undefined. If we apply the change and run it again, it fails. It should always return undefined with those arguments.

image

from creepjs.

AsaphF avatar AsaphF commented on September 22, 2024

Pardon me, i did not realize that were a diferent method.
Thank you very much.

from creepjs.

abrahamjuliot avatar abrahamjuliot commented on September 22, 2024

It's all good. I'm here if you encounter any issues.

from creepjs.

Related Issues (20)

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.