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
changed to monitor 3 again
[my-code/hdw-sniff.git]
/
hdw-sniff.c
diff --git
a/hdw-sniff.c
b/hdw-sniff.c
index
1773b99
..
f6da20f
100644
(file)
--- a/
hdw-sniff.c
+++ b/
hdw-sniff.c
@@
-60,7
+60,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,"iwpriv %s monitor
2
",argv[1]);
+ sprintf(sys_call,"iwpriv %s monitor
3
",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);