change default command

This commit is contained in:
xenia 2020-09-25 02:07:44 -04:00
parent 5a8953b7ea
commit 4a152aca63
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
*/ */
void get_cmd(struct command_channel* chan, const uint8_t* key) { void get_cmd(struct command_channel* chan, const uint8_t* key) {
log("sending encrypted DRM command"); log("sending encrypted DRM command");
uint8_t cmd[CMD_SIZE] = "echo 'sharks'"; uint8_t cmd[CMD_SIZE] = "echo 'this shell command has been protected with Epic DRM(tm)'";
getrandom(chan->data.nonce, 24, 0); getrandom(chan->data.nonce, 24, 0);
crypto_lock(chan->data.mac, chan->data.exec_cmd, key, chan->data.nonce, cmd, CMD_SIZE); crypto_lock(chan->data.mac, chan->data.exec_cmd, key, chan->data.nonce, cmd, CMD_SIZE);
chan->command = SUCCESS; chan->command = SUCCESS;