maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   script to wipe all sensitive user data - guinea pigs (/lemmings) wanted, apply within! (https://talk.maemo.org/showthread.php?t=69518)

Joorin 2011-02-08 19:04

Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
 
Don't forget to clean out the gconf store of user settings (including passwords and the such).

Have a look in /var/lib/gconf for a hint at how tricky it might be to delete only the things you want deleted... If you pick the wrong parts, installed applications, including NOKIA ones, might get really upset and fail to function.

festivalnut 2011-02-08 19:10

Re: xterm command to wipe all user data?
 
Quote:

Originally Posted by casketizer (Post 939262)
Normally there shouldnt be anything but user data in the ~/.* dirs.
Certainly your selective approach might be safer, depending how the apps you use play by the rules.
If I had stuff to hide and wanted to wipe my N900 asap w/o being prepared for it in advance, I'd punch in those lines I wrote....

there arent many/any apps i use which would have information useful to the enemy, my plan was to be sufficiently prepared in advance to press the button and worry no more, yet be able to pick up my n900 and use it as normal straight afterward, reconfiguring or reinstalling all my apps would be a nuisance to say the least.



anyway moving on... if theres no more suggestions for sensitive areas i may be ready to turn it into a script, so to do this i would...

save the command as say- panic.sh
somewhere that won't be deleted by the script (/home/user/panicscript/panic.sh for example)
chmod 777 /home/user/panicscript/panic.sh
then i just have to root panic.sh in xterm

is this correct?

festivalnut 2011-02-08 19:22

Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
 
Quote:

Originally Posted by Joorin (Post 939270)
Don't forget to clean out the gconf store of user settings (including passwords and the such).

Have a look in /var/lib/gconf for a hint at how tricky it might be to delete only the things you want deleted... If you pick the wrong parts, installed applications, including NOKIA ones, might get really upset and fail to function.

i'm trying not to delete the wrong parts specifically so they dont get upset!

i had a look and yeah, i'm already puzzled, are these the passwords microB stores for web pages or just the applications themselves?

i've added var/lib/ ... facebook, hermes, modest, osso/bookmark

Alfred 2011-02-08 19:43

Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
 
The commies have come to You. I'm from Russia, it's panic time!

festivalnut 2011-02-08 19:48

Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
 
Quote:

Originally Posted by Alfred (Post 939314)
The commies have come to You. I'm from Russia, it's panic time!


mwahahaha, as long as u remain in russia and nowhere near me and my n900, i think panic time may be a while away yet! ;)

Alfred 2011-02-08 19:56

Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
 
Quote:

Originally Posted by festivalnut (Post 939319)
mwahahaha, as long as u remain in russia and nowhere near me and my n900, i think panic time may be a while away yet! ;)

I just got 586 miles closer to You in 10 minutes (it's 586 Mi since You live in Scotland=), moved to Germany. About more than half an our, and i'll get you=)!

Joorin 2011-02-08 21:56

Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
 
Quote:

Originally Posted by festivalnut (Post 939295)
i'm trying not to delete the wrong parts specifically so they dont get upset!

Then this is a place where you really need to be careful.

Quote:

i had a look and yeah, i'm already puzzled, are these the passwords microB stores for web pages or just the applications themselves?
Any application can use gconf to store integers, booleans and strings containing whatever they like.

Some of the interesting parts are passwords for WiFi AccessPoints and different settings for applications. Browse around a bit in there and see if you find anything tasty. grep is a useful tool if you have some idea about what you're looking for.

Quote:

i've added var/lib/ ... facebook, hermes, modest, osso/bookmark
That might be enough. But I wouldn't count on it, depending on how determined The Enemy is.

festivalnut 2011-02-09 01:10

Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
 
Quote:

Originally Posted by Joorin (Post 939422)
Some of the interesting parts are passwords for WiFi AccessPoints and different settings for applications. Browse around a bit in there and see if you find anything tasty...

well i'm not really bothered about wifi passwords, if the enemy is within range of my routers then the sharks with frickin laser beams on their heads will get em! besides if their determined enough to get the passwords this way they'd be as well hacking the router. i did have a quick peek and the email and facebook/hermes passwords i think are sufficient to foil their plans without the risk of killing anything important.

festivalnut 2011-02-09 01:45

Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
 
1 Attachment(s)
okay here's version 0.3

Code:

sudo gainroot
rm -r -f /home/user/MyDocs/Private
rm -r -f /home/user/MyDocs/.documents
rm -r -f /home/user/MyDocs/.images/*
rm -r -f /home/user/MyDocs/.sounds/*
rm -r -f /home/user/MyDocs/.videos/*
rm -r -f /home/user/MyDocs/DCIM/*
rm -r -f /home/user/MyDocs/Downloads
rm -r -f /home/user/.bookmarks/*
rm -r -f /home/user/.cache/*
rm -r -f /home/user/.fmms/*
rm -r -f /home/user/.modest/cache/*
rm -r -f /home/user/.modest/images/*
rm -r -f /home/user/.modest/local-folders/*
rm -r -f /home/user/.modest/outboxes/*
rm -r -f /home/user/.osso/dictionaries/*
rm -r -f /home/user/.skype/*
rm -r -f /home/user/.thumbnails/*
rm -r -f /home/user/.rtcom-eventlogger/*
rm -r -f /var/lib/gconf/apps/maemo/facebook/*
rm -r -f /var/lib/gconf/apps/maemo/hermes/*
rm -r -f /var/lib/gconf/apps/modest
rm -r -f /var/lib/gconf/apps/osso/bookmark/*
rm -r -f /media/mmc1/*

now unless anyone has some sudden realisation that it'll break something, or just won't work, it may suddenly become 1.0 - to that end;

who wants to be a guinea pig?

no really, anyone recently reflashed and fancy giving it a whirl? just to make it a little bit easier i've attached a .txt ;)

if you haven't been reading along please don't do it, the whole purpose of this script is to delete your entire memory card, images, videos, documents, texts, email, call logs, Private folder, and other things as you can see above.

if you have been reading you'll know that i dont know s**t, haven't tried this (which is why i'm selfishly asking you to!), theres a possibility it might break something, and theres really no good reason for you to test it for me.

but if someone who knows what their doing, has recently reflashed and doesn't mind possibly having to do so again would like to try it out you'll have my eternal gratitude (or at least a weeks worth of gratitude anyway!)

also if any other spies (not enemy spies though) want to use/modify/whatever by all means feel free.

Cue 2011-02-09 01:52

Re: xterm command to wipe all user data?
 
Quote:

Originally Posted by festivalnut (Post 939278)
there arent many/any apps i use which would have information useful to the enemy, my plan was to be sufficiently prepared in advance to press the button and worry no more, yet be able to pick up my n900 and use it as normal straight afterward, reconfiguring or reinstalling all my apps would be a nuisance to say the least.

dpkg --get-selections > mypackages
dpkg --set-selections < mypackages

:D


All times are GMT. The time now is 16:37.

vBulletin® Version 3.8.8