Comments on: hackyou.ctf.su 2016 https://babyphd.net/2016/11/24/hackyou-ctf-su-2016/ Nói chung đây là một khái niệm vô cùng trừu tượng Thu, 27 Jul 2017 19:02:33 +0000 hourly 1 https://wordpress.org/?v=5.2.2 By: justcallmedude https://babyphd.net/2016/11/24/hackyou-ctf-su-2016/#comment-8120 Thu, 27 Jul 2017 13:39:55 +0000 https://babyphd.net/?p=627#comment-8120 nice, I'll try KLEE next time 😀

]]>
By: zun https://babyphd.net/2016/11/24/hackyou-ctf-su-2016/#comment-7474 Mon, 26 Dec 2016 07:42:40 +0000 https://babyphd.net/?p=627#comment-7474 in [Reverse 100] problem, other simple way is to use Klee to solve

#include
#include
#include

#define ITERS 12
int main() {
char buf[ITERS];
klee_make_symbolic(buf, ITERS, "012345");
unsigned int a = buf[0] | (buf[4] << 8) | (buf[8] << 16);
unsigned int b = buf[1] | (buf[5] << 8) | (buf[9] << 16);
unsigned int c = buf[2] | (buf[6] << 8) | (buf[10] << 16);
unsigned int d = buf[3] | (buf[7] << 8) | (buf[11] << 16);
if (!(((a % 3571) == 2963) && (((a % 2843) == 215)) && (((a % 30243) == 13059))))
return 2;
if (!(((b % 80735) == 51964) && (((b % 8681) == 2552)) && (((b % 40624) == 30931))))
return 3;
if (!(((c % 99892) == 92228) && (((c % 45629) == 1080)) && (((c % 24497) == 12651))))
return 4;
if (!(((d % 54750) == 26981) && (((d % 99627) == 79040)) && (((d % 84339) == 77510))))
return 5;
// printf("Congratulations %s is flag\n",buf);
klee_assert(0);
return 0;
}

]]>