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

sshuttle syntax error in kali linux 2020.2 #508

Closed
0xfL0ki opened this issue Aug 17, 2020 · 1 comment
Closed

sshuttle syntax error in kali linux 2020.2 #508

0xfL0ki opened this issue Aug 17, 2020 · 1 comment

Comments

@0xfL0ki
Copy link

0xfL0ki commented Aug 17, 2020

Traceback (most recent call last):
File "/usr/local/bin/sshuttle", line 11, in
load_entry_point('sshuttle==1.0.4.dev19+gbe4b081', 'console_scripts', 'sshuttle')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2852, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2443, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2449, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/dist-packages/sshuttle-1.0.4.dev19+gbe4b081-py2.7.egg/sshuttle/cmdline.py", line 5, in
import sshuttle.client as client
File "/usr/local/lib/python2.7/dist-packages/sshuttle-1.0.4.dev19+gbe4b081-py2.7.egg/sshuttle/client.py", line 302
assert(not re.search(rb'[^-\w\.]', hostname))
^
SyntaxError: invalid syntax

Tried clean installing it couple of time from github & apt. Getting the same error. Any idea how to fix it?

@0xfL0ki 0xfL0ki changed the title sshuttle syntax error in kali linux sshuttle syntax error in kali linux 2020.2 Aug 17, 2020
@brianmay
Copy link
Member

This is because you need Python >= 3.4. Python 2.7 doesn't understand the 'rb' syntax.

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

2 participants