Skip to content

sniff fails with NameError: global name 'log_runtime' is not defined #1

Description

@jontwo

So, I got scapy-examples to install on windows (only after installing winpcap - then the wpcap.dll could be found), but sniff\show_http_hosts_visited.py fails with the following callstack:

Traceback (most recent call last):
  File "sniff\show_http_hosts_visited.py", line 181, in <module>
    prn=get_target_host,
  File "c:\work\Python\PyCon\scapy\lib\site-packages\scapy\arch\windows\compatibility.py", line 177, in sniff
    log_runtime.info('Sniffing on %s' % conf.iface)
NameError: global name 'log_runtime' is not defined

This is probably a scapy bug though, as there is no reference to log_runtime in compatibility.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions