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

struct.error: argument for 's' must be a string #31

Closed
arnauldb opened this issue Jan 21, 2017 · 3 comments
Closed

struct.error: argument for 's' must be a string #31

arnauldb opened this issue Jan 21, 2017 · 3 comments
Assignees

Comments

@arnauldb
Copy link

arnauldb commented Jan 21, 2017

Hello,

when launching kickthemout I have this message :

root@arnauld:/home/arnauld/kickthemout# python kickthemout.py
 Traceback (most recent call last):
   File "kickthemout.py", line 327, in <module>
     defaultInterfaceMac = get_if_hwaddr(defaultInterface)
   File "/usr/local/lib/python2.7/dist-packages/scapy/arch/__init__.py", line 51, in get_if_hwaddr
     addrfamily, mac = get_if_raw_hwaddr(iff)
   File "/usr/local/lib/python2.7/dist-packages/scapy/arch/linux.py", line 95, in get_if_raw_hwaddr
     return struct.unpack("16xh6s8x",get_if(iff,SIOCGIFHWADDR))
   File "/usr/local/lib/python2.7/dist-packages/scapy/arch/common.py", line 19, in get_if
     ifreq = ioctl(sck, cmd, struct.pack("16s16x", iff))
 struct.error: argument for 's' must be a string

thanks for any help,

@k4m4 k4m4 self-assigned this Jan 21, 2017
@k4m4 k4m4 changed the title error struct.error: argument for 's' must be a string Jan 21, 2017
k4m4 added a commit that referenced this issue Jan 21, 2017
@k4m4
Copy link
Owner

k4m4 commented Jan 21, 2017

Should work now. Check it out and let me know please.
Thanks!

@arnauldb
Copy link
Author

arnauldb commented Jan 21, 2017

Thanks for that quick help, it works perfectly now.

selection_010

@k4m4
Copy link
Owner

k4m4 commented Jan 21, 2017

No problem. Thank you for submitting! :)

@k4m4 k4m4 closed this as completed Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants