Skip to content

Commit

Permalink
Fix SMB signing error
Browse files Browse the repository at this point in the history
  • Loading branch information
worawit committed Jul 11, 2017
1 parent abfa89d commit 730e4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysmb.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def create_smb_packet(self, smbReq, mid=None, pid=None, tid=None):
pkt['Flags2'] = self._pkt_flags2 if self._pkt_flags2 != 0 else flags2

if self._SignatureEnabled:
pkt['Flags2'] |= SMB.FLAGS2_SMB_SECURITY_SIGNATURE
pkt['Flags2'] |= smb.SMB.FLAGS2_SMB_SECURITY_SIGNATURE
self.signSMB(pkt, self._SigningSessionKey, self._SigningChallengeResponse)

req = str(pkt)
Expand Down

0 comments on commit 730e4e6

Please sign in to comment.