Code Monkey home page Code Monkey logo

Comments (7)

leonjza avatar leonjza commented on May 15, 2024

Exploring more avenues for taking screenshots would absolutely be awesome! Lets experiment :)

from gowitness.

hamiltont avatar hamiltont commented on May 15, 2024

Great! FWIW, I was able to prototype my use case (auto-capture screenshot of execution trace during a CI/CD pipeline) in about 15 minutes. Relevant code at https://github.com/hamiltont/trace-grok/blob/master/harness.go#L121 shows that IMO it's really easy to use this chromedp project. The project documentation is really good. It does require the google-chrome binary to be available on the PATH (not sure if gowitness requires that already)

The added power of this tool would also allow a lot of new capabilities. In addition to my requested capability (a timer that only starts when the page is rendered), we could add support for partial screenshots (e..g --screenshot-id "#sidebar" --screenshot-query "body > overlay .buynow" --screenshot-frame <some frame id>) which is kind of neat.

from gowitness.

randomactsofsecurity avatar randomactsofsecurity commented on May 15, 2024

Going to experiment with using chromedp in gowitness and will let you know how it goes, hopefully it'll clear up the blank screenshot issues we run across

from gowitness.

hamiltont avatar hamiltont commented on May 15, 2024

@randomactsofsecurity awesome! Please feel free to reuse any code of mine in your attempt, I've no claim to it, just never got around to making a proper PR

from gowitness.

leonjza avatar leonjza commented on May 15, 2024

Hah! @randomactsofsecurity I have ported the screenshot logic to use chromedp this week and it seems to work fine. I am actually busy refactoring large parts of the code for what might end up being v2 of gowitness. Should see some commits land soonβ„’

from gowitness.

randomactsofsecurity avatar randomactsofsecurity commented on May 15, 2024

Sweet sounds great, looking forward to testing it out!

from gowitness.

leonjza avatar leonjza commented on May 15, 2024

V2 just landed using chromedp!

from gowitness.

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.