Twi1ight / impacket

Automatically exported from code.google.com/p/impacket
Other
1 stars 4 forks source link

exception parsing negotiate protocol request #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
looks like a missing ChallengeLength parameter.  The following fixes (I think!)

--- impacket/smbserver.py   (revision 717)
+++ impacket/smbserver.py   (working copy)
@@ -2238,6 +2238,7 @@
                     else:
                         # TODO: Handle random challenges, now one that can be used with rainbow tables
                         _dialects_data['Challenge'] = '\x11\x22\x33\x44\x55\x66\x77\x88'
+                        _dialects_parameters['ChallengeLength'] = 8
                     _dialects_parameters['Capabilities']    = smb.SMB.CAP_USE_NT_ERRORS | smb.SMB.CAP_NT_SMBS
                     _dialects_data['Payload'] = ''

The following packet (this is TCP payload) will trigger:

0000002fff534d42720000000000000000000000000000000000000000005c0200000000000c0002
4e54204c4d20302e313200

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

GoogleCodeExporter commented 9 years ago
Thanks!

Fixed in http://code.google.com/p/impacket/source/detail?r=718

Original comment by bet...@gmail.com on 13 Sep 2012 at 10:06