Skip to content

Failed with html file parse #9

@secu77

Description

@secu77

When I try to read an html file (obtained with wget) I get an error:

root@kali:~/test# webtech -u file:///root/test/data.html
Traceback (most recent call last):
  File "/usr/local/bin/webtech", line 11, in <module>
    load_entry_point('webtech==1.2.6', 'console_scripts', 'webtech')()
  File "/usr/local/lib/python3.7/dist-packages/webtech-1.2.6-py3.7.egg/webtech/__main__.py", line 54, in main
    wt.start()
  File "/usr/local/lib/python3.7/dist-packages/webtech-1.2.6-py3.7.egg/webtech/webtech.py", line 132, in start
    temp_output = self.start_from_url(url)
  File "/usr/local/lib/python3.7/dist-packages/webtech-1.2.6-py3.7.egg/webtech/webtech.py", line 168, in start_from_url
    target.parse_http_file(url)
  File "/usr/local/lib/python3.7/dist-packages/webtech-1.2.6-py3.7.egg/webtech/target.py", line 120, in parse_http_file
    return self.parse_http_request(data)
  File "/usr/local/lib/python3.7/dist-packages/webtech-1.2.6-py3.7.egg/webtech/target.py", line 182, in parse_http_request
    replay_url = "https://" + host + replay_uri
UnboundLocalError: local variable 'host' referenced before assignment

I'm using like the example in the readme file:

$ webtech -u file://response.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions