cstar

eli's docs

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年3月21日

摘要: 实验代码: 1 #include 2 #include 3 #define PASSWORD "1234567" 4 5 int verify_password(char *password) 6 { 7 int authenticated; 8 char buffer[8]; // add local buf to be overflowed 9 authenticated=strcmp(password,PASSWORD);10 strcpy(buffer, password); // overflow here11 return aut... 阅读全文
posted @ 2014-03-21 21:19 exclm 阅读(307) 评论(0) 推荐(0) 编辑