Re: [dev] browser flash videos and mpeg plugins

From: Rob <robpilling_AT_gmail.com>
Date: Sun, 27 Feb 2011 02:15:31 +0000

>> Newer versions of Flash delete the file immediately, but the file is
>> still open in memory and you can grab it from there.
>
> How?

Here's what I use, usually with something along the lines of mplayer
$(flashcache)

#!/bin/sh

set -e

pids=$(pgrep -f libflashplayer)

found=0
for p in $pids
do
        for f in /proc/$p/fd/*
        do
                if readlink "$f" | grep Flash > /dev/null
                then
                        found=1
                        echo $f
                fi
        done
done

if [ $found -eq 0 ]
then
        echo "$0: no flash cache" >&2
        exit 1
fi
Received on Sun Feb 27 2011 - 03:15:31 CET

This archive was generated by hypermail 2.2.0 : Sun Feb 27 2011 - 03:24:02 CET