Skip to content

Commit

Permalink
Fix directory traversal for smbComDeleteDirectory()
Browse files Browse the repository at this point in the history
  • Loading branch information
d0gkiller87 committed Dec 20, 2024
1 parent 67e1924 commit 75642ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impacket/smbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@ def smbComDeleteDirectory(connId, smbServer, SMBCommand, recvPacket):
smbServer.log("Path not in current working directory", logging.ERROR)
errorCode = STATUS_OBJECT_PATH_SYNTAX_BAD

if os.path.exists(pathName) is not True:
elif not os.path.exists(pathName):
errorCode = STATUS_NO_SUCH_FILE

else:
Expand Down

0 comments on commit 75642ef

Please sign in to comment.