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
734 stars 109 forks source link

Task id 404 Not Found #42

Open ghost opened 2 years ago

ghost commented 2 years ago

Hi, Why if i run in docker witnessme screenshot https://google.com i received task id : 5e685058-8916-4a13-8564-9e928efedbff but after running wmapi and i want to get results about recenlty received task id, i have error 404 Not Found, it's not same task id or?

$ witnessme screenshot https://google.com
[witnessme.screenshot] INFO - Starting scan 5e685058-8916-4a13-8564-9e928efedbff
[witnessme.headlessbrowser] INFO - Starting headless browser
[witnessme.headlessbrowser] INFO - Using 1 browser tab(s)/thread(s)
[witnessme.screenshot] INFO - Took screenshot of https://google.com:443
[witnessme.headlessbrowser] INFO - Killing headless browser
[witnessme.screenshot] INFO - Saved scan to scan_2022_02_22_234054/
$ ls
scan_2022_02_22_234054 src
$ cd scan_2022_02_22_234054
$ ls
https_google.com_443.png  witnessme.db
$ wmapi 0.0.0.0 8000
INFO:     Started server process [70]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO:     172.17.0.1:60650 - "GET /docs HTTP/1.1" 200 OK
INFO:     172.17.0.1:60650 - "GET /openapi.json HTTP/1.1" 200 OK
INFO:     172.17.0.1:60652 - "GET /screenshot/ HTTP/1.1" 200 OK
INFO:     172.17.0.1:60654 - "GET /screenshot/5e685058-8916-4a13-8564-9e928efedbff/result HTTP/1.1" 404 Not Found