随笔分类 -  Windows

windows系统的一些相关问题
摘要:在win7下,通过下面的方法测试shellcode:char shellcode [] ="..." ;int main ( int argc , char ** argv){ __asm { lea eax , shellcode call eax } return 0;}必须要也可以通过设置数据段为可执行来测试shellcode,不然shellcode所在的数据段由于受系统保护不允许被执行,导致出现异常,而测试失败。代码如下:#pragma comment(linker, "/section:.... 阅读全文
posted @ 2013-03-01 12:15 赤脚的懒虫 阅读(983) 评论(0) 推荐(0)
摘要:在win7下,通过下面的方法测试shellcode:char shellcode [] ="..." ;int main ( int argc , char ** argv){ __asm { lea eax , shellcode call eax } return 0;}必须要关闭DEP,不然shellcode所在的数据段由于受系统保护不允许被执行,导致出现异常,而测试失败。关闭和启用DEP的方法如下:关闭: bcdedit.exe /set {current} nx AlwaysOff启用: ... 阅读全文
posted @ 2013-02-22 14:24 赤脚的懒虫 阅读(1773) 评论(0) 推荐(0)
摘要:you could try this solution (which I found on the net):1. Open Command Prompt.2. typeDISKPART- a new window will open.3. enter command :LIST DISK. This will show you all the connected disk with the offline one.4. Now select the offline disk using the next commandSELECT DISK <disk_no>wheredisk_ 阅读全文
posted @ 2012-10-16 14:13 赤脚的懒虫 阅读(1240) 评论(0) 推荐(0)