|
2010-08-17
, 11:35
|
Posts: 92 |
Thanked: 17 times |
Joined on Feb 2010
|
#2
|
|
2010-08-17
, 13:15
|
Posts: 82 |
Thanked: 44 times |
Joined on Feb 2010
|
#3
|
|
2010-08-17
, 14:43
|
Posts: 26 |
Thanked: 11 times |
Joined on Nov 2009
|
#4
|
|
2010-08-17
, 16:24
|
Posts: 56 |
Thanked: 11 times |
Joined on Jan 2010
|
#5
|
Installation:
* banana -- place in /etc/event.d and edit the variables at the top
* sms.py, sms_gps.py -- place in /usr/sbin and chmod 755
* reboot
.
|
2010-08-17
, 16:37
|
|
Posts: 173 |
Thanked: 72 times |
Joined on Mar 2010
@ Denmark
|
#6
|
|
2010-08-17
, 17:24
|
Posts: 56 |
Thanked: 11 times |
Joined on Jan 2010
|
#8
|
AlexV12:
It requires either SSH or using XTerm.
But please, don't do anything you don't know what is.
EDIT: You updated right before me.
Remember to do it as root.
sudo gainroot
|
2010-08-17
, 17:46
|
Posts: 26 |
Thanked: 11 times |
Joined on Nov 2009
|
#9
|
cd /usr/sbin chmod 755 sms.py chmod 755 sms_gps.py
dbus-send --system --type=method_call --print-reply --dest=com.nokia.phone.SIM /com/nokia/phone/SIM Phone.Sim.get_imsi
|
2010-08-17
, 21:39
|
Posts: 56 |
Thanked: 11 times |
Joined on Jan 2010
|
#10
|
Here's how it works:
At phone startup, the script reads the SIM card number and compares it to your own valid number. If invalid, it'll send an SMS every x seconds to a pre-defined phone number that includes IMSI and GPS coordinates. It also makes a phone call to the same number after a user-defined number of seconds (to lower chance of thief closing out the phone app).
Whether the SIM card is valid or not, the script listens for a user-defined SMS alert-code. When alert mode is activated, it returns texts to the incoming number with the same info as above (IMSI and GPS).
Installation:
1. Send thief-be-caught.tar.gz to n900
2. Extract: tar cvf thief-be-found.tar.gz -C /
3. Fill out variables at the top of /etc/event.d/banana
3. Reboot
4. Check if script is running with: ps | grep sms
Prereqs: python libraries (incl. python-location)
To close the daemon:
sh /usr/sbin/sms-quit.sh
Notes:
* Some alert code strings seem to be interpreted incorrectly by the SMS receiving procedure, so try changing the alert code if nothing happens.
* Every time the GPS coordinates are read, the internal GPS and network positioning are enabled in case they were ever disabled. The location server will also be set to supl.google.com.
I hope this helps someone get their phone back if anything unfortunate happens. I am new to sh and python scripting, so please test and improve or offer feedback.
Last edited by boxhead; 2010-08-18 at 20:45. Reason: changed to tar.gz and modified starting script