Created
April 10, 2011 09:53
-
-
Save idlecool/912196 to your computer and use it in GitHub Desktop.
grab flash videos from the cache.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment