![]() |
2010-08-18
, 18:16
|
Posts: 26 |
Thanked: 11 times |
Joined on Nov 2009
|
#32
|
![]() |
2010-08-18
, 18:18
|
|
Posts: 89 |
Thanked: 14 times |
Joined on Apr 2009
@ Somewhere out West
|
#33
|
![]() |
2010-08-18
, 18:26
|
Posts: 200 |
Thanked: 300 times |
Joined on Nov 2009
@ The Netherlands
|
#34
|
This script was born out of my rage of having my N900 stolen earlier this year. I wanted a simple SMS-based solution for retrieving my new N900 if it were ever stolen again. I used some python code for SMS send/recv and GPS tracking from the wiki and put it together for this.
...
Nokia-N900:~# smscon == smscon - remote control utility == Options: -start : start smscon -stop : stop smscon -boot : set start at device boot -unboot : remove start at device boot -status : get smscon_daemon status -log : show the logfile -clear : erase the log file -help : this help menu
Nokia-N900:~# smscon -log (Tue Aug 17 13:28:05 2010) START: smscon_daemon active (Tue Aug 17 13:28:05 2010) DAEMON: no arguments passed for daemon (Tue Aug 17 13:28:05 2010) DAEMON: reading valid IMSI code (XXXXXXXXXXXXXXX) from file (Tue Aug 17 13:28:05 2010) DAEMON: authorized IMSI code found (Tue Aug 17 13:28:05 2010) DAEMON: smscon autoloads at boot
![]() |
2010-08-18
, 18:29
|
Posts: 45 |
Thanked: 17 times |
Joined on Mar 2010
|
#35
|
If so, could you attach your file to the post so I can test it and update the zip. Thx.
![]() |
2010-08-18
, 18:41
|
Posts: 4,556 |
Thanked: 1,624 times |
Joined on Dec 2007
|
#36
|
The only issue I see is if the thief decides to wipe the OS, but I don't think the average crim is going to be bothered enough to do that, probably too busy looking through all your photo's and music!
But good work! Even if it saves just one N900 from the crack heads then it has to be worth it.
![]() |
2010-08-18
, 18:42
|
Posts: 56 |
Thanked: 11 times |
Joined on Jan 2010
|
#37
|
I made a two part Python script for the CLI (control app & background daemon) which does just the same and more...
Control app:
It also creates a log file:Code:Nokia-N900:~# smscon == smscon - remote control utility == Options: -start : start smscon -stop : stop smscon -boot : set start at device boot -unboot : remove start at device boot -status : get smscon_daemon status -log : show the logfile -clear : erase the log file -help : this help menu
I can send specific SMS messages to my phone and so can control my phone with it.Code:Nokia-N900:~# smscon -log (Tue Aug 17 13:28:05 2010) START: smscon_daemon active (Tue Aug 17 13:28:05 2010) DAEMON: no arguments passed for daemon (Tue Aug 17 13:28:05 2010) DAEMON: reading valid IMSI code (XXXXXXXXXXXXXXX) from file (Tue Aug 17 13:28:05 2010) DAEMON: authorized IMSI code found (Tue Aug 17 13:28:05 2010) DAEMON: smscon autoloads at boot
The current functions are: reboot, shutdown, show remaining battery charge, send current gps coordinates, send frontcam picture to my own server, set up ssh connection with available connection (WLAN/GPRS) to my own server)
![]() |
2010-08-18
, 18:43
|
Posts: 45 |
Thanked: 17 times |
Joined on Mar 2010
|
#38
|
![]() |
2010-08-18
, 19:10
|
Posts: 26 |
Thanked: 11 times |
Joined on Nov 2009
|
#39
|
Don't take this the wrong way, but why are you using .zip files? The better way to do it would be with tar:
tar cvjf thief-be-found.tar.gz /etc/event.d/banana /usr/sbin/sms*
Which would package them all up in a friendly manner so a user can unpack with this:
tar xvjf thief-be-found.tar.gz -C /
No need for changing directories or chmod.
![]() |
2010-08-18
, 19:16
|
Posts: 45 |
Thanked: 17 times |
Joined on Mar 2010
|
#40
|
My GPS icon appears. it's flashing, but no solid connection after 1 minute