This commit is contained in:
aixiao 2022-12-26 11:28:59 +08:00
parent f3b0145cfc
commit ca84c836be

8
sha.c
View File

@ -639,7 +639,7 @@ char *source_c[] = {
" char *argvs[BUFFER_SIZE];", " char *argvs[BUFFER_SIZE];",
" int l=1;", " int l=1;",
" int i=4;", " int i=4;",
" static uint8_t key[16] = \"aixiao\";", " static uint8_t key[16] = \"aixiao.me\";",
" struct AES_ctx ctx;", " struct AES_ctx ctx;",
" uint8_t *Hex_string = (uint8_t *) malloc(encrypted_text_len*2);", " uint8_t *Hex_string = (uint8_t *) malloc(encrypted_text_len*2);",
" char *shbin = NULL;", " char *shbin = NULL;",
@ -699,7 +699,7 @@ int main(int argc, char *argv[])
open_file(argv[1]); open_file(argv[1]);
struct AES_ctx ctx; struct AES_ctx ctx;
static uint8_t key[16] = "aixiao"; static uint8_t key[16] = "aixiao.me";
uint8_t text_content[file_size * 2]; uint8_t text_content[file_size * 2];
uint8_t text_content_out[file_size * 2]; uint8_t text_content_out[file_size * 2];
uint16_t text_content_length = file_size; uint16_t text_content_length = file_size;
@ -772,9 +772,9 @@ int main(int argc, char *argv[])
sleep(1); sleep(1);
if (getenv("CFLAGS") != NULL) if (getenv("CFLAGS") != NULL)
sprintf(buildcmd, "gcc -Wall -Os %s %s -o %s", getenv("CFLAGS"), sourcefile, binfile); sprintf(buildcmd, "gcc %s %s -o %s", getenv("CFLAGS"), sourcefile, binfile);
else else
sprintf(buildcmd, "gcc -Wall -Os %s -o %s", sourcefile, binfile); sprintf(buildcmd, "gcc %s -o %s", sourcefile, binfile);
strcat(buildcmd, " && strip "); strcat(buildcmd, " && strip ");