분류 전체보기 8

Fuzzing101 - Exercise 02

AbstractTarget : libexif 0.6.14https://github.com/libexif/libexif GitHub - libexif/libexif: A library for parsing, editing, and saving EXIF dataA library for parsing, editing, and saving EXIF data - libexif/libexifgithub.com libexif는 이미지 파일을 위한 메타데이터인 exif에 대한 기능을 제공하는 라이브러리 프로젝트입니다. 대부분의 언어가 C언어로 작성되어 있으며, exif 파싱, 수정, 저장 기능을 지원합니다. Goal 1: Finding crash / PoC for CVE-2009-3895https://cve.mitre..

Fuzzing/Fuzzing101 2025.03.18

Pay1oad System Hacking Study 6주차 과제 : RTL, leak_pie

RTL하던대로 코드부터 보겠습니다.//gcc -o rop rop.c -no-pie -fno-stack-protector#include#include void init() { setvbuf(stdin, 0, 2, 0); setvbuf(stdout, 0, 2, 0);}void gadget() { asm("pop %rdi; ret"); asm("pop %rsi; ret"); asm("pop %rdx; ret");}int main(){ init(); char buf[30]; puts("RTL Practice"); printf("> "); read(0,buf,0x100); write(1,buf,30); return 0;} 왓..?? 보자마자 숨이 턱 막힙니..

Pay1oad/Study 2024.11.18

Pay1oad System Hacking Study 2주차 과제 : Pwntools, Basic BOF

Pwntools먼저 문제의 코드를 살펴보겠습니다.#include #include #include #include #include void init() { setvbuf(stdin, 0, 2, 0); setvbuf(stdout, 0, 2, 0);}int main() { init(); int num1, num2, userInput, i; fd_set readfds; struct timeval tv; srand(time(NULL)); for (i = 0; i  간단한 곱셈 문제가 나오는데, 타임아웃이 0.2초로 설정되어 인간의 힘으로는 도저히 풀 수 없어 보이네요. pwntools를 사용해 자동으로 문제를 해결해주는 코드를 짜보겠습니다. 문제의 형식은 "%d: %d ..

Pay1oad/Study 2024.10.07

Pay1oad System Hacking Study 1주차 과제 : Hand-ray, Pay1oad CTF Write-up

Hand-ray간단한(?) Assembly 코드를 C언어로 다시 옮기는 문제였습니다./*Pay1oad 2024-2 System Hacking Study Week 1 Hand-ray HWBy 202035398 Han Kyusang*/#include int func(a, b){ //RBP = 0x7fffffffdec0 //a = RBP - 4 (0x7fffffffdebc), b = RBP - 8 (0x7fffffffdeb8) return a + b;}int main(int argc, char *argv[]){ //RBP = 0x7fffffffdef0, RSP = 0x7fffffffded0 //argc = RBP - 0x14 (0x7fffffffdedc), argv = RBP - 2..

Pay1oad/Study 2024.09.23