![]() |
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 |
All times are GMT. The time now is 23:12. |
vBulletin® Version 3.8.8