Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--log-json is not valid json if the targets input file is empty #288

Closed
adubaldo opened this issue Dec 9, 2019 · 0 comments
Closed

--log-json is not valid json if the targets input file is empty #288

adubaldo opened this issue Dec 9, 2019 · 0 comments

Comments

@adubaldo
Copy link

adubaldo commented Dec 9, 2019

Issue:
version: 0.4.9
os: parrot
description: whatweb --log-json write an open square brackets " [ " in json output file if the input file ( -i ) does not contains targets.

Use case:
Running a custom script you may need to pass an output file containing a list of websites to whatweb.

Workaround
For sure this issue should be handled by developers who uses whatweb.

Example:

root@parrot:/tmp# cat websites.txt  # empty file
root@parrot:/tmp# whatweb --log-json=testwhatweb.json -i websites.txt 
No targets selected
root@parrot:/tmp# cat testwhatweb.json 
[
root@parrot:/tmp# 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant