摘要: 1 #include 2 void return_input(void) 3 { 4 char array[5]; 5 6 gets(array); 7 printf("%s\n", array); 8 } 9 main()10 {11 return_inpu... 阅读全文
posted @ 2012-09-28 15:51 jeremyatchina 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 void function(int a,int b) 3 { 4 int array[5]; // total : 20 bytes. 5 } 6 7 main() 8 { 9 printf("this is where the return address poi... 阅读全文
posted @ 2012-09-28 10:20 jeremyatchina 阅读(931) 评论(0) 推荐(0) 编辑
摘要: WordPress Charset SQL Injection Vulnerability11 Dec. 2007SummaryWordPress is "a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability".It is found that the search function provided within WordPress fails to sanitize input based on d 阅读全文
posted @ 2012-09-28 01:10 jeremyatchina 阅读(424) 评论(0) 推荐(0) 编辑
摘要: gcc -g -o hello.exe hello.s // -g 加入訊息方便debuggdb 用法gdb -q hellobreak *main //亦可 b *mainrun //亦可print/x $eax //印出 16進位 的 register 內容print $eax //印出 10進位 的 register 內容print *(&array+1) //印出array[1]之值----dword : 4 bytes word : 2 bytesmov ax,BUFF #把BUFF(in memory) 的 value 放入ax register lea ax,BUFF # 阅读全文
posted @ 2012-09-28 00:36 jeremyatchina 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 學習軟體︰ GNU Assembly for Intel硬體平台︰ Intel作業平台︰ Linux、FreeBSD 和 Windows 的 MinGW 說明︰ 1.市面上的組合語言書籍大多以 MASM 為主,缺乏介紹 GNU Assembly 的書。 2.GNU Assembly 除了用在 Intel CPU上,也有其它知名 CPU 的版本,如 MIPS、SPARC等等。 GNU Assembly 更可用在「嵌入式系統」的 ARM 或 Intel CPU上。 3.GNU Assembly 和 GNU C++ 連結方式在 Windows ... 阅读全文
posted @ 2012-09-28 00:31 jeremyatchina 阅读(271) 评论(0) 推荐(0) 编辑