Atlantiraptor Docs

upload_smb

Type: Function

Upload files using the SMB file share protocol.

Argument Type Description
file accessors.OSPath (required) The file to upload
name accessors.OSPath The name of the file that should be stored on the server
accessor string The accessor to use
username string The SMB username to login as (if not provided we use the SMB_CREDENTIALS env)
password string The SMB password to login as (if not provided we use the SMB_CREDENTIALS env)
server_address string (required) The SMB server address and optionally port followed by the share name (e.g. \192.168.1.1:445\ShareName)

Required permissions: FILESYSTEM_READ, NETWORK

Platforms: macOS, Linux, Windows

Source: vql/tools/smb_upload.go