Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Run commands on possibly deleted Flash video files opened by your web browser
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
flashcmd

README

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.
Something went wrong with that request. Please try again.