projects
/
my-code
/
hdw-sniff.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small fixes in documentation + initial checkin of wep - crack tool
[my-code/hdw-sniff.git]
/
old
/
hdw-sniff.c
diff --git
a/old/hdw-sniff.c
b/old/hdw-sniff.c
index
bd0b8ed
..
8bda3dc
100644
(file)
--- a/
old/hdw-sniff.c
+++ b/
old/hdw-sniff.c
@@
-68,7
+68,7
@@
int main(int argc, char *argv[]) {
if(atoi(argv[2])==1) {
printf("setting to monitor mode\n");
if(strncmp(argv[1],"wlan",4)==0)
if(atoi(argv[2])==1) {
printf("setting to monitor mode\n");
if(strncmp(argv[1],"wlan",4)==0)
- sprintf(sys_call,"iw
priv %s monitor 3
",argv[1]);
+ sprintf(sys_call,"iw
config %s mode monitor
",argv[1]);
if(strncmp(argv[1],"eth",3)==0)
sprintf(sys_call,"ifconfig %s promisc",argv[1]);
system(sys_call);
if(strncmp(argv[1],"eth",3)==0)
sprintf(sys_call,"ifconfig %s promisc",argv[1]);
system(sys_call);
@@
-97,6
+97,7
@@
int main(int argc, char *argv[]) {
my_info_struct.ssid_list->next=NULL;
// strcpy(my_info_struct.ssid_list->ssid,"test");
strcpy(my_info_struct.dev,argv[1]);
my_info_struct.ssid_list->next=NULL;
// strcpy(my_info_struct.ssid_list->ssid,"test");
strcpy(my_info_struct.dev,argv[1]);
+ my_info_struct.channel=1;
/* prepare for select */
pcap_fd=pcap_fileno(pcap_handle);
/* prepare for select */
pcap_fd=pcap_fileno(pcap_handle);