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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user