首页
社区
课程
招聘
[旧帖] 62ae8879转62AE8879问题 0.00雪花
发表于: 2008-8-11 13:17 3102

[旧帖] 62ae8879转62AE8879问题 0.00雪花

2008-8-11 13:17
3102
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
        char ch[255];
//temp1--eax  temp2--ebx temp3--ecx
        unsigned long temp1=0,temp2=0,temp3=0,len=0,i=0;
        printf("---请输入伱的用户名:---\n");
        printf("                ");
        scanf("%s",ch);
        len=strlen(ch);
        for(;i<len;i++){
       
                temp1=ch[i]&0Xff;
       
                temp2=temp1;
                temp1=temp1<<4;
               
                temp2=temp2>>5;
               
                temp1=temp1 ^ temp2;
                temp1=temp1+0X26;
                temp1=temp1 ^ temp3;
                temp3=temp1+temp3;
        }
        temp1=0X0C0DEF;
        temp1=temp1-temp3;
        temp1=temp1*temp1;

printf("---序列号是:CM2-%lx-%lx\n",temp3,temp1);//现在的问题是怎么在一个以16进制显示的long里显示大写的字母
printf("---Cracked By Robbietree---\n");

}

如上的代码 temp1里显示的是小写的ascii 码  怎么让他变大写呢  就比如62ae8879如何转成62AE8879呢    c语言不行
谢谢

[培训]科锐逆向工程师培训第53期2025年7月8日开班!

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 2362
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
先判断是否为小写 是则加上**
2008-8-11 13:30
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
解决了~~printf("---序列号是:CM2-%lX-%lX\n",temp3,temp1);  这样就可以了
2008-8-11 13:47
0
游客
登录 | 注册 方可回帖
返回