diff --git a/ProtocoleTCP_COMPLET b/ProtocoleTCP_COMPLET deleted file mode 100644 index 130e1fb..0000000 --- a/ProtocoleTCP_COMPLET +++ /dev/null @@ -1,54 +0,0 @@ -Proposition protocole pour installer la charge utile sur le bot: -$C&C: "upload?\n" -$bot: "OKupload\n" -$C&C: "%d\n", charge.name.size -$bot: "OKname_size\n" -$C&C: "%s\n", charge.name -$bot: "OKname\n" -$C&C: "%d\n", charge.data.size -$bot: "OKdata_size\n" -$C&C: "%s\n", charge.data //on envoi octect par octet -$bot: "bye"\n" //qd a recu tt les packets -$C&C: "bye"\n" - -Execution charge: -$C&C: "execute?\n" -$bot: "OKexecute\n" -$C&C: "%d\n", charge.name.size -$bot: "OKname_size\n" -$C&C: "%s\n", charge.name -$bot: "OKname\n" //si la charge n'est pas presente sur le bot alors se dernier envoi un autre message "NOKname\n" et ca stop l'echange -$bot: "%d\n", id //indice de l'execution dans la structure de donne choisie (liste chaine, table de hashage...a definir) pour stocker les resultats d'execution sur le bot -$C&C: "OKid\n" -$bot: "bye"\n" -$C&C: "bye"\n" - -Suppression charge: -$C&C: "delet?\n" -$bot: "OKdelet\n" -$C&C: "%d\n", charge.name.size -$bot: "OKname_size\n" -$C&C: "%s\n", charge.name -$bot: "OKname\n" //si la charge n'est pas presente sur le bot alors se dernier envoi "NOKname\n" et ca stop l'echange -$C&C: "bye"\n" -$bot: "bye"\n" - -Resultat execution charge: -$C&C: "result?\n" -$bot: "OKresult\n" -$C&C: "%d\n", id -$bot: "OKid" //si id existe pas, renvoie "NOKid\n" et stop l'echange -$bot: "%d\n", executions[id].result.size -$C&C: "OKresult_size\n" -$bot: "%s\n", executions[id].result //on envoi octect par octet -$C&C: "bye"\n" //qd a recu tt les packets -$bot: "bye"\n" - -Demande Etat du bot: -$C&C: "state?\n" -$bot: "%d\n", nbCharge -$C&C: "OKnbCharge\n" -$bot: "%d\n", nbExecs -$C&C: "OKnbExecs\n" -$bot: "bye"\n" -$C&C: "bye"\n" diff --git a/ProtocoleTCP_Charges b/ProtocoleTCP_Charges new file mode 100644 index 0000000..8c55156 --- /dev/null +++ b/ProtocoleTCP_Charges @@ -0,0 +1,45 @@ +Proposition protocole pour installer la charge utile sur le bot: +$C&C: "upload?\n" +$bot: "OKupload\n" +$C&C: "%d\n", charge.name.size +$bot: "OKname_size\n" +$C&C: "%s\n", charge.name +$bot: "OKname\n" +$C&C: "%d\n", charge.data.size +$bot: "OKdata_size\n" +$C&C: "%s\n", charge.data //on envoi octect par octet +$bot: "bye"\n" //qd a recu tt les packets +$C&C: "bye"\n" + +Execution charge: +$C&C: "execute?\n" +$bot: "OKexecute\n" +$C&C: "%d\n", charge.name.size +$bot: "OKname_size\n" +$C&C: "%s\n", charge.name +$bot: "OKname\n" //si la charge n'est pas presente sur le bot alors se dernier envoi un autre message "NOKname\n" et ca stop l'echange +$bot: "%d\n", id //indice de l'execution dans la structure de donne choisie (liste chaine, table de hashage...a definir) pour stocker les resultats d'execution sur le bot +$C&C: "OKid\n" +$bot: "bye"\n" +$C&C: "bye"\n" + +Suppression charge: +$C&C: "delet?\n" +$bot: "OKdelet\n" +$C&C: "%d\n", charge.name.size +$bot: "OKname_size\n" +$C&C: "%s\n", charge.name +$bot: "OKname\n" //si la charge n'est pas presente sur le bot alors se dernier envoi "NOKname\n" et ca stop l'echange +$C&C: "bye"\n" +$bot: "bye"\n" + +Resultat execution charge: +$C&C: "result?\n" +$bot: "OKresult\n" +$C&C: "%d\n", id +$bot: "OKid" //si id existe pas, renvoie "NOKid\n" et stop l'echange +$bot: "%d\n", executions[id].result.size +$C&C: "OKresult_size\n" +$bot: "%s\n", executions[id].result //on envoi octect par octet +$C&C: "bye"\n" //qd a recu tt les packets +$bot: "bye"\n" diff --git a/README.md b/README.md index f3a304d..1e20751 100644 --- a/README.md +++ b/README.md @@ -64,17 +64,5 @@ - _$C&C_ : "bye"\n" //qd a recu tt les packets - _$BOT_ : "bye"\n" -### Demander l'état d'un bot (IDEM STAT) - -**En cours de discussion** - -- _$C&C_ : "state?\n" -- _$BOT_ : "%d\n", nbCharge -- _$C&C_ : "OKnbCharge\n" -- _$BOT_ : "%d\n", nbExecs -- _$C&C_ : "OKnbExecs\n" -- _$BOT_ : "bye"\n" -- _$C&C_ : "bye"\n" - **Veuillez ne pas modifier ce README sans en parler à tout le monde !** -- libgit2 0.21.2