Open mbrownnycnyc opened 4 years ago
@mbrownnycnyc Sorry for the late reply, I understand the issue now.
The reason why the database doesn't have all of the screenshots is because it was designed to have only 1 screenshot of each unique host (This is done via SQL UNIQUE constraints here). When I was writing this, this really was the primary use case, i really didn't want more than 1 screenshot of a single host.
That being said, I can see the value in what you're using this for, however I'm not sure if I'd want to implement it under the screenshot command. I'll have to think about how to implement this functionality.
Thanks
Hello,
This is a bit of a bug report and a bit (apparently) of a request.
I'd like to pass URL:s from a file into
witnessme screenshot
and have a screenshot of each URL be generated, saved and the related record be added to the database; however, it is failing to act as I expect or as I wish. :)For example, I have run gobuster against vulnversity on tryhackme and have saved the output to a file as:
I then invoke witnessme as follows and rcv the following output:
The results are very interesting and are as follows:
In the generated report, the URL is noted as it is in id 1 of wmdb servers output (
http://10.10.143.64:3333/.htpasswd
). However, the screenshot is that ofhttp://10.10.143.64:3333/js
; this screenshot is the second to last screenshot noted inwitnessme
stdout. This is reproducible on demand, and I believe it must be related to the thread logic.Environmental notes: 1) I am running this on kali in WSL2, which, as far as I'm aware, is irrelevant and should not cause oddities, as WSL2 is running as a VM within a "lite" version of hyperv. 2) specifically, I am targeting vulnversity on tryhackme.
If I attempt this with
--threads 1
, then things appear to be predictable... the noted string is that of the first item (that contained inwmdb
servers
output). and the last screenshot produced (as noted in thewitnessme
stdout.So, I have only have one ask: This is all sort of weird... but not that weird since you clearly didn't code to support multiple screenshots of URLs from the same host(?). Can you extend support to allow for multiple URLs from the same host?
Thanks