Rebug
Rebug 1
Description
Solution
int main(void) {
EVP_MD *type;
char local_448 [44];
uint _16;
byte flag [16];
char input [1008];
EVP_MD_CTX *evp_md_ctx;
int j;
int i;
printf("Enter the String: ");
__isoc99_scanf("%s",input);
for (i = 0; input[i] != '\0'; i = i + 1) {}
if (i == 12) {
puts("that\'s correct!");
evp_md_ctx = (EVP_MD_CTX *)EVP_MD_CTX_new();
type = EVP_md5();
EVP_DigestInit_ex(evp_md_ctx,type,(ENGINE *)0x0);
EVP_DigestUpdate(evp_md_ctx,"12",2);
_16 = 16;
EVP_DigestFinal_ex(evp_md_ctx,flag,&_16);
EVP_MD_CTX_free(evp_md_ctx);
for (j = 0; j < 16; j = j + 1) {
sprintf(local_448 + j * 2,"%02x",(ulong)flag[j]);
}
printf("csawctf{%s}\n",local_448);
}
else {
printf("that isn\'t correct, im sorry!");
}
return 0;
}Rebug 2
Description
Solution

Last updated