HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

nxc nfs — Pentest and exploit NFS servers. Currently supports anonymous mode only. More information: <https://

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandnfsandserversexploitclinxc nfspentest

Problem

How to use the nxc nfs command: Pentest and exploit NFS servers. Currently supports anonymous mode only. More information: <https://www.netexec.wiki/nfs-protocol/enumeration>.

Solution

nxc nfs — Pentest and exploit NFS servers. Currently supports anonymous mode only. More information: <https://www.netexec.wiki/nfs-protocol/enumeration>.

Detect the version of a remote NFS server:
nxc nfs {{192.168.178.0/24}}


List the available NFS shares:
nxc nfs {{192.168.178.2}} --shares


Enumerate the exposed shares recursively to the specified depth:
nxc nfs {{192.168.178.2}} --enum-shares {{5}}


Download the specified remote file:
nxc nfs {{192.168.178.2}} --get-file {{path/to/remote_file}} {{path/to/local_file}}


Upload the specified local file to the remote share:
nxc nfs {{192.168.178.2}} --put-file {{path/to/local_file}} {{path/to/remote_file}}

Code Snippets

Detect the version of a remote NFS server

nxc nfs {{192.168.178.0/24}}

List the available NFS shares

nxc nfs {{192.168.178.2}} --shares

Enumerate the exposed shares recursively to the specified depth

nxc nfs {{192.168.178.2}} --enum-shares {{5}}

Download the specified remote file

nxc nfs {{192.168.178.2}} --get-file {{path/to/remote_file}} {{path/to/local_file}}

Upload the specified local file to the remote share

nxc nfs {{192.168.178.2}} --put-file {{path/to/local_file}} {{path/to/remote_file}}

Context

tldr-pages: common/nxc nfs

Revisions (0)

No revisions yet.