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

Value Error abend #30

Closed
Thurso1761 opened this issue Jun 8, 2017 · 6 comments
Closed

Value Error abend #30

Thurso1761 opened this issue Jun 8, 2017 · 6 comments
Labels

Comments

@Thurso1761
Copy link

the below is the abend on screen message. Crashed at random times, but always the same error message (less the MAC address).

[!] Error: invalid literal for int() with base 10: 'B0:7F:B9:1A:AC:38'
[!] Full stack trace below
[!] Traceback (most recent call last):
[!] File "./Wifite.py", line 200, in
[!] w.main()
[!] File "./Wifite.py", line 38, in main
[!] self.run()
[!] File "./Wifite.py", line 82, in run
[!] s = Scanner()
[!] File "/root/wifite2/py/Scanner.py", line 40, in init
[!] self.targets = airodump.get_targets()
[!] File "/root/wifite2/py/Airodump.py", line 141, in get_targets
[!] targets = Airodump.get_targets_from_csv(csv_filename)
[!] File "/root/wifite2/py/Airodump.py", line 197, in get_targets_from_csv
[!] client = Client(row)
[!] File "/root/wifite2/py/Client.py", line 26, in init
[!] self.packets = int(fields[4].strip())
[!] ValueError: invalid literal for int() with base 10: 'B0:7F:B9:1A:AC:38'

@derv82 derv82 added the bug label Jun 11, 2017
@derv82
Copy link
Owner

derv82 commented Jun 11, 2017

I also had issues parsing the Clients from the airodump-ng output. Seems to have appeared since adding the --write-interval 1 option (to update every second instead of every 5 seconds).

I thought this was fixed in this commit

Can you confirm that you have the commit above (except IndexError, ValueError:) and are still seeing this issue?

@Thurso1761
Copy link
Author

Derv -- I do have the Index, ValueError at Line 198.
Could the problem be -- In py/Client.py, line 26 "int(fields[4].strip())" change int to str???

@Thurso1761
Copy link
Author

Opps..wrong button.

@dav1app
Copy link

dav1app commented Aug 19, 2017

I got the same error on running with Raspberry Pi 3 + wireless interface.

[!] Error: invalid literal for int() with base 10: 'D8'

[!] Full stack trace below

[!] Traceback (most recent call last):
[!] File "./Wifite.py", line 201, in
[!] w.main()
[!] File "./Wifite.py", line 39, in main
[!] self.run()
[!] File "./Wifite.py", line 83, in run
[!] s = Scanner()
[!] File "/root/wifite2/py/Scanner.py", line 40, in init
[!] self.targets = airodump.get_targets()
[!] File "/root/wifite2/py/Airodump.py", line 141, in get_targets
[!] targets = Airodump.get_targets_from_csv(csv_filename)
[!] File "/root/wifite2/py/Airodump.py", line 197, in get_targets_from_csv
[!] client = Client(row)
[!] File "/root/wifite2/py/Client.py", line 26, in init
[!] self.packets = int(fields[4].strip())
[!] ValueError: invalid literal for int() with base 10: 'D8'

@MisterBianco
Copy link
Contributor

It appears to be treating the fields value as an int object.
A Mac address isn't an int.

May need a regex expression to check that a value is valid?

@derv82
Copy link
Owner

derv82 commented Mar 3, 2018

Bug was my bad python. Fixed in af5e3aa

try:
    ...
except IndexError, ValueError:
    # Only catches IndexError.
    # ValueError is a *variable* holding the IndexError !

@derv82 derv82 closed this as completed Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants