forked from SpiderLabs/Responder
-
-
Notifications
You must be signed in to change notification settings - Fork 855
Open
Description
Line 182 in 1a2f2fd
| self.IP_aton = socket.inet_aton(self.Bind_To) |
This line is causing the following error:
File "/Users/whatever/Repositories/Responder/settings.py", line 182, in populate
self.IP_aton = socket.inet_aton(self.Bind_To)
OSError: illegal IP address string passed to inet_aton
Responder started as: sudo python3.9 ./Responder.py -I en0
I debugged the problem a bit and found out the interface name (in my case 'en0') is passed to socket.inet_aton.
As a temporary workaround I have changed the code a bit:
#IPV4
if self.Interface == "ALL":
self.IP_aton = socket.inet_aton(self.OURIP)
else:
print(self.Bind_To)
self.IP_aton = socket.inet_aton(netifaces.ifaddresses(self.Bind_To)[netifaces.AF_INET][0]['addr'])
#IPV6
This resolves the OSError, perhaps this fix should be included in next version.
Sincerly, Darwin 22.6.0 Darwin Kernel Version 22.6.0 arm64
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels