Hi. I wanna point out:
1. tcpxtract -f /root/$SESSION/$SESSION.pcap -d wlan0 (interface (to download images and stuff we have in .pcap) is missing in your script)
2. after tcpxtract actually "exracted" images and html from the .pcap file, there were many duplicates. I googled a program to kill dupes, and found FSlint - Duplicate file finder for linux. It¨s available from default bt4 repos. Then run fslint-gui and find all dupes, merge. Done.
apt-get install tcpxtract
apt-get install fslint
Any other "kill dupes" tool suggestions to be used in the script?