{"action":"created","issue":{"url":"https://api.github.com/repos/phaethon/scapy/issues/86","repository_url":"https://api.github.com/repos/phaethon/scapy","labels_url":"https://api.github.com/repos/phaethon/scapy/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/phaethon/scapy/issues/86/comments","events_url":"https://api.github.com/repos/phaethon/scapy/issues/86/events","html_url":"https://github.com/phaethon/scapy/issues/86","id":148030174,"number":86,"title":"AttributeError: 'NoneType' object has no attribute 'encode' when running on Windows 10","user":{"login":"wsw70","id":1345886,"avatar_url":"https://avatars.githubusercontent.com/u/1345886?v=3","gravatar_id":"","url":"https://api.github.com/users/wsw70","html_url":"https://github.com/wsw70","followers_url":"https://api.github.com/users/wsw70/followers","following_url":"https://api.github.com/users/wsw70/following{/other_user}","gists_url":"https://api.github.com/users/wsw70/gists{/gist_id}","starred_url":"https://api.github.com/users/wsw70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsw70/subscriptions","organizations_url":"https://api.github.com/users/wsw70/orgs","repos_url":"https://api.github.com/users/wsw70/repos","events_url":"https://api.github.com/users/wsw70/events{/privacy}","received_events_url":"https://api.github.com/users/wsw70/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-13T11:33:01Z","updated_at":"2016-11-30T22:44:43Z","closed_at":null,"body":"System: Windows 10\nPython: 3.4\nscapy-python3: 0.18\n\nWhen starting `sniff` I get the following traceback:\n\n```\nTraceback (most recent call last):\n  File \"C:/Users/yop/dev/sentinel/honeysyn/honeysyn.py\", line 82, in <module>\n    scapy.sniff(iface=h.config['interface'], prn=h.filtre)\n  File \"C:\\Python34\\lib\\site-packages\\scapy\\arch\\windows\\__init__.py\", line 444, in sniff\n    s = L2socket(type=ETH_P_ALL, *arg, **karg)\n  File \"C:\\Python34\\lib\\site-packages\\scapy\\arch\\pcapdnet.py\", line 266, in __init__\n    self.ins = open_pcap(iface, 1600, self.promisc, 100)\n  File \"C:\\Python34\\lib\\site-packages\\scapy\\arch\\windows\\__init__.py\", line 222, in <lambda>\n    pcapdnet.open_pcap = lambda iface,*args,**kargs: _orig_open_pcap(pcap_name(iface),*args,**kargs)\n  File \"C:\\Python34\\lib\\site-packages\\scapy\\arch\\pcapdnet.py\", line 251, in <lambda>\n    open_pcap = lambda *args,**kargs: _PcapWrapper_pypcap(*args,**kargs)\n  File \"C:\\Python34\\lib\\site-packages\\scapy\\arch\\pcapdnet.py\", line 215, in __init__\n    self.iface = create_string_buffer(device.encode('ascii'))\nAttributeError: 'NoneType' object has no attribute 'encode'\n```\n\nThe interface which is used via the `iface` parametr is `{FEC67D86-A8E0-4362-8D9E-CD8EA834EB0C}`. I retrieved it via `Get-NetAdapter | select Name, InterfaceIndex, InterfaceDescription, InterfaceGuid, MacAddress | fl` (or `netifaces`) and it is the Ethernet card.\n\nThe same code ran on Linux works fine (with the relevant interface, of course)\n"},"comment":{"url":"https://api.github.com/repos/phaethon/scapy/issues/comments/264020684","html_url":"https://github.com/phaethon/scapy/issues/86#issuecomment-264020684","issue_url":"https://api.github.com/repos/phaethon/scapy/issues/86","id":264020684,"user":{"login":"testitem","id":19212916,"avatar_url":"https://avatars.githubusercontent.com/u/19212916?v=3","gravatar_id":"","url":"https://api.github.com/users/testitem","html_url":"https://github.com/testitem","followers_url":"https://api.github.com/users/testitem/followers","following_url":"https://api.github.com/users/testitem/following{/other_user}","gists_url":"https://api.github.com/users/testitem/gists{/gist_id}","starred_url":"https://api.github.com/users/testitem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testitem/subscriptions","organizations_url":"https://api.github.com/users/testitem/orgs","repos_url":"https://api.github.com/users/testitem/repos","events_url":"https://api.github.com/users/testitem/events{/privacy}","received_events_url":"https://api.github.com/users/testitem/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T22:44:43Z","updated_at":"2016-11-30T22:44:43Z","body":"Yessss.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/19212916/20774439/4bac27b8-b724-11e6-934c-d40fece82b25.png)\r\n\r\nI was introduced to Scapy [here](https://medium.com/@edwardbenson/how-i-hacked-amazon-s-5-wifi-button-to-track-baby-data-794214b0bdd8#.j6sv6si0t), but running the program (I added the print functions) gave that error."}}
{"actor":{"display_login":"testitem"}}