[DreamHack / pwnable] hook
Wargame/DreamHack
보호되어 있는 글입니다.
[DreamHack / pwnable] oneshot
Wargame/DreamHack
보호되어 있는 글입니다.
[BuckeyeCTF 2024 / beginner-pwn] runway2
CTF
Now with a twist!attachmentAnalysisint get_answer() { char answer[16]; fgets(answer, 0x40, stdin); return strtol(answer, NULL, 10);}0x10바이트 크기의 answer에 0x40바이트만큼 입력받아 Stack buffer overflow가 발생한다.Exploitationint win(int check, int mate) { if (check == 0xc0ffee && mate == 0x007ab1e) { printf("You win! Here is your shell:\n"); fflush(stdout); system("/bin/sh"); }..
[BuckeyeCTF 2024 / pwn] infrequentc
CTF
Struggling with the cryptography section? This C program can perform frequency analysis for you in the blink of an eye!attachmentAnalysis long largest = 0; long counts[256] = {0}; char *text = malloc(600); char filepath[] = "/home/corgo/stats/stats.txt"; // default file to save to char *filename = strrchr(filepath,'/')+1;... for(int i = 0; i text[i]의 type은 char이기 때문에 -0x7f부터 0x..
[BuckeyeCTF 2024 / pwn] D.I.S.A.
CTF
disa is the panicle of high performance and innovative design. 13bit is the future, everything else is pure cope. Embrace the performance and safety of disaattachmentAnalysisvoid interpreter() { char buf[MAX_LEN]; int16_t cells[MAX_VAL_UNSIGNED + 1]; int16_t addr, dat = 0; int16_t tmp; while (1) { fgets(buf, MAX_LEN, stdin); if (strncmp(buf, "NOP", 3) == 0) { ..
h0meb0dy_
'분류 전체보기' 카테고리의 글 목록 (3 Page)