|
[讨论]真相是CreateProcessWithLogonW句柄泄漏!!!
请看25楼那位兄弟的回复,再看看这个: Windows Server 2003: The profile is unloaded after the new process is terminated, whether or not it has created child processes. Windows XP: The profile is unloaded after the new process and all child processes it has created are terminated. There is a limit to the number of child processes that can be created by this function and run simultaneously. For example, on Windows XP, this limit is MAXIMUM_WAIT_OBJECTS*4. However, you may not be able to create this many processes due to system-wide quota limits. 另外建议先把你的程序改好,句柄有则关闭,无则加勉,看起来没什么关系,最多就是多写句话,但是在程序逻辑里不该有的就是不能有,这种习惯即让你自己将来理解起来困难,别人看你的代码也会莫名其妙。 |
|
[讨论]真相是CreateProcessWithLogonW句柄泄漏!!!
没看明白,CreateProcessWithLogonW 第二个参数明明要求LPCWSTR,上面却用GetComputerNameA((LPSTR)&pcName,(LPDWORD)&nameSize); 来取ANSI的计算机名,下面又强制转为(LPCWSTR)&pcName,为什么不定义成WCHAR pcName[MAX_COMPUTERNAME_LENGTH + 1]然后用 GetComputerNameW来取计算机名呢?这样强制转换就算不出错也是严重的逻辑错误,还有si结构体中的三个handle(hStdError、hStdInput、hStdOutput)是做为参数送进去做重定向的,前面赋值都没有赋值,后面CloseHandle哪门子的句柄呢?还是先好好看看各个API的说明再来说别人句柄泄不泄漏吧。 使用LOGON_WITH_PROFILE参数时,微软的说明如下: Log on, then load the user profile in the HKEY_USERS registry key. The function returns after the profile is loaded. Loading the profile can be time-consuming, so it is best to use this value only if you must access the information in the HKEY_CURRENT_USER registry key. Windows Server 2003: The profile is unloaded after the new process is terminated, whether or not it has created child processes. Windows XP: The profile is unloaded after the new process and all child processes it has created are terminated. There is a limit to the number of child processes that can be created by this function and run simultaneously. For example, on Windows XP, this limit is MAXIMUM_WAIT_OBJECTS*4. However, you may not be able to create this many processes due to system-wide quota limits. |
|
[求助][求助]写了一个很艰难的程序,多线程同步延迟导致线程无法正常退出(delphi 线程错误5)
如果只是对一个简单变量Terminated进行操作的话,使用微软同步机制中的Interlocked打头的一系列函数应该足够了,当然前提是在同一进程空间内,不必使用临界区这种开销比较大的机制。 |
|
[原创]
学历!=能力,但是好的大学会给你好的学习环境和条件,剩下的就是个人的努力,另外个人觉得内核也好,应用也好,只要你理论扎实、思维开拓,做什么都是牛。 |
|
[求助]win7 x64位系统选择怎么样的安全软件
风云x64我记得有签名啊。 |
|
RSA2048证书里公锁指数E是028206还是多少
试试用ASN.1的语法查看器来看一下。 |
|
这里有四组密码以及加密后的密文,怎么反推
类维吉尼亚密码?看起来象是简单的多表代替 |
|
搜索指定目录下会触发UAC的程序
那就IDA一下吧,谢谢楼主分享 |
|
[分享]解决C++Builder 2010中文路径下的项目无法源码调试的Bug[讨论]C++Builder这样有什么道理?
这个问题好象很常见,在很多国外的软件中见到过,都是因为UTF8的原因,估计很多公司对Unicode编码不太感冒,毕竟人家就是用字母,东亚文字的支持不是那么迫切。 |
|
[分享]恶意代码分析之必备家当
乌龟大师能不能写一篇关于IDA静态分析的心得?有没有什么比较系统流程化的步骤?感觉静态分析一个恶意代码,想完全弄清它的意图有时很累。 |
|
[求助]请大家帮我分析下一个加密算法的逆算法[问题已解决]
这不是什么加解密算法,就是把一串十六进制的字符串转化成对应的数值。 |
|
[求助]请教一种密钥交换技术
楼上正解,不好意思误导楼主了,看到模a就习惯性认为和RSA有关。sorry |
|
[求助]请教一种密钥交换技术
确信是2?不是3或65537? 你说的d = pow(2,c)%a应该是用RSA公钥加密c给服务端,服务端用它的私钥解出c,再和你做同样的操作e = pow(b,c)%a,就可以解密你blowfish加密的内容。 a应该RSA大数。 |
|
|
|
[求助]hash之后结果如下,一般是什么hash算法
应该是先hash后再用类似base64编码之类的转换。 43*6=258 刚好是256bit的容量 256/8=32bytes 难道是sha256? |
|
|
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值