Matteo Cypriani
5fd3e62717
[wifi] capture: fix mktemp for Linux
...
Add a 3rd character to the random part of the temporary directory, to
satisfy GNU's mktemp.
2011-08-07 22:00:42 +02:00
Matteo Cypriani
9a5853d48a
[wifi] capture: fix channel setting
...
At least on NetBSD with the ath driver, it is impossible to change the
channel when the interface is in monitor mode (actually it is possible,
but when the interface is turned up again the channel is set back to its
prior value).
Therefore, to set the interface in monitor mode on a given channel, we
must:
- shut down,
- switch to managed mode (media autoselect) with the wanted channel,
- turn up,
- shut down again,
- switch to monitor mode,
- turn up again.
I implemented the same behaviour for Linux, maybe it's useless but it
can't hurt.
2011-08-07 21:30:14 +02:00
Matteo Cypriani
81611af216
[wifi] capture: always delete output directory
...
Always delete the output directory, even in case of error.
2011-08-07 21:02:05 +02:00
Matteo Cypriani
edc7cc4dfd
[wifi] capture: refactoring
2011-08-07 21:02:01 +02:00
Matteo Cypriani
6739ade2a6
[wifi] capture: test each channel
...
Try to capture on each channel, in case there is no traffic on the first
channel.
2011-08-07 21:01:57 +02:00
Matteo Cypriani
ddfa6e0b49
[wifi] capture: add date to archive name
...
Add the current date and time to the archive name.
Set the random part of the name to 2 characters.
2011-08-06 15:49:43 +02:00
Matteo Cypriani
627102d6ce
[wifi] capture: NetBSD support
2011-08-06 12:40:37 +02:00
Matteo Cypriani
99ea201832
[wifi] capture: add OS release to archive name
...
Add the OS release version to the archive name.
Extend the random part of the name to 10 characters.
2011-08-06 12:38:10 +02:00
Matteo Cypriani
9df17ae493
[wifi] capture: set the channel
2011-08-06 12:01:40 +02:00
Matteo Cypriani
4a68134713
[wifi] capture: add OS to the archive name
2011-08-06 00:39:42 +02:00
Matteo Cypriani
65dd809c6b
[wifi] capture: gather system information
2011-08-06 00:39:37 +02:00
Matteo Cypriani
f23d52b435
[wifi] Add capture.sh
...
capture.sh is a script to automatically capture a few packets on a Wi-Fi
interface and write them to a Pcap file.
2011-08-06 00:39:37 +02:00