??????????Buffer overrun
???????????? ???????[ 2013/7/15 10:33:48 ] ????????
????????????——Buffer overrun
????????BO??
????BO?????????????????C??????????????????????????棬???????????????????棬??????????????????????????????????磬
void foo(char* input)
{
char buf[100];
strcpy(buf?? input);
}
??????н??г????飬?????????????input????????д????????????????????????
???????BO????????????
??????copy???????????stack??????buffer??????buffer??overwritten?????????????stack??buffer overrun????stack?????????λ???????????????????????????????????д??????BO??ж??????????????????
X86 EBP Stack Frame
Highest address
Arguments
Return address
Previous EBP
Saved rigisters
local storageLowest address
??????C?????У????????????????????????????????level????????????????????????foo??????????stack???????±??????????????????????????????????????????????????????????????????return address?? ?????EBP????????????????????????????????????????????????100??????????BO?????????????????buf??????棬??????????return address????????????????????return address??????????buf????????????????????buf[0]???????????buf??????????????????????????????????????????????return address??????????????????????
????????????
?????????????????????????????????С???к??в????????????????????????????????????????????????в????????????п??????????????????????в?????????????????????????????????????????????в?????????в????????????????????????????????????????????????????
??????в?????????????????????????????????????????????????????????????????Щ???????????????????????????????????????????????????
??????в?????????????????????в????????????????????????(RE)?????????????????????????????(RCE)??????????????????????????????????????£?????????????????????????????????а?????????????????????????а?????????????????????????????????????(binary auditing)??????????????????????”????????”????????о?????????????????????????????????????????????????????????????????????????????????á?
??????????????????ó????????????CPU???????????????????Win32???μ????е?????????OllyDbg18????????????????????????????Microsoft WinDbg(????????”wind bag”)19??WinDbg??Windows???????????20?е??????????Microsoft???????????????OllyDbg???????Oleh Yuschuk??????????????????????????WinDbg???????????????????????????????????????????????????????????????????OllyDbg?????21??UNIX????????и???????????????GNU Project Debugger22(GDB)?????е?????????????????????GDB??????????е??????????UNIX/Linux????ж????????????????
????????к?в?????????????????????????в???????С??????????????????????С?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11