-
Notifications
You must be signed in to change notification settings - Fork 719
struct.error: argument for 's' must be a string #232
Comments
ubuntu 16.04LTS struct.error: argument for 's' must be a string |
An intermediate fix... In "/usr/share/WiFi-Pumpkin/core/utils.py" (function get_Ipaddr) change the second return to: |
@okazymyrov thanks for suggestion. |
did u guys update the main distro ? |
After I rewrite the function get_Ipaddr, I become the following issue: In the file it's look like this: @staticmethod |
@eisyeisy you need to ensure that indentation level is the same after editing. Most likely your editor has changed indentation to "tab" while original level was 4 spaces.
… 6 июня 2017 г., в 20:46, eisyeisy ***@***.***> написал(а):
After I rewrite the function get_Ipaddr, I become the following issue:
Traceback (most recent call last):
File "wifi-pumpkin.py", line 39, in
from core.loaders.checker.networkmanager import CLI_NetworkManager,UI_NetworkManager
File "/usr/share/WiFi-Pumpkin/core/loaders/checker/networkmanager.py", line 3, in
from core.utils import Refactor
File "/usr/share/WiFi-Pumpkin/core/utils.py", line 296
return get_if_addr("{0}".format(card))
^
IndentationError: unindent does not match any outer indentation level
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@okazymyrov thank you! Traceback (most recent call last): |
Using Ubuntu latest version
wlan1 - alpha
Getting this issue
Loading GUI...
Traceback (most recent call last):
File "wifi-pumpkin.py", line 53, in
app = Initialize()
File "/usr/share/WiFi-Pumpkin/core/main.py", line 94, in init
self.form_widget = WifiPumpkin(self,self,self.FSettings)
File "/usr/share/WiFi-Pumpkin/core/main.py", line 160, in init
self.UpdateSoftware = frm_githubUpdate(version)
File "/usr/share/WiFi-Pumpkin/core/helpers/update.py", line 32, in init
super(frm_githubUpdate, self).init(parent)
File "/usr/share/WiFi-Pumpkin/core/loaders/models/PackagesUI.py", line 40, in init
self.interfaces = Refactor.get_interfaces()
File "/usr/share/WiFi-Pumpkin/core/utils.py", line 260, in get_interfaces
interfaces['IPaddress'] = Refactor.get_Ipaddr(interfaces['activated'][0])
File "/usr/share/WiFi-Pumpkin/core/utils.py", line 296, in get_Ipaddr
return get_if_addr(card)
File "/usr/lib/python2.7/dist-packages/scapy/arch/init.py", line 36, in get_if_addr
return socket.inet_ntoa(get_if_raw_addr(iff))
File "/usr/lib/python2.7/dist-packages/scapy/arch/linux.py", line 86, in get_if_raw_addr
return get_if(iff, SIOCGIFADDR)[20:24]
File "/usr/lib/python2.7/dist-packages/scapy/arch/linux.py", line 269, in get_if
ifreq = ioctl(s, cmd, struct.pack("16s16x",iff))
struct.error: argument for 's' must be a string
The text was updated successfully, but these errors were encountered: