LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2011, 06:02 PM   #1
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453
Blog Entries: 3

Rep: Reputation: 40
extracting cache data from FF 4.0


HI folks,

well probably most of you have switched to FF 4.0

my major problem with it however , is the way the cache is stored on the hdd , now everything is sort of "sorted" into an endless number of folders.

i'm wondering why did they do it that way ?
how are we supposed to browse the cache folders from now?

btw i've always resorted to the cache folder for extracting all kinds of things the browser downloads...

cheers
 
Old 05-28-2011, 10:47 AM   #2
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
type 'about:cache' in firefox
 
Old 05-30-2011, 11:24 AM   #3
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by almatic View Post
type 'about:cache' in firefox
well this "about:cache" is just plain nasty , it sucks all the cpu and HDD power , takes like 5 minutes to render and produces nothing but garbage !

there is no way to filter or sort this data that is being spit on the screen ....

in short this is just horrible , what were the devs thinking ???!
 
Old 05-30-2011, 01:43 PM   #4
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
the devs are saying that this, along with most other changes concerning the cache, has security reasons. Those other changes include, for example, that you won't easily find videos in the cache, as before. Instead they are obfuscated and immediately deleted in /tmp.
However you can still use the file descriptors from the procfs to copy the downloaded videos (in case videos are your problem...).
 
Old 06-01-2011, 10:02 AM   #5
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by almatic View Post
the devs are saying that this, along with most other changes concerning the cache, has security reasons. Those other changes include, for example, that you won't easily find videos in the cache, as before. Instead they are obfuscated and immediately deleted in /tmp.
However you can still use the file descriptors from the procfs to copy the downloaded videos (in case videos are your problem...).
AHA , that's what i thought , yes i've read about those "security concerns" i think they are just bogus anyways (and i hate it when devs force decisions on us , would have been nice if they gave us an option to toggle on/off or something).

yes i was trying to find videos in the cache among other things such as flash objects and so forth , btw they are not obfuscated , it's just that they are scattered over a huge directory of directories....aaarrrg !

anyways ,how do i do this procfs magic that you're talking about ?


EDIT: ok looks like i figured out the first part
/proc/PID/fdinfo (PID being FF's pid)

now what? how do i access the files via fd's from the command line?

kind regards

Last edited by entz; 06-01-2011 at 10:05 AM.
 
Old 06-01-2011, 01:09 PM   #6
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
Quote:
Originally Posted by entz View Post
now what? how do i access the files via fd's from the command line?
the flash-plugin has its own process.
Code:
almatic@scotch:~$ ps -ef | grep flash
almatic    4364  3722  0 16:35 ?        00:00:05 /opt/firefox4/plugin-container /usr/lib/flashplugin-nonfree/libflashplayer.so -omnijar /opt/firefox4/omni.jar 3722 true plugin
almatic    5538  3620  0 19:49 pts/0    00:00:00 grep flash
now look at the fd's
Code:
almatic@scotch:~$ ll /proc/4364/fd
insgesamt 0
lr-x------ 1 almatic almatic 64  1. Jun 16:35 0 -> pipe:[9655]
l-wx------ 1 almatic almatic 64  1. Jun 16:35 1 -> /home/almatic/.xsession-errors
lrwx------ 1 almatic almatic 64  1. Jun 16:35 10 -> socket:[17000]
lrwx------ 1 almatic almatic 64  1. Jun 16:35 11 -> socket:[17001]
lrwx------ 1 almatic almatic 64  1. Jun 16:35 12 -> pipe:[17002]
lrwx------ 1 almatic almatic 64  1. Jun 16:35 13 -> pipe:[17002]
lrwx------ 1 almatic almatic 64  1. Jun 16:35 14 -> socket:[17005]
l-wx------ 1 almatic almatic 64  1. Jun 16:35 15 -> /home/almatic/.mozilla/firefox/kjrej1g4.default/cert8.db
lrwx------ 1 almatic almatic 64  1. Jun 16:35 16 -> /home/almatic/.mozilla/firefox/kjrej1g4.default/key3.db
lrwx------ 1 almatic almatic 64  1. Jun 16:35 17 -> /tmp/FlashXXeT97gR (deleted)
lr-x------ 1 almatic almatic 64  1. Jun 16:35 19 -> /dev/snd/pcmC0D0p
l-wx------ 1 almatic almatic 64  1. Jun 16:35 2 -> /home/almatic/.xsession-errors
lrwx------ 1 almatic almatic 64  1. Jun 16:35 3 -> socket:[16912]
lrwx------ 1 almatic almatic 64  1. Jun 16:35 4 -> socket:[16913]
l-wx------ 1 almatic almatic 64  1. Jun 16:35 5 -> pipe:[17767]
lr-x------ 1 almatic almatic 64  1. Jun 16:35 6 -> pipe:[17767]
l-wx------ 1 almatic almatic 64  1. Jun 16:35 7 -> pipe:[17768]
lr-x------ 1 almatic almatic 64  1. Jun 16:35 8 -> pipe:[17768]
l-wx------ 1 almatic almatic 64  1. Jun 16:35 9 -> anon_inode:[eventpoll]
You can just copy the video (the red one) to a directory of your choice.

cp /proc/4364/fd/17 /dir/of/choice/video.flv

Last edited by almatic; 06-01-2011 at 05:37 PM. Reason: its ≠ it's
 
1 members found this post helpful.
Old 06-01-2011, 03:56 PM   #7
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
alright ,

but how come that the file is still accessible when it says that it has been deleted ?

if i attempt to access the actual /tmp pathname that the soft link references , i don't get anything ...how is that possible?
so if it's not deleted then where exactly is being held ? in the labyrinthian cache directoy ? in Ram ?

regards
 
Old 06-01-2011, 05:36 PM   #8
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
deleted files are not really deleted. They are just 'unlinked' from its inode while the data is still there.
In the above case you are using the fact, that a process still has a file descriptor for that file (e.g. "has that file open"), which contains the necessary information to access the data on the disk.

If you have lsof installed, you can use that too (lsof -p <pid>).

Last edited by almatic; 06-01-2011 at 05:37 PM. Reason: its ≠ it's
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting Data with Gawk iframe Linux - Software 8 05-13-2010 07:25 AM
extracting data and putting in new file Spinoz Linux - Newbie 5 10-16-2009 02:51 PM
Data Parsing/Extracting anrchist007 Linux - Software 2 04-02-2009 06:12 AM
help extracting data from csv file willinusf Linux - General 10 10-27-2006 09:10 PM
Extracting data from broken drive darin3200 Linux - Software 1 07-12-2003 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration