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

Force convert TX_POWER to string #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Force convert TX_POWER to string #86

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 19, 2016

When running wifite with specified TX power under Python 2.7, the script
would fail on the iwconfig call, supposedly because
self.RUN_CONFIG.TX_POWER is interpreted as an integer.
This commit tries to fix this issue by converting TX_POWER argument
to a string.
An example traceback with source lines left out (they are too wide to
fit in a 50/72 commit message) is below:

Traceback (most recent call last):
  File "/usr/local/bin/wifite", line 3525, in <module>
  File "/usr/local/bin/wifite", line 1383, in Start
  File "/usr/local/bin/wifite", line 1032, in get_iface
  File "/usr/local/bin/wifite", line 898, in enable_monitor_mode
  File "/usr/lib/python2.7/subprocess.py", line 523, in call
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
  File "/usr/lib/python2.7/subprocess.py", line 1340, in _execute_child
TypeError: execv() arg 2 must contain only strings

When running wifite with specified TX power under Python 2.7, the script
would fail on the iwconfig call, supposedly because
self.RUN_CONFIG.TX_POWER is interpreted as an integer.
This commit tries to fix this issue by converting TX_POWER argument
to a string.
An example traceback with source lines left out (they are too wide to
fit in a 50/72 commit message) is below:

Traceback (most recent call last):
  File "/usr/local/bin/wifite", line 3525, in <module>
  File "/usr/local/bin/wifite", line 1383, in Start
  File "/usr/local/bin/wifite", line 1032, in get_iface
  File "/usr/local/bin/wifite", line 898, in enable_monitor_mode
  File "/usr/lib/python2.7/subprocess.py", line 523, in call
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
  File "/usr/lib/python2.7/subprocess.py", line 1340, in _execute_child
TypeError: execv() arg 2 must contain only strings
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

Successfully merging this pull request may close these issues.

0 participants