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

pyasn1-0.3.5: Error: can only concatenate tuple (not "str") to tuple #325

Closed
sho-luv opened this issue Sep 19, 2017 · 6 comments
Closed

Comments

@sho-luv
Copy link

sho-luv commented Sep 19, 2017

So when I run the following command
GetUserSPNs.py domain/user:password

Impacket v0.9.16-dev - Copyright 2002-2017 Core Security Technologies

ServicePrincipalName Name MemberOf PasswordLastSet LastLogon


<information no problem!>

GetUserSPNs.py domain/user:password -request

ServicePrincipalName Name MemberOf PasswordLastSet LastLogon


<information no problem!>

however I then get this error:

can only concatenate tuple (not "str") to tuple

any ideas as to what sort of data I'm getting back that might cause this?

@asolino
Copy link
Collaborator

asolino commented Sep 19, 2017

Hey @sho-luv

What pyasn1 version you have installed in your system? That might be the problem. You can quickly check it from your python console:

import pyasn1
pyasn1.__version__

@sho-luv
Copy link
Author

sho-luv commented Sep 20, 2017

Apparently I'm running 0.3.5

python
Python 2.7.13 (default, Jan 19 2017, 14:48:08) 
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyasn1
>>> 
>>> pyasn1.__version__
'0.3.5'
>>> 

@asolino
Copy link
Collaborator

asolino commented Sep 20, 2017

Certainly I can reproduce that in pyasn1 0.3.5. While I take a look at it, please install an older version for that library.
pyasn1-0.3.3 should work.

@asolino asolino changed the title Error: can only concatenate tuple (not "str") to tuple pyasn1-0.3.5: Error: can only concatenate tuple (not "str") to tuple Sep 20, 2017
@asolino
Copy link
Collaborator

asolino commented Sep 20, 2017

Just tested pyasn1-0.3.4 and it works as well. Something's wrong with the latest version and our code.

@sho-luv
Copy link
Author

sho-luv commented Sep 20, 2017

Thanks. Rolling it back works for me as well. For now I use the workaround
pip install pyasn1==0.3.3

@asolino
Copy link
Collaborator

asolino commented Sep 20, 2017

New pyasn1 release (0.3.6) tagged with this fix. Closing this one. Thanks @sho-luv for reporting it and @etingof for the quick turnaround!. Closing.

@asolino asolino closed this as completed Sep 20, 2017
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