1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-24 01:25:37 +01:00

Fixed escalate.auto file read

This commit is contained in:
Caleb Stewart 2020-10-04 18:15:38 -04:00
parent de70dd04b6
commit d329e8882a

View File

@ -95,16 +95,7 @@ class Module(BaseModule):
return
elif read:
yield Status(f"attempting file read as {target_user}")
filp = result.read(target_user, path, self.progress)
original_close = filp.close
# We need to call unwrap after reading the data
def close_wrapper():
original_close()
whole_chain.unwrap()
filp.close = close_wrapper
filp, _ = result.read(target_user, path, self.progress)
yield FileContentsResult(path, filp)
return
else: