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

another exception, this time in setup andx processing #18

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 0 comments
Open

another exception, this time in setup andx processing #18

GoogleCodeExporter opened this issue Mar 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

here's a repro payload:

00000049ff534d42730000000000000000000000000000000000000000005c02000000000dff0000
00ffff02005c02000000000000000000000000010000000b0000004d5300434c49454e5400

and here's a stack trace:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/impacket/smbserver.py", line 2332, in handle
    resp = self.__SMB.processRequest(self.__connId, p.get_trailer())
  File "/usr/local/lib/python2.7/dist-packages/impacket/smbserver.py", line 2651, in processRequest
    packet)
  File "/usr/local/lib/python2.7/dist-packages/impacket/smbserver.py", line 2177, in smbComSessionSetupAndX
    sessionSetupData.fromString(SMBCommand['Data'])
  File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 142, in fromString
    size = self.calcUnpackSize(field[1], data, field[0])
  File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 464, in calcUnpackSize
    return self.calcUnpackSize(two[0], data)
  File "/usr/local/lib/python2.7/dist-packages/impacket/structure.py", line 496, in calcUnpackSize
    return data.index('\x00')+1
ValueError: substring not found

Original issue reported on code.google.com by bryanbu...@gmail.com on 13 Sep 2012 at 10:08

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

1 participant