mirror of
https://github.com/Pennyw0rth/NetExec.git
synced 2026-11-07 09:26:01 -10:00
Merge pull request #1301 from Pennyw0rth/neff-fix-nfs-upload
Fix file uploading in NFS
This commit is contained in:
1 file changed
+4
@@ -431,6 +431,10 @@ class nfs(connection):
|
||||
self.logger.fail(f"{local_file_path} does not exist.")
|
||||
return
|
||||
|
||||
# Do a bit of smart handling for the remote file path
|
||||
if remote_file_path.endswith("/"):
|
||||
file_name = os.path.basename(local_file_path)
|
||||
|
||||
self.logger.display(f"Uploading from {local_file_path} to {remote_file_path}")
|
||||
try:
|
||||
# Connect to NFS
|
||||
|
||||
Reference in new issue
Block a user