摘要: 求备胎~~ 阅读全文
posted @ 2013-03-14 10:19 赤脚的懒虫 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 在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 赤脚的懒虫 阅读(970) 评论(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 赤脚的懒虫 阅读(1751) 评论(0) 推荐(0) 编辑
摘要: 简单的在windows安装pygraphiviz的过程如下:1. 首先安装graphviz,http://www.graphviz.org/pub/graphviz/stable/windows/graphviz-2.28.0.msi2. 下载pygraphviz源码包,http://pypi.python.org/packages/source/p/pygraphviz/pygraphviz-1.1.zip3. 解压后 1. 修改setup.py,三个地方要改 library_path=r'D:\Program Files (x86)\Graphviz 2.28\lib\releas 阅读全文
posted @ 2013-01-07 15:39 赤脚的懒虫 阅读(9492) 评论(0) 推荐(1) 编辑
摘要: 错误日志(/var/log/Xorg.0.log)如下:[ 103.317] X.Org X Server 1.10.6Release Date: 2012-02-10[ 103.320] X Protocol Version 11, Revision 0[ 103.321] Build Operating System: c6b9 2.6.32-220.el6.x86_64 [ 103.322] Current Operating System: Linux localhost.localdomain 2.6.32-220.4.2.el6.centos.plus.x86_64... 阅读全文
posted @ 2012-11-08 21:00 赤脚的懒虫 阅读(3705) 评论(0) 推荐(0) 编辑
摘要: 使用windbg可以调试asp.net中数据库连接池是否超限的问题。详见文章:http://blogs.msdn.com/b/spike/archive/2012/05/21/quot-system-invalidoperationexception-timeout-expired-the-timeout-period-elapsed-prior-to-obtaining-a-connection-from-the-pool-quot.aspx?CommentPosted=true#comments我主要其实想说明的是,在搭建调试环境和进行调试过程中可能碰到的几个问题:1. The call. 阅读全文
posted @ 2012-10-16 14:30 赤脚的懒虫 阅读(477) 评论(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 赤脚的懒虫 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: 前段时间,碰到一个bug,很奇怪的bug: 1. 这个bug在win7中,普通权限下运行release版本,会崩溃。抓取dump,分析也找不到具体在哪行代码出问题。但是如果以管理员身份运行的话,就一点事情都没有。 2. 在debug状态下,调试代码,一点问题都没有。 是操作系统的问题?因为用户权限不够?我们没有做什么特殊的操作啊?为什么一定要管理员权限呢?在有些电脑还不会出现这个bug... 这个时候,没办法我只能采用最笨的办法:printf。隔一个地方就打印一条日志,最后定位到以下代码,出现问题:string sSQLUser="test", sSQLPass;char 阅读全文
posted @ 2012-10-15 15:29 赤脚的懒虫 阅读(1856) 评论(6) 推荐(0) 编辑
摘要: 最近,在负责一个邮件收发相关的一个模块。用的是第三方的SDK:chilkat。chilkat支持非常多的协议和功能,如:MAIL,ZIP,HTTP,FTP2,XML,IMAP,SSH/SFTP等,这个组件也有多个语言的版本,如:.NET,RUBY,PYTHON,PERL,JAVA,C++等。对多平台和编译器的支持也不错,如:Chilkat C/C++ Libraries for: Microsoft VC++ 6, 7, 8, 9, and 10. MAC OS X IOS Linux, CentOS, RHEL, etc. FreeBSD Solari... 阅读全文
posted @ 2012-08-29 12:49 赤脚的懒虫 阅读(1588) 评论(2) 推荐(0) 编辑
摘要: 使用windbg可以调试asp.net中数据库连接池是否超限的问题。详见文章: http://blogs.msdn.com/b/spike/archive/2012/05/21/quot-system-invalidoperationexception-timeout-expired-the-timeout-period-elapsed-prior-to-obtaining-a-connection-from-the-pool-quot.aspx?CommentPosted=true#comments我主要其实想说明的是,在搭建调试环境和进行调试过程中可能碰到的几个问题:1.The call 阅读全文
posted @ 2012-08-28 14:33 赤脚的懒虫 阅读(5846) 评论(0) 推荐(0) 编辑