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

MacOsX support #272

Open
r4z0r5 opened this issue Mar 14, 2024 · 0 comments
Open

MacOsX support #272

r4z0r5 opened this issue Mar 14, 2024 · 0 comments

Comments

@r4z0r5
Copy link

r4z0r5 commented Mar 14, 2024

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

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