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)

festivalnut 2011-02-08 17:14

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

Originally Posted by Captwheeto (Post 939150)
But why make it easy for them to get your super secret volcano hideout? (Ps. I know where it is)

no you dont! (shhhh! or i may have to kill you!)
Quote:

#!/bin/bash
for ((a=0;a<3;a++))
dd if=/dev/zero of=/home/user/MyDocs
done
i'm not sure i even wanna know what that does, it looks kinky! :/
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?

Captwheeto 2011-02-08 17:17

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.

festivalnut 2011-02-08 17:26

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?

festivalnut 2011-02-08 17:29

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....

jstokes 2011-02-08 17:34

Re: xterm command to wipe all user data?
 
Nuke /home/user/.rtcom-eventlogger for those

Cue 2011-02-08 17:40

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?

Cue 2011-02-08 17:41

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

Originally Posted by jstokes (Post 939181)
Nuke /home/user/.rtcom-eventlogger for those

beaten to the punch. :D

festivalnut 2011-02-08 17:44

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

Originally Posted by Cue (Post 939187)
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?

interrogation is inevitable, brutality doubly so. and i dont trust encryption tbh, it can always be undone, never mind i'll fold under interrogation so quick it may not have finished encrypting by the time i tell them, deletion is quick and easy, like the cyanide pill! ;)

festivalnut 2011-02-08 17:47

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
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/*
rm -r -f /home/user/.rtcom-eventlogger/*
rm -r -f /media/mmc1/*

yes? no? maybe? and if there is an empty/missing directory for any reason, such as missing mmc, will it ignore and carry on or halt with an error?

sorry for so many questions guys ur all being so helpful!

panta 2011-02-08 17:49

Re: xterm command to wipe all user data?
 
Add autocomplete dictionaries to your list
/home/user/.osso/dictionaries/


All times are GMT. The time now is 11:59.

vBulletin® Version 3.8.8