mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +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:
parent
be9e0265f6
commit
87fbf1df1e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue