|
[求助]c++做的邮件发送程序,怎么判断邮件发送成功
recv(...buf,...) if(StrStrI(buf, "250 OK", 说明smtp服务接受成功。 至于smtp服务器转发给收信人smtp服务器时是否成功,技术上是无法判断的,因为这个通信状态已经不可见了。 |
|
运行中进程文件自修改问题
exe自删除简单,多年前就有经典代码了,如下。 但是,自修改还有所不同,它需要修改时或修改后,不影响自身进程的正常运行。 #include "windows.h" int main(int argc, char *argv[]) { char buf[MAX_PATH]; HMODULE module; module = GetModuleHandle(0); GetModuleFileName(module, buf, MAX_PATH); CloseHandle((HANDLE)4); __asm { lea eax, buf push 0 push 0 push eax push ExitProcess push module push DeleteFile push UnmapViewOfFile ret } return 0; } |
|
[求助]突破win 7 UAC
这里有可执行文件和源码,我试验过了对于Win7正式版(家庭高级版、家庭基础版、Professional的简体中文)都好使。其原理简述: win7有一批可信的文件(white list file),这些文件的敏感行为不会触发uac. 因此,利用explorer将自身拷贝到其中一个文件的相同目录下,这里用的是sysrep.exe,命名为它使用的dll,sysrep.dll,然后CreateProcess sysrep.exe,使其加载dll,因为windows优先加载相同目录下的dll而非系统目录下的,所以我们的dll得以运行。 http://www.pretentiousname.com/misc/win7_uac_whitelist2.html#release Win7ElevateV2_Source.zip |
|
|
|
运行中进程文件自修改问题
需要补充说明,需要在ring3修改。 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值