Use this Bash script to get a list with all temporarily saved Flash videos:
#!/usr/bin/env bash
for flashpid in $(pgrep -f flashplayer.so); do
cd "/proc/$flashpid/fd"
for video in $(file * | grep '/tmp/Flash' | sed 's/\(^[0-9]*\).*/\1/g'); do
echo "/proc/$flashpid/fd/$video"
done
done
Mark the script as executable and run, for example to view the videos, the following:
flashget.sh | xargs mplayer
Explanation
Since Flash 10.1, all /tmp
file system entries are getting deleted as soon as the Flash player opens them. But the file itself still exists, since the kernel only deletes the file if the hardlinks don't exists anymore. Only the Flash plugin knows where the file/video is. Luckily, the kernel can tell us which processes have which filehandles open. So, there are still hardlinks for these files located at /proc/$PID/fd
.
/tmp
. If I play a video in firefox, these videos are still found in/tmp
. But somehow I prefer Google Chrome. Which specific location are you asking me to check in Home dir? I mentioned a path above which I checked but it hasn't got the thing I'm searching for. – Dharmit Feb 14 '11 at 9:56.config/chromium
it doesn't make sense but chrome dumps like everything in there, I filed a bug on them abusing it but they closed it because of a side thing I put in it – xenoterracide Feb 14 '11 at 12:49