projects
/
my-code
/
hdw-sniff.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
beacons recognized, minimal gui working
[my-code/hdw-sniff.git]
/
wep.c
1
/*
2
*
3
* wep.c - bruteforce wep key
4
*
5
*/
6
7
#include <stdio.h>
8
#include <sys/stat.h>
9
#include <sys/types.h>
10
#include <fcntl.h>
11
12
#define MAX_C 20
13
14
int main(int argc,char *argv[]) {
15
int file_fd,c,i;
16
char my_buf[MAX_C+1];
17
18
file_fd=open(argv[1],O_RDONLY);
19
if(file_fd>0)
20
c=read(file_fd,my_buf,MAX_C);
21
for(i=0;i<MAX_C;i++) printf("%x ",my_buf[i]);
22
return 0;
23
}
24
25