NetExec icon indicating copy to clipboard operation
NetExec copied to clipboard

Update Put File Functions [SMB, MSSQL, FTP]

Open termanix opened this issue 1 year ago • 4 comments

This update checks if the file exist on remote target, then asking to user if want to overwrite it.

-

-

-

termanix avatar Oct 16 '24 07:10 termanix

Interesting 👍

mpgn avatar Oct 16 '24 07:10 mpgn

@termanix I like this idea, but I'm not a fan of prompting users for stuff with NetExec because often people are running it against a lot of hosts. Could you instead add this as an option to prompt, in case the user doesnt want to overwrite the file if it exists? Or maybe a flag to not overwrite existing files, but alert the user that the file existed and wasnt overwritten.

Marshall-Hallenbeck avatar Jul 31 '25 18:07 Marshall-Hallenbeck

Okay, sure I can 🤘🏻

termanix avatar Jul 31 '25 18:07 termanix

I am also a bit concerned about whether it is worth to add additional complexity for just checking duplicate files. E.g. if we only have write but not read access it could fail, where it hasn't before. That's why i put it on hold.

Usually i think the only file you would typically overwrite is if you already have uploaded a similar file, which you would need to reupload for some reason.

TLDR; I don't see much of a benefit in the exchange for the added risk of something going wrong (e.g. the self.conn.voidcmd("TYPE I") call in ftp)

NeffIsBack avatar Jul 31 '25 22:07 NeffIsBack