Git Product home page Git Product logo

Comments (2)

jrozner avatar jrozner commented on June 20, 2024

It appears that windows does include some functionality to create screenshots but it doesn't seem to quite have a good enough solution built in. Windows 10 provides two different applications: SnippingTool.exe and "Snip and Sketch".

SnippingTool.exe seems to be deprecated or at least getting replaced by Snip and Sketch though it does not provide a timeline for when that will happen. It provides a flag /clip to allow you to select a region of the screen but does not appear to have a flag what will just grab the current screen. Running it without the /clip flag will cause the program to launch the gui to interact with. SnippingTool also does not provide the ability to specify where to save the screenshot to from the command line, it can only be saved from within the gui app. Using the /clip flag will simply save it to the clipboard. This is not ideal as we'd have to build custom logic from windows to handle pulling the bitmap from the clipboard and saving it and we still wouldn't have support for full screen captures.

Snip and Sketch appears to be the future of where Windows is going with included screenshot functionality. This tool is implemented as a UWP. It can be invoked via a protocol handler, as documented here but it doesn't appear to be an application that can be launched that way that we are in ashirt or have the ability to specify a location to write it the screenshot. It appears to copy the screenshot to the clipboard, but not save it, and not pass it back to the calling application. We maybe able to build a helper application that we can include on the windows side to invoke this tool and write out the screenshot but it's not clear if overwriting the clipboard would make us a bad citizen in the windows world of expected behavior.

Other options we can look into are identifying open source screenshotting apps, or imagmagick's import, and simply include a helper to handle the screen capture functionality. A user will always be able to supply their own option but given that this doesn't appear to be as common as in the linux world and there isn't an included option, like in macos, we may want to provide an option.

from ashirt.

jrozner avatar jrozner commented on June 20, 2024

flameshot seems like it may be a good option to ship with the windows build. Not clear that it makes sense to ship with all platforms as macos has something that works out of the box and linux users may want to bring their own. Maybe providing as a default would be a good user experience though and provide the opportunity to switch to whatever the user wants.

from ashirt.

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.