Skip to content

smb client command

skelsec edited this page Apr 16, 2021 · 2 revisions

What it does

Spawns an interactive SMB client.

Remarks

The client can be non-interactive if command(s) are supplied after the connection URL. It also supports dropping back to interactive mode if the special command i is supplied.

Requirements

A working SMB connection URL

Subcommands

None

Switches

  • url: SMB connection URL. Please consult the Connection URL section
  • commands : Optional parameter. If populated with commands then those commands will automatically execute after successful logon.
  • -v: Verbosity

Examples

  • pypykatz smb client 'smb2+ntlm-password://TEST\victim:[email protected]': Spawns an interactive SMB client
  • pypykatz smb client 'smb2+ntlm-password://TEST\victim:[email protected]' shares "use c$" ls: Logs on to the target server at 10.10.10.2 and lists the shares, then opens C$ and lists folder and files.
Clone this wiki locally