![]() |
script to wipe all sensitive user data - guinea pigs (/lemmings) wanted, apply within!
in my alternate life as an international man of mystery i may at some point have to wipe all my data in an emergency, i know there is a short xterm code to completely erase everything, but i want the phone to still be usable, i was just wondering if there is a xterm code that will wipe all user data but leave the os intact? then i can queen beecon it and if the commies catch me i can hit the button and nobody has to die. yet.
p.s. this post will self destruct in 3hours. |
Re: xterm command to wipe all user data?
What kind of things did you want deleting? I don't think there's a one-stop-delete-everything-in-a-usable-way command, but it's certainly scriptable.
|
Re: xterm command to wipe all user data?
basically everything i've put on there, call records, texts, images and videos, im, gps history. if its scriptable it may be good to not delete my apps and saves etc, but definately anything that could lead the enemy to my secret volcano safehouse... oops, i've said too much already!
|
Re: xterm command to wipe all user data?
Start with the "Clear device" function already found in Settings. It runs a script: /usr/sbin/osso-app-killer-cud.sh
It doesn't clear everything (esp. settings in ~ by applications created by a 3rd-party, for instance) but it just runs a bunch of scripts in /etc/osso-cud-scripts/ |
Re: xterm command to wipe all user data?
Quote:
ps would a rm /home/user/MyDocs/ command work as root or is it somehow protected? again, testing isn't really an option! |
Re: xterm command to wipe all user data?
Should work... you should definitely test it though to make sure ;)
|
Re: xterm command to wipe all user data?
Quote:
I guess you'd have to go through the scripts and try and figure out what's being deleted. If you have the time, you could use RobbieThe1st's BackupMenu to create a clone of your rootfs and see what gets deleted... Quote:
|
Re: xterm command to wipe all user data?
Quote:
would this remove the contents of MyDocs, or the actual MyDocs folder itself? and would the n900 create a new MyDocs folder or is it reflash time if that goes? |
Re: xterm command to wipe all user data?
i think what i'll do is try writing a little script and then bring it back for you all to have a look and either approve or show me the error of my ways, is there a command to delete all sub directories like you mentioned but leave the parent folder alone?
and just to save me some homework does anyone know off the top of their heads the locations of: saved texts saved im call records fmms images web bookmarks web history cache saved passwords etc. |
Re: xterm command to wipe all user data?
Bwaahaaha.
Anyway, that would delete the directory + everything in it (if it was rm -r). If you wanted to keep the folder but delete the contents you'd do rm -r /home/user/MyDocs/* But why make it easy for them to get your super secret volcano hideout? (Ps. I know where it is) #!/bin/bash for ((a=0;a<3;a++)) dd if=/dev/zero of=/home/user/MyDocs done |
Re: xterm command to wipe all user data?
Quote:
Quote:
just realising how noobish i am once i start venturing back into xterm, but is bash the built in one or is that a seperate install i probably dont have? |
Re: xterm command to wipe all user data?
bookmarks are
/home/user/.bookmarks/* history seems to be /home/user/.browser_typed_urls I dunno if you want contacts but they seem to be here /home/user/.osso-abook/ and emails are /home/user/.modest/ I'm not sure if I'm completely right, this was in a few seconds of poking around, Bash isn't built in, you can change that to /bin/sh, sorry! Also it just wipes all the data with 0's three times. |
Re: xterm command to wipe all user data?
okay first attempt...
sudo gainroot rm -r -f home/user/MyDocs/Private 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/.skype/* rm -r -f home/user/.thumbnails/* hows that look? will it work? have i missed anything? how 'tarded is my attempt at coding? the wiping with 0's sounds like a good idea, just in case these commies get the serious tech out to sniff the deleted data (is that even doable on flash based memory?), can it be done without bash? |
Re: xterm command to wipe all user data?
i've definately missed something, text and call records for one, i'll have to dig deeper....
|
Re: xterm command to wipe all user data?
Nuke /home/user/.rtcom-eventlogger for those
|
Re: xterm command to wipe all user data?
I'm not sure but I think they are stored in
/home/user/.rtcom-eventlogger/el.db /home/user/.rtcom-eventlogger/el-v1.db or something like that. Why don't you just encrypt your file, or do you fear brutal interrogation from the commies? |
Re: xterm command to wipe all user data?
Quote:
|
Re: xterm command to wipe all user data?
Quote:
|
Re: xterm command to wipe all user data?
i've added event logger and also memory card, and appended a / to the front of all the directories (thats right isn't it? damn i'm so noob i'm ready to slap myself!)
so draft 2 looks like: Code:
sudo gainroot sorry for so many questions guys ur all being so helpful! |
Re: xterm command to wipe all user data?
Add autocomplete dictionaries to your list
/home/user/.osso/dictionaries/ |
Re: xterm command to wipe all user data?
Quote:
|
Re: xterm command to wipe all user data?
echo "rm -r /*" | sudo gainroot
warning: dont actually do this. |
Re: xterm command to wipe all user data?
Quote:
p.s. i've already mentioned several times i'm a bit noobish, but is your sig basically a linux version of russian roullette? |
Re: xterm command to wipe all user data?
root
rm -rf /home/user/.* rm -rf /home/user/Mydocs/.* rm -rf ~/.* should wipe any and all user data but leave OS and (most?) apps intact.... |
Re: xterm command to wipe all user data?
more or less...wanna play?
linux in scotland, no rules, life is cheap. |
Re: xterm command to wipe all user data?
Quote:
|
Re: xterm command to wipe all user data?
Quote:
i would play... but if it deleted my porn i'd be inconsolable, may as well have been the /home folder |
Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
Open Xterm:
rm /* p.s. don't try this |
Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
Quote:
|
Re: xterm command to wipe all user data?
Quote:
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.... |
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. |
Re: xterm command to wipe all user data?
Quote:
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? |
Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
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? i've added var/lib/ ... facebook, hermes, modest, osso/bookmark |
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!
|
Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
Quote:
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! ;) |
Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
Quote:
|
Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
Quote:
Quote:
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:
|
Re: <s>xterm command</s> script to wipe <s>all</s> sensitive user data?
Quote:
|
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 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. |
Re: xterm command to wipe all user data?
Quote:
dpkg --set-selections < mypackages :D |
All times are GMT. The time now is 01:08. |
vBulletin® Version 3.8.8