Tool 204: SMB/CIFS client: rename a file

Description:

  This tool is a simple SMB/CIFS client renaming a file.
  
  Parameter --dst-ip is the address of remote host/server.
  Parameter --dst-port is the port number where to connect.
  Optional parameter --src-ip defines the local IP address to use.
  Optional parameter --src-port defines the local port number to use.
  Optional parameter --ip4opts permits to add IP4 options encoded as
  mixed.
  Optional parameter --ip6exts permits to add IP6 options encoded as
  mixed (first byte is the next header number).
  Optional parameters --device, --src-eth and --dst-eth permits to
  create a virtual client using fake addresses (in this case, tool have
  to be run with admin privilege in order to sniff and spoof at
  Ethernet level).
  
  Parameter --share indicates the share name.
  Parameter --user indicates the optional username.
  Parameter --password indicates the optional password.
  Parameter --authversion defines the authentication protocol to use
  (0=Lanman, 1=NTLMv1, 2=NTLMv2, unset=guess(try NTLMv2, then NTLMv1,
  and finally Lanman)).
  Parameter --netbiosname defines the NetBIOS name of server. It is
  generally the same as its DNS name. Most of the time, it is not
  needed.
  Parameter --verbose displays activity (set it if a problem occurs).
  Parameter --debug displays packets to screen.
  Example, to connect on //server/myshare/, use:
  --dst-ip myserver --share myshare --netbiosname myserver --user bob
    --password hello
   

Synonyms:

  smbclient

Usage:

  netwox 204 -i ip -s smbshare [-u login] [-w password] [-N netbiosname] -f file -F file [-d device] [-E eth] [-e eth] [-I ip] [-P port] [-p port] [-o ip4opts] [-O ip6exts] [-v uint32] [-T uint32] [-V|+V] [-D|+D]

Parameters:

parameter description example
-i|--dst-ip ip destination IP address 5.6.7.8
-s|--share smbshare share name C$
-u|--user login username  
-w|--password password password  
-N|--netbiosname netbiosname server NetBIOS NAME  
-f|--oldfilename file old file name file.txt
-F|--newfilename file new file name file.txt
-d|--device device device name Eth0
-E|--src-eth eth source ethernet address 0:2:3:4:5:6
-e|--dst-eth eth destination ethernet address 0:8:9:a:b:c
-I|--src-ip ip source IP address 192.168.100.200
-P|--src-port port source port number 0
-p|--dst-port port destination port number 139
-o|--ip4opts ip4opts IPv4 options  
-O|--ip6exts ip6exts IPv6 extensions  
-v|--authversion uint32 0=Lanman, 1=NTLMv1, 2=NTLMv2, unset=best 2
-T|--timeout uint32 timeout in milliseconds 60000
-V|--verbose|+V|--no-verbose display SMB trace  
-D|--debug|+D|--no-debug display SMB packets  

Examples:

  netwox 204 -i "5.6.7.8" -s "C$" -f "file.txt" -F "file.txt"

  netwox 204 --dst-ip "5.6.7.8" --share "C$" --oldfilename "file.txt" --newfilename "file.txt"