Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How to remove flash cookies like this

  1. #1
    Join Date
    Mar 2009
    Location
    Bay Area, California, USA
    Beans
    46
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    How to remove flash cookies like this

    Hi I am running latest version of ubuntu 9.10. How can I do a script like this one: http://adblockplus.org/blog/getting-...-flash-cookies for Ubuntu? I want to make sure I can get rid of the flash cookies. Also, I know about this way to do it: http://www.macromedia.com/support/do...manager04.html. However, this does not seem to get rid of everything.

  2. #2
    Join Date
    Oct 2009
    Beans
    39

    Re: How to remove flash cookies like this

    Then why don't you try a firefox add-on called "BetterPrivacy".


  3. #3
    Join Date
    Dec 2009
    Beans
    3
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to remove flash cookies like this

    I'm not 100% sure, and don't take my word for it, but I think all flash cookies (offline flash data/ application settings, etc) are stored in .sol files. I actually just finished some c++ code for myself a few minutes ago (not specifically for this post lol) to find and delete all .sol files found. It scans from the current directory it was executed from, going as far as 50 sub-directory levels down, to scan for ANYTHING ending in .sol.

    Once again, i'm not sure if this is the safest method, but I've used it and nothing bad has happened yet that I can notice. I'd say the code is sloppy, but it works lol.

    To use, just compile the code below, with g++:
    Code:
    g++ filename.cpp -o deflash
    (if you don't have g++, issue a "sudo apt-get install g++" command.
    replacing filename.cpp with the name of the code you save below.
    Then copy the executable to /usr/bin as root, as so:
    Code:
    sudo cp deflash /usr/bin
    after this, "cd" to your home directory, and use the command:
    Code:
    deflash
    Feel free to mod this to your needs.

    THE CODE:

    Code:
    #include <iostream>
    #include <fstream>
    #include <string>
    #include <stdlib.h>
    #include <unistd.h>
    using namespace std;
    
    int main(int argc, char *argv[])
    {
        int numlines = 0;
        int countlp = 0;
        int flipper = 0;
        system("find -maxdepth 50 -type f -name \\*.sol > flashlist.dat"); /*creates a file listing each found file ending with jpg,
                                                                                        starting with the current directory, extending as 
                                                                        far as 10 sub-directories. You can change the "-maxdepth" option to what suits you */
        cout << "\n-> Created found flash cookies\\objects list...";
        cout << "\n---------> Calculating...";
        ifstream calclines("flashlist.dat");
        if(!calclines)
        {
            cout << "\n-> !!! Error. flashlist.dat inaccessible or not created. Terminating.\n";
            exit(0);
        }
        else
        {
            while(!calclines.eof())
            {    
                string temp;
                getline(calclines,temp);
                numlines++;
            }
            calclines.close();
        }
        cout << "\n" << numlines << " files found.";
        system("sleep 1");
        cout << "\nNow shredding and removing...";
        system("sleep 1");
        ifstream filelist("flashlist.dat");
        if(!filelist)
        {
            cout << "\n-> !!! Error. flashlist.dat inaccessible or not created. Terminating.\n";
            exit(0);
        }
        else
        {
            while(!filelist.eof())
            {
                countlp++;
                flipper++;
                system("clear");
                string location;
                string concatenated = "shred -f -u -z \""; /* this securely deletes the files. learn more by looking up the "shred" command */
                
                getline(filelist, location);
                location.erase(0,2);
                cout << "\n\n -- -- --Shredding and removing " << location << ".\n|\nL-- -- -- " << countlp << " of " << numlines << " flash objects deleted -- -- --";
    
                
                concatenated += location;
                concatenated += "\"";
                
                system(concatenated.c_str());
    
            }
            system("clear");
            system("shred -f -u -z flashlist.dat");
            cout << "\n---FINISHED---\n" << numlines << " files removed.\n\n";
        }
        filelist.close();
        return 0;
    }

  4. #4
    Join Date
    Sep 2009
    Location
    El Cajon, CA
    Beans
    44
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to remove flash cookies like this

    Quote Originally Posted by Astrals View Post
    Then why don't you try a firefox add-on called "BetterPrivacy".

    Thats how I roll.
    ...so many toys...so little time...

  5. #5
    Join Date
    Nov 2008
    Location
    Germany
    Beans
    217
    Distro
    Ubuntu Development Release

    Re: How to remove flash cookies like this

    Maybe you can install bleachbit...

  6. #6
    Join Date
    Sep 2009
    Beans
    8,874
    Distro
    Ubuntu Development Release

    Re: How to remove flash cookies like this

    Quote Originally Posted by Astrals View Post
    Then why don't you try a firefox add-on called "BetterPrivacy".

    Much easier then a script.

  7. #7
    Join Date
    Dec 2009
    Beans
    4

    Re: How to remove flash cookies like this

    BetterPrivacy shows you all the controllers and settings left behind by the Flash-based streaming videos, advertisements, and controls that are nearly ubiquitous on the web these days.

  8. #8
    Join Date
    Jan 2008
    Location
    USA
    Beans
    971
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to remove flash cookies like this

    You can simply restrict write access to the folder where flash cookies are stored and then you can say bye-bye to them forever. Only problem is the flash content on some sites won't work properly.

  9. #9
    Join Date
    Aug 2007
    Location
    Karma BC
    Beans
    1,215
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to remove flash cookies like this

    You can also make a symbolic link to /tmp so all the cookies are cleared when re-booting.

    Kipling - "if"

  10. #10
    Join Date
    Dec 2009
    Beans
    1

    Re: How to remove flash cookies like this

    Mr. whats_a_jackalope, I like your style as well as your DeFlash. If you need a tool, build it; if it works for you, share it; if somebody has a better tool, applaud it. DeFlash worked wonderfully for me. I thank you!

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •