标题: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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-399627-1-1.html




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

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