edwingeorge747 Posted August 21, 2015 Posted August 21, 2015 Hi, I upgraded the pineapple firmware and it was working fine. I started a packet sniffing program and captured data to a particular file as i wanted. But i thought of keeping the pineapple working for a whole day and save data to a particular file. The next day when i tried to access the data i saw that the pineapple was rebooted and data captured has started again and all the stored data was overwritten. I am wondering why was the Wi-Fi pineapple rebooted. Any help would be appreciated. Also if anyone let me know a way in which even if the pineapple gets rebooted i can store the data in a different file or append them in the same file. Thank You. Quote
Sailor Posted August 24, 2015 Posted August 24, 2015 (edited) You can use the following script and set it as a boot script for your dip configuration. Make sure you change the log directories or create them (/sd/log/ and /sd/log/archive/) #!/bin/bash logger '***** Start boot script *****' DATE=$(date +"%Y%m%d%H%M") # Clean up older files from log directory and archive them mv -n /sd/log/*.pcap* /sd/log/archive/ >/dev/null sleep 5 # Start tcp dump logger '***** Start tcp dump *****' tcpdump -n -C 10 -W 100 -i br-lan -w /sd/log/packetlog-$DATE.pcap >/dev/null 2>&1 & logger '***** Finished boot script *****' Edited August 24, 2015 by Sailor Quote
edwingeorge747 Posted August 24, 2015 Author Posted August 24, 2015 Thanks Sailor. That worked for me to log the data. Another question i have is regarding tcpdump. Like is it better to use br-lan interface or wlan0 interface in monitor mode or another interface. What would be better to capture 802.11 traffic Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.