首页
社区
课程
招聘
[求助]加壳程序的编写
发表于: 2006-3-15 15:12 10221

[求助]加壳程序的编写

2006-3-15 15:12
10221
我最近学习软件加壳,利用『《软件加密技术内幕》』中的第六章的shell.asm源代码,编写了如下的程序:
#include"stdio.h"
#include"String.h"
extern "C" int _stdcall WJQ_ShellBegin(char* pExeFileName,long nSoftID);
void main()
{
        int a=0;
        char pStr[255];
        long nRet = 0;
        printf("%d",a);
        strcpy(pStr,"c:\\prot.exe");
        printf("%d",a);
           nRet=WJQ_ShellBegin(pStr,0);
        printf("%d",a);
}

编译和连接都能够通过,但是在运行时运行到nRet=WJQ_ShellBegin(pStr,0);时就报错,而且不能加壳,不知是怎么回事?请大家指点,不胜感激!

[课程]Android-CTF解题方法汇总!

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
以上在vc工程中用的是光盘中的myshell.obj
我按照版主所说 将myshell.asm加入vc工程中,编译连接都通过了,在运行时出现:

命令行有错
用法 Myshell PE-filename [softindex]

不知怎么回事,多谢指点!
2006-3-15 16:15
0
游客
登录 | 注册 方可回帖
返回
//