Skip to content

Commit

Permalink
Merge pull request #675 from MrAnde7son/patch-12
Browse files Browse the repository at this point in the history
Add support for all info types query\set info request
  • Loading branch information
asolino authored Sep 23, 2019
2 parents afa2825 + 149ba19 commit 02089dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impacket/smb3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ def queryInfo(self, treeId, fileId, inputBlob = '', infoType = SMB2_0_INFO_FILE,

queryInfo = SMB2QueryInfo()
queryInfo['FileID'] = fileId
queryInfo['InfoType'] = SMB2_0_INFO_FILE
queryInfo['InfoType'] = infoType
queryInfo['FileInfoClass'] = fileInfoClass
queryInfo['OutputBufferLength'] = 65535
queryInfo['AdditionalInformation'] = additionalInformation
Expand Down Expand Up @@ -1341,7 +1341,7 @@ def setInfo(self, treeId, fileId, inputBlob = '', infoType = SMB2_0_INFO_FILE, f
packet['TreeID'] = treeId

setInfo = SMB2SetInfo()
setInfo['InfoType'] = SMB2_0_INFO_FILE
setInfo['InfoType'] = infoType
setInfo['FileInfoClass'] = fileInfoClass
setInfo['BufferLength'] = len(inputBlob)
setInfo['AdditionalInformation'] = additionalInformation
Expand Down

0 comments on commit 02089dc

Please sign in to comment.