You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File /usr/local/lib/python3.10/site-packages/impacket/smb.py, line 521, in __str__/n<class 'KeyError'>:3372220416'
The error happens because the code is trying to access an error_code that does not exist in the mapping of NTSTATUS that comes from [MS-ERREF]: NTSTATUS Values
The code 3372220416 is 0xc9000000 in Hex, and is probably being converted by Python.
def __str__( self ):
error_class = SessionError.error_classes.get( self.error_class, None )
if not error_class:
error_code_str = self.error_code
error_class_str = self.error_class
else:
error_class_str = error_class[0]
error_code = error_class[1].get( self.error_code, None )
if not error_code:
error_code_str = self.error_code
else:
error_code_str = '%s(%s)' % error_code
if self.nt_status:
return 'SMB SessionError: %s(%s)' % nt_errors.ERROR_MESSAGES[self.error_code] ### THIS LINE IS RAISING AN EXCEPTION
else:
# Fall back to the old format
return 'SMB SessionError: class: %s, code: %s' % (error_class_str, error_code_str)
The text was updated successfully, but these errors were encountered:
Configuration
impacket version: 0_9_23
Python version: 3.10
Debug Output With Command String
powershell.exe -executionpolicy bypass -File "C:\/Windows\/MyFolder\/MyFile.ps1"
The error happens because the code is trying to access an error_code that does not exist in the mapping of NTSTATUS that comes from [MS-ERREF]: NTSTATUS Values
The code 3372220416 is 0xc9000000 in Hex, and is probably being converted by Python.
The text was updated successfully, but these errors were encountered: