⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wepgen.c

📁 Trolltech公司发布的图形界面操作系统。可在qt-embedded-2.3.10平台上编译为嵌入式图形界面操作系统。
💻 C
字号:
/*   Simple program to emulate the "text" mode of supplying WEP keys.   The procedure only uses the ASCII codes of the characters as WEP   key bits (13 characters produces 104 bits as needed by 128-bit   WEP). Such keys of course do not have much entropy, but that is   a choice for the installation to make.*/#include <stdio.h>int main(int argc, char** argv){    int a=0,l;    char* c=argv[1];    if ( argc != 3 || !*c ) {	fprintf(stderr, "Usage: %s textkey [length]\n",argv[0]);	exit(1);    }    l = atoi(argv[2]);    while (l) {	if ( !*c ) c=argv[1];	printf("%02x",*c);	c++;	if ( --l )	    printf(":");    }    printf("\n");}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -