| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 246 人关注过本帖
标题:C代码:破解CMOS密码
只看楼主 加入收藏
终结者C
Rank: 2
等 级:论坛游民
帖 子:34
专家分:23
注 册:2013-3-3
结帖率:100%
收藏
 问题点数:0 回复次数:0 
C代码:破解CMOS密码
#include <stdio.h>
#include <dos.h>
#include <conio.h>
/*QQ:2285670586*/
int main()
{
    int i;
    char password;
    char byte=0;
    printf("**********************************************\n");
    printf("**This program is to get the bios password. **\n");
    printf("**                                          **\n");
    printf("**********************************************\n");
    printf("The award bios password in your computer is:\n");
    /*先读取高位字节*/
    outportb(0x70,0x1d);/*打开0x70端口,获取0x1d字节数据*/
    password=inportb(0x71);/*从0x71端口读出数据*/
    for(i=6;i>=0;i-=2)
    {
        byte=password;
        byte>>=i;/*右移位操作*/
        byte=byte&0x03;/*用四进制表示*/
        printf("%d",byte);
    }
    /*读取地位字节*/
    outportb(0x70,0x1c);
    password=inportb(0x71);
    for(i=6;i>=0;i-=2)
    {
        byte=password;
        byte>>=i;/*右移位操作*/
        byte=byte&0x03;/*用四进制表示*/
        printf("%d",byte);
    }         
    scanf("%d",i);
    return 0;
}
搜索更多相关主题的帖子: password computer include 密码 
2013-03-04 07:56
快速回复:C代码:破解CMOS密码
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014695 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved