Skip to content

Instantly share code, notes, and snippets.

@sheabunge
Last active March 19, 2016 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheabunge/279f9b9102a264a77e6c to your computer and use it in GitHub Desktop.
Save sheabunge/279f9b9102a264a77e6c to your computer and use it in GitHub Desktop.
Bash script for retrieving flash videos from Firefox/Chrome cache
#!/usr/bin/env bash
for process in chrome firefox
do
pid=$(ps ax | grep -i $process | grep -i flash | cut -f 1 -d ' ')
file -L /proc/$pid/fd/* | grep -iE 'video|media|mp4|flash' | cut -f 1 -d ':'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment