NetExec FTP List Files

List the contents of an FTP server's working directory (or a specified path). Quick triage step before pulling files with --get.

Tool
nxc
Category
Enumeration / FTP
Platform
linux
Requires
password
Protocols
FTP

Open in Command Manager

Syntax

Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.

nxc ftp <target> -u '<user>' -p '<password>' --ls

Credential variants

The same attack using a different authentication material.

Specific Path requires password

nxc ftp <target> -u '<user>' -p '<password>' --ls <path>

Anonymous requires no credentials

nxc ftp <target> -u 'anonymous' -p '' --ls

Examples

nxc ftp 10.10.10.10 -u anonymous -p '' --ls

Tags

netexec nxc ftp enumeration