Open 0cirius0 opened 3 years ago
Hello @hellrider9,
It fails because the list of targets you pass (through lines
variable) is not properly parsed and formatted. You should pass lines like http://google.com
and not google.com
:
url_list
items' format in the sample codeIn a next release, I will upgrade the parse_targets
function to be able to accept to parse a programmatic list as parameter, not only the options
parameter, and then update the wiki.
Basically after this change:
url_list = ['http://google.fr', 'http://google.com']
url_list = parse_targets(custom_list=['http://google.fr', 'http://google.com'])
Cheers.
Thanks.
Just for the heads up, when can I expect then next release.
I tried to execute it from within a python code but it kept failing. I tried took the DEBUG output and matched it wih when the command is run directly from shell. I tcame out to be that when I provide a list of domains from within another python code then the domains aren't being converted from
google.com
tohttp://google.com:80
due to which the command fails.Screenshot when ran inside python![Screenshot from 2020-12-15 19-23-54](https://user-images.githubusercontent.com/56410386/102223803-2c93b580-3f0b-11eb-8b62-ecf9f25cd617.png)
Screenshot when ran directly![Screenshot from 2020-12-15 19-24-52](https://user-images.githubusercontent.com/56410386/102223878-43d2a300-3f0b-11eb-827a-aa6f2311c7f3.png)