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]
/
main.h
diff --git
a/main.h
b/main.h
index
1628c91
..
0c49128
100644
(file)
--- a/
main.h
+++ b/
main.h
@@
-37,10
+37,7
@@
#define MESSAGE_MAX 64
#define CHANNEL_MAX 13
#define MAX_DEV_CHARS 6
#define MESSAGE_MAX 64
#define CHANNEL_MAX 13
#define MAX_DEV_CHARS 6
-#define MAX_SYSCALL_CHARS 64
-
-#define HDW_SNIFF_MAX_WIDTH 80
-#define HDW_SNIFF_MAX_HEIGHT 8
+#define MAX_SYSCALL_CHARS 128
#define HOP_SEC 0
#define HOP_USEC 200000
#define HOP_SEC 0
#define HOP_USEC 200000
@@
-53,30
+50,40
@@
#define GUI_OFFSET_CTRL 57
#define GUI_OFFSET_DATA 64
#define GUI_OFFSET_ACTIVE 71
#define GUI_OFFSET_CTRL 57
#define GUI_OFFSET_DATA 64
#define GUI_OFFSET_ACTIVE 71
+#define GUI_OFFSET_SIGNAL 77
+
+#define HDW_SNIFF_MAX_WIDTH (GUI_OFFSET_SIGNAL+5)
+#define HDW_SNIFF_MAX_HEIGHT 8
/* modes */
/* modes */
-#define MODE_
MONITOR
(1<<0)
-#define MODE_
WLANNG
(1<<1)
+#define MODE_
IEEE80211
(1<<0)
+#define MODE_
PRISM
(1<<1)
#define MODE_QUIT (1<<2)
#define MODE_HEXOUT (1<<3)
#define MODE_ASCIIOUT (1<<4)
#define MAX_BYTE_WEP 13 /* maximal 104 bit key */
#define MODE_QUIT (1<<2)
#define MODE_HEXOUT (1<<3)
#define MODE_ASCIIOUT (1<<4)
#define MAX_BYTE_WEP 13 /* maximal 104 bit key */
+#define VIEW_ALL 0x00
+#define VIEW_SINGLE 0x01
+
/* type definitions */
typedef struct s_info {
t_event event;
t_display display;
/* type definitions */
typedef struct s_info {
t_event event;
t_display display;
+ char *clean_line;
+ int c_line,c_page;
+ unsigned char view;
t_input input;
int count; /* count packages */
int count_m;
int count_c;
int count_d;
t_input input;
int count; /* count packages */
int count_m;
int count_c;
int count_d;
- unsigned char mode; /*
monitoring/managed
mode */
+ unsigned char mode; /*
ieee802.11/prism
mode */
char device[MAX_DEV_CHARS]; /* sniffed devie */
int log_fd; /* file descriptor for logfile */
char device[MAX_DEV_CHARS]; /* sniffed devie */
int log_fd; /* file descriptor for logfile */
- int pcap_fd; /* fd for reading pcap events */
- int dump_fd; /* fd for dumping received packages */
+ char dump_file[128];
+ pcap_dumper_t *dump_handle;
int current_channel;
int channel_hop_fd;
pcap_t *pcap_handle;
int current_channel;
int channel_hop_fd;
pcap_t *pcap_handle;