Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

Un_Woo

LOB gremlin->cobolt 본문

System/Lord of Buffer Overflow

LOB gremlin->cobolt

언우s 2018. 4. 4. 10:40

gremlin->cobolt

코드가 gremlin과 거의 같지만 버퍼의 크기가 훨씬 작다.

strcpy로 인자를 버퍼에 넣는 프로그램이다.

이번에는 rtl을 이용해서 풀 것이다.

main함수에 브레이크포인트를 걸어서 system함수의 주소를 알아냈다.

system함수의 주소를 알아내는 것은 프로그램을 복사해야 가능하다.

그리고 /bin/sh의 주소를 알아내는 프로그램을 짜서 /bin/sh의 주소를 알아냈다.

ret주소에 system주소를 넣고 그 인자로 /bin/sh를 넣어 쉘을 땄다.


'System > Lord of Buffer Overflow' 카테고리의 다른 글

LOB cobolt->goblin  (0) 2018.04.04
LOB gate->gremlin  (0) 2018.04.04
Comments