We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f7c35c + cdecf3f commit 812c277Copy full SHA for 812c277
1 file changed
nxc/protocols/nfs.py
@@ -622,7 +622,11 @@ def ls(self):
622
# NORMAL LS CALL (without root escape)
623
if self.args.share:
624
mount_info = self.mount.mnt(self.args.share, self.auth)
625
- mount_fh = mount_info["mountinfo"]["fhandle"]
+ if mount_info["status"] != 0:
626
+ self.logger.fail(f"Could not mount share {self.args.share}: {NFSSTAT3[mount_info['status']]}")
627
+ return
628
+ else:
629
+ mount_fh = mount_info["mountinfo"]["fhandle"]
630
elif self.root_escape:
631
# Interestingly we don't actually have to mount the share if we already got the handle
632
self.logger.success(f"Successful escape on share: {self.escape_share}")
0 commit comments