-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecompose.sh
More file actions
executable file
·41 lines (22 loc) · 933 Bytes
/
Copy pathdecompose.sh
File metadata and controls
executable file
·41 lines (22 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Generate files from pcapng file
# Maintains a master list of hashes and removes previously seen hashes from new hashlists
# Run in a folder specific to the one pcapng file, 1 level below ALL_PMKID.16800
filename=$(basename -- $1)
filename="${filename%.*}"
hccapx=$filename".hccapx"
text=$filename"_wordlist.txt"
pmkid=$filename"_PMKID.16800"
identity=$filename"_identity.txt"
username=$filename"_usernames.txt"
traffic=$filename"_traffic.txt"
pmklist=$filename"_PMKList.txt"
hcxpcaptool -o $hccapx -z $pmkid"Full" $1 -E $text -I $identity -U $username -T $traffic -P $pmklist
# Remove data we already have
../rli $pmkid"Full" $pmkid ../All_PMKID.16800
# Add our data to list
cat $pmkid >> ../All_PMKID.16800
#echo "**** "$hccapx" contains:"
#wlanhcxinfo -i output2.hccapx -a -s -e
# whoismac -d # use this to dl
#echo "**** "$pmkid" contains:"
#for i in $(cat $pmkid ); do whoismac -p $i | grep "ESSID"; done