We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9161b29 commit d214067Copy full SHA for d214067
1 file changed
nxc/protocols/nfs.py
@@ -590,6 +590,10 @@ def try_root_escape(self) -> bool:
590
self.logger.debug(f"Trying root escape on shares: {shares}")
591
for share in shares:
592
mount_info = self.mount.mnt(share, self.auth)
593
+ if mount_info["status"] != 0:
594
+ self.logger.debug(f"Root escape: can't list directory {share}: {NFSSTAT3[mount_info['status']]}")
595
+ self.mount.umnt(self.auth)
596
+ continue
597
mount_fh = mount_info["mountinfo"]["fhandle"]
598
try:
599
possible_root_fhs = self.get_root_handles(mount_fh)
0 commit comments