Last active
March 19, 2016 06:44
-
-
Save sheabunge/279f9b9102a264a77e6c to your computer and use it in GitHub Desktop.
Bash script for retrieving flash videos from Firefox/Chrome cache
This file contains hidden or 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 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