Skip to content

Instantly share code, notes, and snippets.

@idlecool
Created April 10, 2011 09:53
Show Gist options
  • Save idlecool/912196 to your computer and use it in GitHub Desktop.
Save idlecool/912196 to your computer and use it in GitHub Desktop.
grab flash videos from the cache.
#!/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