Skip to content

Instantly share code, notes, and snippets.

@sheabunge
Created September 29, 2016 12:55
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/c5adf5a9c67745b44b89a0074b49ab2d to your computer and use it in GitHub Desktop.
Save sheabunge/c5adf5a9c67745b44b89a0074b49ab2d to your computer and use it in GitHub Desktop.
Shell script for retrieving flash videos from Linux cache. Tested on Ubuntu.
#!/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