Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
Written by Ricardo Garcia. Released to the public domain. flashcmd is a short and simple Python script designed to work in Linux. It lets you run commands on possibly deleted Flash video files currently opened by your browser's Flash plugin. For this purpose, it parses the output of lsof to find out the plugin's PID and the file descriptor number of the video file. With them, a /proc/PID/fd/FD file path is formed and a command can be run on it. Usage example: $ flashcmd (1) /tmp/FlashXXRzNy1W You choose number: 1 Command to run. @@ will be replaced by the file name: > cp @@ ~/video.flv ... and the video is copied to your home directory.