Summary
Windows post file support is lacking in several key methods
Now obviously not all of these should or even can be implemented on windows, chmod would be a good example of this but at the same time having the function raise an exception in these cases means we have to have ugly guard clauses around code when a no-op would work just fine for example
discussion started from this PR #21477
Motivation
Windows and linux post file support should have parity where possible and not require guard clauses around the system type leaking into module code if not absolutely necessary
Summary
Windows post file support is lacking in several key methods
executable?writable?immutable?readable?attributeschmodfind_writable_directoriesstathttps://github.com/rapid7/metasploit-framework/blob/68210662174819c05cb2ed3ed0bb4f808219ca59/lib/msf/core/post/file.rb
Now obviously not all of these should or even can be implemented on windows,
chmodwould be a good example of this but at the same time having the function raise an exception in these cases means we have to have ugly guard clauses around code when a no-op would work just fine for examplediscussion started from this PR #21477
Motivation
Windows and linux post file support should have parity where possible and not require guard clauses around the system type leaking into module code if not absolutely necessary