1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +00:00

Recognize NT_STATUS_INVALID_PARAMETER as a known error code when testing

if a share is writable (along with NT_STATUS_ACCESS_DENIED). I got this
code from a printer share.
This commit is contained in:
david
2010-02-12 23:14:37 +00:00
parent be9e0265f6
commit 87fbf1df1e

View File

@@ -2449,7 +2449,7 @@ function share_anonymous_can_write(host, share)
return false, err
end
if(err == "NT_STATUS_ACCESS_DENIED") then
if(err == "NT_STATUS_ACCESS_DENIED" or err == "NT_STATUS_INVALID_PARAMETER") then
return true, false
end
@@ -2488,7 +2488,7 @@ function share_user_can_write(host, share)
return false, err
end
if(err == "NT_STATUS_ACCESS_DENIED") then
if(err == "NT_STATUS_ACCESS_DENIED" or err == "NT_STATUS_INVALID_PARAMETER") then
return true, false
end