TypeError
Hello !
I wanted to try your script but .. if I run sudo ./pholus.py eth0 -afre for example (on a Raspberry, Python 2.7.13, Scapy 2.4) , I get :
source MAC address: b8:00:eb:1e:3f:8b source IPv4 Address: 192.168.9.112 source IPv6 address: fe80::8fc9:483a:2336:d966 Send fake responses to requests Sniffer filter is: not ether src b8:00:eb:1e:3f:8b and udp and port 5353 I will sniff for 5 seconds, unless interrupted by Ctrl-C Press Ctrl-C to exit Traceback (most recent call last): File "./pholus.py", line 975, in <module> main() File "./pholus.py", line 754, in main Sniffer(myfilter, values.interface, float(values.sniffer_timeout),q,values.dns,values.show_ttl, values.dos_ttl, values.conflict, values.ttl,values.d4, values.d6, values.target_mac, values.auto_fake_responses,source_IPv6, source_IPv4, target_mac1, target_mac2,source_mac,values.hlimit,values.workstation,values.printer,values.googlecast,values.airtv,values.flood,values.flooding_timeout,values.flooding_interval,values.v4,values.v6) File "./pholus.py", line 89, in __init__ sniff(filter=self.filter, iface=self.interface, prn=self.handler, store=0, timeout=self.sniffer_timeout) File "/usr/local/lib/python2.7/dist-packages/scapy/sendrecv.py", line 780, in sniff r = prn(p) File "./pholus.py", line 91, in handler ext_handler(packets,self.queue,self.dns,self.show_ttl,1,self.dos_ttl,self.conflict, self.ttl,self.interface,self.d4,self.d6,self.target_mac,self.auto_fake_responses,self.source_IPv6,self.source_IPv4,self.target_mac1,self.target_mac2,self.source_mac,self.hlimit,self.workstation,self.printer,self.googlecast,self.airtv,self.flood,self.flooding_timeout,self.flooding_interval,self.v4,self.v6) File "./pholus.py", line 126, in ext_handler res0= Ether_src + " " + IP_src TypeError: cannot concatenate 'str' and 'NoneType' objects
Any idea what is wrong here?
thanks!