Created
September 29, 2016 12:55
-
-
Save sheabunge/c5adf5a9c67745b44b89a0074b49ab2d to your computer and use it in GitHub Desktop.
Shell script for retrieving flash videos from Linux cache. Tested on Ubuntu.
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 | |
pids=$(ps ax | grep -iE 'chrome|firefox|vivaldi' | grep -i flash | awk '{ print $1 }') | |
for pid in $pids | |
do | |
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