Closed tiyeuse closed 1 month ago
I wonder if we still need the check on the folder if we have the file ?
I think so since write file and create folder are two different permissions. Testing for each is important. If only one is allowed, nxc will only display "WRITE" without specifying if it's a file or a folder. In that case, two options (at least) are possible:
I would say we either check only for file creation (because imo that's what most often matters) or we combine the file&folder test and if both pass we add the "write" privilege to the output. Currently that looks a bit ugly and honestly i would be very confused:
Thoughts?
File OR Directory = WRITE
sounds good
Currently NetExec only checks the "WRITE" permission on a SMB share through writing a folder. It is also necessary to verify this permission through a file write. This PR implements this additional check.