byt3bl33d3r / WitnessMe

Web Inventory tool, takes screenshots of webpages using Pyppeteer (headless Chrome/Chromium) and provides some extra bells & whistles to make life easier.
GNU General Public License v3.0
727 stars 109 forks source link

Unsupported screenshot mime type: image/vnd.mozilla.apng #26

Open weuroi578 opened 3 years ago

weuroi578 commented 3 years ago

Recently updated WitnessMe and ran the following command:

witnessme screenshot textFile.txt - the text file has one url per line as 'https://something.com'

It seems the valid urls (I am able to manually verify them) are providing the following error:

[witnessme.headlessbrowser] ERROR - Error navigating to url https://SOMETHING.COM: Unsupported screenshot mime type: image/vnd.mozilla.apng

Thank you in advance for your help.

0x6d6f7468 commented 3 years ago

Ran into the same issue as well. Traced the issue down the Pyppeteer itself, though not sure why it's happening yet:

https://github.com/pyppeteer/pyppeteer/blob/7486b56c072be469f5d9f7ac797f59ecea2a5c65/pyppeteer/page.py#L1249

[Update 1] I did a kludge patch in my install of Pyppeteer, looks like my scan is running now. Basically added to the conditional in that line of code. If I end up with usable screenshots, I might end up opening an issue or PR with Pyppeteer. [Update 2] It worked. Changing line 1249 of /usr/lib/python3/dist-packages/pyppeteer/page.py to if mimeType == 'image/png' or mimeType == 'image/vnd.mozilla.apng': What a mess, though I don't think it's a WitnessMe problem.

0x6d6f7468 commented 3 years ago

@weuroi578 in case you're still hoping to use WitnessMe ^ Hope that helps for you.