aboutsummaryrefslogtreecommitdiffstats
path: root/tools/wifcap.sh
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-10-25 00:28:19 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-10-25 00:28:19 +0200
commitbc2959fe99566df7f65f7de05e3b28a2f90a8e3a (patch)
tree1b727fad06774d17860f01472344e8552326d915 /tools/wifcap.sh
parentmove skylog to github (diff)
downloadlaurent-tools-bc2959fe99566df7f65f7de05e3b28a2f90a8e3a.tar.xz
laurent-tools-bc2959fe99566df7f65f7de05e3b28a2f90a8e3a.zip
move wifcap to github
https://github.com/looran/wifcap git clone https://github.com/looran/wifcap.git
Diffstat (limited to '')
-rwxr-xr-xtools/wifcap.sh42
1 files changed, 0 insertions, 42 deletions
diff --git a/tools/wifcap.sh b/tools/wifcap.sh
deleted file mode 100755
index 648da10..0000000
--- a/tools/wifcap.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-# wifcap - WIFI capture helper
-# 2012, Laurent Ghigonis <laurent@gouloum.fr>
-
-script=`basename $0`
-if [ $# -lt 3 -o $# -gt 4 ]; then
- echo "usage: $script output-prefix iface channel [libpcap_filter]"
- echo -e "\t\tchannel=x: activate hopping by running airodump-ng w/o channel"
- echo "example: sudo $script nadege-flat wlan0 x"
- exit 1
-fi
-if [ `id -u` -ne 0 ]; then
- echo "must be root"
- exit 1
-fi
-prefix=$1
-iface=$2
-channel=$3
-if [ $# -eq 4 ]; then
- filter=$4
-else
- filter=""
-fi
-iface_mon=mon0
-date=$(date +%Y%m%d-%H%M%S)
-output="${date}_${prefix}"
-
-ifconfig $iface_mon >/dev/null 2>&1
-if [ $? -ne 0 ]; then
- airmon-ng start $iface
-fi
-
-if [ $channel != "x" ]; then
- channel_cmd="--chan $channel"
- output="$output-c$channel"
-else
- channel_cmd=""
-fi
-output="$output.pcap"
-tmux new-session -d -s wifcap "set -x; tcpdump -Z nobody -s0 -w \"$output\" -ni $iface_mon $filter"
-tmux new-window -t wifcap "airodump-ng -i $iface_mon $channel_cmd"
-tmux attach-session -t wifcap
-