Author Topic: How does firefox store history?  (Read 1121 times)

0 Members and 1 Guest are viewing this topic.

Offline m0l0ko

  • Peasant
  • *
  • Posts: 129
  • Cookies: -4
    • View Profile
How does firefox store history?
« on: May 14, 2014, 09:29:11 am »
When I start typing something into the URL bar, the first thing that comes up is "Lovely Lesbians fucking so intense". I wouldn't want my mother seeing that if she uses my laptop lol. I deleted the history the conventional way (CTRL + SHIFT + DEL then delete all history and cookies etc.). Then I went into the mozilla folder and deleted all the sqlite database files that store history. I'm on linux BTW. Do I need to delete the cache folder or something?

Offline Phage

  • VIP
  • Overlord
  • *
  • Posts: 1280
  • Cookies: 120
    • View Profile
Re: How does firefox store history?
« Reply #1 on: May 14, 2014, 09:35:44 am »
Hey, seems like you have some troubles clearing your browser history..

Step 1: Learn to use the Private Tabs before you start browsing porn - especially on a shared computer.
Step 2: https://support.mozilla.org/en-US/kb/remove-recent-browsing-search-and-download-history

"Ruby devs do, in fact, get all the girls. No girl wants a python, but EVERY girl wants rubies" - connection

"It always takes longer than you expect, even when you take into account Hofstadter’s Law."

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: How does firefox store history?
« Reply #2 on: May 14, 2014, 11:09:39 am »
If you want to do a deep clean I suggest you use bleachbit.
This will also attempt to remove flash cookies and other crap left behind by plugins.
The history is stored in an sqlite file in your ~/.something depending on the distro.
« Last Edit: May 14, 2014, 11:09:48 am by proxx »
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline nothing12

  • NULL
  • Posts: 2
  • Cookies: 0
    • View Profile
Re: How does firefox store history?
« Reply #3 on: May 24, 2014, 05:50:22 am »
just delete the sql light file this reminds me of a script i made
Code: [Select]
#!/bin/bash

echo "welcome please enter your password: "
read password

if [[ $password == "fuck" ]]; then
{
    cp /lol/files/places.sqlite ~/.mozilla/firefox/gkla9oqj.default/
    echo "master your history is back" |espeak
}
elif [ $password == "pussy" ]; then
{
    echo "master history has been removed good day my master" |espeak
    cp ~/.mozilla/firefox/gkla9oqj.default/places.sqlite /lol/files/
    rm ~/.mozilla/firefox/gkla9oqj.default/places.sqlite
}
else
{
    clear
    echo "Fail attemp[+]" > /lol/files/loginattemplogs
    date +"%c" >> /lol/files/loginattemplogs
    echo " end of that log[-]" >> /lol/files/loginattemplogs
    echo "master knows you are on his computer now get the fuck off it" |espeak
    clear
}
fi


Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: How does firefox store history?
« Reply #4 on: May 24, 2014, 08:28:35 am »
just delete the sql light file this reminds me of a script i made
1. It's SQLite.
2. Your script doesn't do shit.

Offline m0l0ko

  • Peasant
  • *
  • Posts: 129
  • Cookies: -4
    • View Profile
Re: How does firefox store history?
« Reply #5 on: May 24, 2014, 07:16:18 pm »
Cheers for all the info, this will really come in handy. I started writing a bash script to wipe out history, and harden the OS recently. I only started it and dont have time to get too much into it so I was hoping some people here could pitch in. I'll start a thread for it, but heres what I've got so far:

Code: [Select]
#!/bin/bash
#!/bin/bash

mode="safe"
export $mode

# DISABLING DANGEROUS APPS

# Stop Ubuntu from gathering geographical information via GeoIP
gsettings set com.ubuntu.geoip geoip-url ""

function deleteData {

    declare -a dataPaths=("${!2}")

for dataPath in ${dataPaths[*]}
do

if [ ! -e ${dataPath} ]; then
echo "${dataPath} not found!"
continue
fi

case $1 in
"safe")
echo -e "$dataPath"
;;
"delete")
if [ ! -f ${dataPath} ]; then
echo -e "Deleting ${dataPath} file"
rm -fv ${delPath}
elif [ ! -d ${dataPath} ]; then
echo -e "Deleting ${dataPath} directory"
rm -frv ${delPath}
fi

;;
*)
echo -e "$delPath"
;;
esac

done


}

# REMOVE BAD STARTUP APPS

function removeStartupApps {

startupDir="/etc/xdg/autostart/"

declare -a startupFiles=("zeitgeist-datahub" "vino-server" "tracker-store")
startupFiles=("${startupFiles[@]/%/.desktop}")
delData=("${startupFiles[@]/#/${startupDir}}")
deleteData "$mode" delData[@]
}


# DELETE APPLICATION DATA

function deleteAppData {

fileList=()
appDir=""

case $1 in
"firefox")
appDir="$HOME/.mozilla/firefox/$(ls ~/.mozilla/firefox/ | grep 'default')/"
fileList=("formhistory.sqlite" "downloads.sqlite" "search.sqlite" "places.sqlite" "cookies.sqlite")
;;
"chromium-browser")
appDir=""
appsList=("")
;;
*)
echo "Incorrect app selected"
;;
esac

delPaths=( "${fileList[@]/#/${appDir}}" )
deleteData "$mode" delPaths[@]

}


appsList[0]="firefox"
appsList[1]="chromium-browser"

for app in ${appsList[*]}
do
deleteAppData $app
done


# DELETE CACHE FOLDERS
cacheDir="$HOME/.cache/"
deleteDir=()

deleteDir[0]="thumbnails"
deleteDir[1]="mozilla"
deleteDir[2]="chromium"
deleteDir[3]="vlc"

delPaths=( "${deleteDir[@]/#/${cacheDir}}" )

deleteData "$mode" delPaths[@]

removeStartupApps



# DELETE LSO COOKIES

echo "Deleting cookies:"
ls $HOME/.macromedia/Flash_Player/#SharedObjects/*/*
sudo rm -rf $HOME/.macromedia/Flash_Player/#SharedObjects/*/*


On safe mode it'll just print the files it would usually delete. With the exception of LSOs, it'll delete them either way.
« Last Edit: May 24, 2014, 07:27:32 pm by m0l0ko »