aatlasis / pholus Goto Github PK
View Code? Open in Web Editor NEWA multicast DNS and DNS Service Discovery Security Assessment Tool
License: Other
A multicast DNS and DNS Service Discovery Security Assessment Tool
License: Other
OS = Linux kali 6.1.0-kali7-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.20-2kali1 (2023-04-18) x86_64 GNU/Linux
Python = 3.11.3
$ sudo python pholus3.py tun0 -sscan -stimeout 60
source MAC address: 00:00:00:00:00:00 source IPv4 Address: 10.8.76.160 source IPv6 address: fe80::cbb5:f46d:f943:8bbf
Sniffer filter is: not ether src 00:00:00:00:00:00 and udp and port 5353
I will sniff for 60 seconds, unless interrupted by Ctrl-C
------------------------------------------------------------------------
ERROR: Cannot set filter: Failed to compile filter expression not ether src 00:00:00:00:00:00 and udp and port 5353 (-1)
Sending mdns requests
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.11/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/Tools/Recon/Pholus/pholus3.py", line 79, in __init__
sniff(filter=self.filter, iface=self.interface, prn=self.handler, store=0, timeout=self.sniffer_timeout)
File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 1311, in sniff
sniffer._run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 1254, in _run
session.on_packet_received(p)
File "/usr/lib/python3/dist-packages/scapy/sessions.py", line 109, in on_packet_received
result = self.prn(pkt)
^^^^^^^^^^^^^
File "/Tools/Recon/Pholus/pholus3.py", line 81, 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 "/Tools/Recon/Pholus/pholus3.py", line 110, in ext_handler
Ether_src=packets.getlayer(Ether).src
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'src'
ERROR: Cannot set filter: Failed to compile filter expression not ether src 00:00:00:00:00:00 and udp and port 5353 (-1)
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!
File "/home/natem135/Pholus/pholus3.py", line 81, 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 "/home/natem135/Pholus/pholus3.py", line 505, in ext_handler
res = res0 + " Auth_NS: "+dnsrr.rrname + " " + dns_type[dnsrr.type]+" " + rclass + ' "' +dnsrr.rdata+'"'
dnsrr.rrname is of type bytes, everything else is a string or an int which is fine but strings and bytes cannot be added together.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.