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

AttributeError 'NoneType' object has no attribute 'encode' #259

Open
IlyaDhtvzGhbltn opened this issue Dec 13, 2018 · 0 comments
Open

AttributeError 'NoneType' object has no attribute 'encode' #259

IlyaDhtvzGhbltn opened this issue Dec 13, 2018 · 0 comments

Comments

@IlyaDhtvzGhbltn
Copy link

System: Windows 10
Python: v3.7.1
kamene: v3.0.0

First, I launch kamene from cmd like this : Win+R -> cmd>kamene and got the following traceback :
INFO: Can't load Python libreadline or completer INFO: No IPv6 support in kernel WARNING: No route found for IPv6 destination :: (no default route?). This affects only IPv6 INFO: Please, report issues to https://github.com/phaethon/kamene WARNING: IPython not available. Using standard Python shell instead. Welcome to kamene (3.0.0)

Then I create packet like this :

��>>> ��a=IP(dst="193.58.244.217")/TCP(dport=3055)/"test" ��>>> ��a <IP frag=0 proto=tcp dst=143.58.254.217 |<TCP dport=3335 |<Raw load='test' |>>>

and want to send it.

��>>> ��send(a) and got the next traceback :

Traceback (most recent call last): File "<console>", line 1, in <module> File "C:\Users\user.i\AppData\Local\Programs\Python\Python37-32\lib\site-packages\kamene\sendrecv.py", line 260, in send __gen_send(conf.L3socket(*args, **kargs), x, inter=inter, loop=loop, count=count,verbose=verbose, realtime=realtime) File "C:\Users\user.i\AppData\Local\Programs\Python\Python37-32\lib\site-packages\kamene\arch\pcapdnet.py", line 321, in __init__ self.ins = open_pcap(iface, 1600, 0, 100) File "C:\Users\user.i\AppData\Local\Programs\Python\Python37-32\lib\site-packages\kamene\arch\windows\__init__.py", line 237, in <lambda> pcapdnet.open_pcap = lambda iface,*args,**kargs: _orig_open_pcap(pcap_name(iface),*args,**kargs) File "C:\Users\user.i\AppData\Local\Programs\Python\Python37-32\lib\site-packages\kamene\arch\pcapdnet.py", line 251, in <lambda> open_pcap = lambda *args,**kargs: _PcapWrapper_pypcap(*args,**kargs) File "C:\Users\user.i\AppData\Local\Programs\Python\Python37-32\lib\site-packages\kamene\arch\pcapdnet.py", line 215, in __init__ self.iface = create_string_buffer(device.encode('ascii')) AttributeError: 'NoneType' object has no attribute 'encode'

I don't understand, where is my error ?

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