Skip to content

TypeError: argument of type 'NoneType' is not iterable #24

@dogancelik

Description

@dogancelik

Versions: Windows 10, Python 2.7.13

Instructions

pip install git+https://github.com/secdev/scapy
pip install argparse

git clone https://github.com/andreafabrizi/rtmpSnoop.git
cd rtmpSnoop

python rtmpSnoop.py -f dump.pcap

Error

rtmpSnoop v0.2.1 - The RTMP Sniffer!
Andrea Fabrizi - [email protected]

Reading packets from dump file 'dump.pcap'...
Traceback (most recent call last):
  File "rtmpSnoop.py", line 147, in <module>
    sniff(offline=args.pcapfile, filter="tcp", prn = PacketHandler)
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\site-packages\scapy\sendrecv.py", line 692, in sniff
    )] = offline
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\site-packages\scapy\utils.py", line 1283, in tcpdump
    stderr=open(os.devnull) if quiet else None,
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\subprocess.py", line 390, in __init__
    errread, errwrite)
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\subprocess.py", line 595, in _execute_child
    args = list2cmdline(args)
  File "D:\Tools\winpython2\python-2.7.13.amd64\lib\subprocess.py", line 262, in list2cmdline
    needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: argument of type 'NoneType' is not iterable

Related

Also please change the Windows instructions URL to this one because it doesn't direct to the correct page:

https://scapy.readthedocs.io/en/latest/installation.html#windows

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