Finding a Flash video in chrome – Saving files open but deleted

Flash movies are online, but sometimes i want to save some for offline usage so i can watch them later or offline (laptops) etc.
Often there is no way to save/download these files, but they are not held in the tmp dir or cache as they used to be due to changes in flash. In Linux this is easy to overcome using the following methods. This also works for any file that’s been deleted but is still running in memory.

First, you need to find what or where the file is. For flash try

velofille@apple:~$ sudo lsof |grep Flash
npviewer.  8774  velofille   16u      REG                9,1 253092771     396153 /tmp/FlashXXDfgiS7 (deleted)
velofille@apple:~$

Bingo, i found my file! Of course the file /tmp/FlashXXDfgiS7 is deleted, so i cant just copy it like the good old days. Now i can copy that file from the proc filesystem using the following

cat /proc/8774/fd/16 > movie.flv

Now to breakdown where i got those parms from. The 8774 is the pid and 2nd number on the line, the 16 was from the ’16u’ which is the file descriptor . So when you do your lsof you can change those according to what you have open.
To find files open from a particular app, use ps to find the pid, then use

lsof -p 8774

Output is something like this

chrome  26572 velofille  mem    REG                9,1  1285536   1836431 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
chrome  26572 velofille  mem    REG                9,1   141088   3146088 /lib/x86_64-linux-gnu/ld-2.13.so
chrome  26572 velofille  DEL    REG               0,16           34257353 /dev/shm/.com.google.chrome.i96CPN
chrome  26572 velofille  DEL    REG               0,16           34257687 /dev/shm/.com.google.chrome.W9M2O5
chrome  26572 velofille  mem    REG                9,1   377352   4587538 /opt/google/chrome/libppGoogleNaClPluginChrome.so
chrome  26572 velofille    0r   CHR                1,3      0t0      5778 /dev/null
chrome  26572 velofille    1u   REG               0,20   953173   5767170 /home/velofille/.xsession-errors
chrome  26572 velofille    2u   REG               0,20   953173   5767170 /home/velofille/.xsession-errors
chrome  26572 velofille    3u   REG               0,20   953173   5767170 /home/velofille/.xsession-errors
chrome  26572 velofille    4r  FIFO                0,8      0t0  34257284 pipe
chrome  26572 velofille    5u  unix 0xffff88002c61f740      0t0  34257940 socket
chrome  26572 velofille    6u  sock                0,7      0t0  34257281 can't identify protocol
chrome  26572 velofille    7u   CHR                1,9      0t0      5783 /dev/urandom

The only ones you can take like this are the ones with a file descriptor to play with.

Good luck, an have fun!

Cats vs Humans – a Night Time Fiesta!

1001 uses for Vaseline

Was sent this one via email

Joe wanted to buy a motorbike. He doesn’t have much luck until one day, he comes across a Harley with a ‘for sale’ sign on it.

The bike seems even better than a new one, although it is 10 years  old. It is shiny and in absolute mint condition. He immediately buys it, and asks the seller how he kept it in such great condition for 10 years.

‘Well, it’s quite simple, really,’ says the seller, ‘whenever the Bike is outside and it’s gonna rain, rub Vaseline on the chrome. It protects it from the rain.’ and he hands Joe a jar of Vaseline.

That night, his girlfriend, Sandra, invites him over to meet her parents. Naturally, they take the bike there. Just before they enter the house, Sandra stops him and says, ‘I have to tell you something about my family before we go in.’

‘When we eat dinner, we don’t talk. In fact, the first person who Says anything during dinner has to do the dishes.’

‘No problem,’ he says. And in they go. Joe is shocked. Right smack in the middle of the living room is a Huge stack of dirty dishes. In the kitchen is another huge stack of dishes. Piled up on the  stairs, in the corridor, everywhere he looks, dirty dishes.

They sit down to dinner and, sure enough, no one says a word. As dinner progresses, Joe decides to take advantage of the situation. So he leans over and kisses Sandra.

No one says a word.

So he reaches over and fondles her breasts.

Still, nobody says a word.

So he stands up, grabs her, rips her clothes off, throws her on the table, and screws her right there, in front of her parents.

His girlfriend is a little flustered, her dad is obviously livid, and her mom horrified when he sits back down, but no one says a word.

He looks at her mom..

‘She’s got a great body,’ he thinks. So he grabs the mom, bends her over the dinner table, and has his way with her every which way right there on the dinner table.

Now his girlfriend is furious and her dad is boiling, but still, Total silence.

All of a sudden there is a loud clap of thunder, and it starts to rain.

Joe remembers his bike, so he pulls the jar of Vaseline from his pocket…

Suddenly the father shouted….‘I’ll do the b****** dishes!!!’