Wargame & CTF/pwnableKR2023. 11. 26. 12:21Toddler(collision)

문제 Daddy told me about cool MD5 hash collision today. I wanna do something like that too! ssh col@pwnable.kr -p2222 (pw:guest) 풀이 서버에 접속하여 ls 명령을 입력해보면 col, col.c, flag 3개의 파일이 존재하는 것을 알 수 있습니다. cat명령어를 통해 fd.c 파일을 확인합니다. #include #include unsigned long hashcode = 0x21DD09EC; unsigned long check_password(const char* p){ int* ip = (int*)p; int i; int res=0; for(i=0; i

Wargame & CTF/pwnableKR2023. 11. 26. 12:18Toddler(fd)

문제 Mommy! what is a file descriptor in Linux? try to play the wargame your self but if you are ABSOLUTE beginner, follow this tutorial link: https://youtu.be/971eZhMHQQw ssh fd@pwnable.kr -p2222 (pw:guest) 풀이 서버에 접속하여 ls 명령을 입력해보면 fd, fd.c, flag 3개의 파일이 존재하는 것을 알 수 있습니다. cat 명령어를 통해 fd.c 파일을 확인합니다. #include #include #include char buf[32]; int main(int argc, char *argv[], char *envp[]){ if(argc

image