Commit 03890b2a authored by sdrfnord's avatar sdrfnord

Added analyse-pcap.

parent f7b133c9
#!/bin/bash
# Analyse pcap files.
file="$1"
dir="$file.analysis"
if [[ ! -r "$file" ]]; then
echo "Give pcap file."
exit 1
fi
date
mkdir -p "$dir"
[[ -e "$dir/ettercap.txt" ]] || ettercap -Tq -r "$file" |grep -v '^DHCP' > "$dir/ettercap.txt"
cat "$dir/ettercap.txt"
[[ -e "$dir/chaosreader" ]] || chaosreader --application --raw --preferdns --info --quiet --names --dir "$dir/chaosreader/" "$file"
......@@ -4,12 +4,11 @@
# wireshark_manuf_file="`locate wireshark-manuf`"
wireshark_manuf_file="$HOME/Downloads/db/wireshark-manuf"
rand_mac_line=`grep -v '^#' "$wireshark_manuf_file"| \
grep -P ' (Intl|Hwlett-|Fujitsu) ' \
| shuf -n 1`
echo "Manufacture for your MAC address: ${rand_mac_line}."
echo "Manufacture which uses this MAC address: ${rand_mac_line}."
rand_mac_manf_part=${rand_mac_line:0:8}
rand_mac_random_part="`openssl rand -hex 3 | sed 's/\(..\)/\1:/g; s/.$//'`"
rand_mac="${rand_mac_manf_part}:${rand_mac_random_part}"
......
#!/bin/bash
# Script to easily set your wireless card in promiscuous mode and show the IEEE 802.11 frames that are flowing around you.
# Always exit on errors
set -e
# Undefined variables, we don't like you
# set -u
# ERR traps are inherited by shell functions, command substitutions and
......@@ -20,13 +22,12 @@ if [[ "$1" == "start" ]]; then
if [[ -z "`airmon-ng |grep mon0`" ]]; then
airmon-ng start wlan0
fi
# airodump-ng --manufacturer --uptime mon0
airodump-ng --uptime mon0
airodump-ng --manufacturer --uptime mon0
if [[ $? != 0 ]]; then
airodump-ng --uptime mon0
fi
elif [[ "$1" == "stop" ]]; then
killall 'airodump-ng'
killall 'airodump-ng' || true
airmon-ng stop mon0
airmon-ng stop wlan0
service network-manager start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment