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

ipaddress.AddressValueError: Expected 4 octets in 'eth0' #5

Open
Kartik192192 opened this issue Jun 2, 2022 · 3 comments
Open

ipaddress.AddressValueError: Expected 4 octets in 'eth0' #5

Kartik192192 opened this issue Jun 2, 2022 · 3 comments

Comments

@Kartik192192
Copy link

Traceback (most recent call last):
File "/root/Desktop/msdt-follina/follina.py", line 63, in main
serve_host = ipaddress.IPv4Address(args.interface)
File "/usr/lib/python3.9/ipaddress.py", line 1307, in init
self._ip = self._ip_int_from_string(addr_str)
File "/usr/lib/python3.9/ipaddress.py", line 1194, in _ip_int_from_string
raise AddressValueError("Expected 4 octets in %r" % ip_str)
ipaddress.AddressValueError: Expected 4 octets in 'eth0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/Desktop/msdt-follina/follina.py", line 166, in
main(parser.parse_args())
File "/root/Desktop/msdt-follina/follina.py", line 66, in main
serve_host = netifaces.ifaddresses(args.interface)[netifaces.AF_INET][0][
KeyError: 2

@codethinki
Copy link

You need to run it with LAN, fixed the issue for me. I don't know how to run it with wifi but that is probably going to be fixed in a few days.

@User-123447
Copy link

It's not fixed yet.. :(

@niceboy83
Copy link

just specifiy your ip adress: python follina.py -i 192.168.X.X. It works for me

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

4 participants