Download and Upload Files

For `--chmod` you need to specify the export share with --share if you do not want to use the root fs escape method (see escape to root file system).

Files in NetExec are uploaded with `777` permissions by default. To change these permissions you can use the `--chmod` flag:

Example usage:

Download File

Example usage:

Upload File

Uploaded files are created with chmod 777 permissions (this can be changed with `--chmod`). If folders in the specified path do not exist yet, they will be created as well. Example usage:

If the local file already exists on the remote server, NetExec asks whether you want to overwrite it.

Last updated

Was this helpful?