19 November 2016 - 03:07:51 - Read: 391

Writeups CDC 2016 - CEDECE16

Pada task ini kita diberikan sebuah file "cedece16".

Coba eksekusi pertama

jamz@jdeepin:~/www/cdc/$ ltrace ./cedece16
__libc_start_main(0x80484bb, 1, 0xffdee014, 0x8048570 <unfinished ...>
printf("CDC2016{flag}: %s flag\n", "./cedece16"CDC2016{flag}: ./cedece16 flag
)                                                         = 31
exit(1 <no return ...>
+++ exited (status 1) +++

tambahkan passwordnya

jamz@jdeepin:~/www/cdc/$ ltrace ./cedece16 flag
__libc_start_main(0x80484bb, 2, 0xff93e7e4, 0x8048570 <unfinished ...>
strlen("NKRI_1")                                                                                         = 6
strncmp("flag", "NKRI_1", 6)                                                                             = 1
puts("FLAG SALAH "FLAG SALAH
)                                                                                      = 12
exit(1 <no return ...>
+++ exited (status 1) +++

cobain password yang nongol :p

jamz@jdeepin:~/www/cdc/$ ltrace ./cedece16 NKRI_1
__libc_start_main(0x80484bb, 2, 0xffef62d4, 0x8048570 <unfinished ...>
strlen("NKRI_1")                                                                                         = 6
strncmp("NKRI_1", "NKRI_1", 6)                                                                           = 0
puts("FLAG BENAR"FLAG BENAR
)                                                                                       = 11
+++ exited (status 0) +++

Done. :D

Flag: CDC2016{NKRI_1}