maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] SMScon (control your device with SMS) (https://talk.maemo.org/showthread.php?t=60729)

psycon 2012-11-28 16:43

Re: [Announce] SMScon (control your device with SMS)
 
how do you get out of stolen mode?

Garrett_PL 2012-11-28 16:54

Re: [Announce] SMScon (control your device with SMS)
 
Send the right command - before You do so authenticate SIM Card. I'm not sure now but the authentication might be enough. Read the "Owners manual" as well.

yablacky 2012-11-28 17:15

Re: [Announce] SMScon (control your device with SMS)
 
Stolen Mode = not a single SIM is authenticated.

Provided you entered the correct device lock code and are able to operate the phone, you need to authenticate the SIM that is currently inserted. Use SMSCON Editor to do so (you need the editor password, of course) or enter this command in xterm:
Code:

smscon -add imsi
If the device is locked and you don't have the right code to unlock it, but are lucky to have had installed sshd once before, you might try login via ssh (you need a password here, too) and enter the above command.

psycon 2012-11-28 19:23

Re: [Announce] SMScon (control your device with SMS)
 
got it thanks. ahh didnt see the authorize sim button in the editor..


and to buddy who says RTFM, umm have u read it.. the wiki needs to be updated, it mentions that stolen mode doesnt exist yet... but thanks for your awesome input.

yablacky 2012-11-28 21:50

Re: [Announce] SMScon (control your device with SMS)
 
the wiki refers to the version in current extras repository (0.9.17-1). In that version there was really no stolen mode yet. Stolen mode has been first introduced with version 0.10.6-1 which is stil extras devel.
Time has gone and we should promote it and update the wiki - that's right....

Mr. Incredible 2012-12-16 01:05

Re: [Announce] SMScon (control your device with SMS)
 
I have a problem with smscon I think.
My N900 accidently lost the connection to my SIM card and rebooted. Now smscon was thinking no SIM card was inserted and now don't even let me enter a PIN code. The part where I enter the PIN code is missing. It it still booting to desktop. I have root access and can access the smscon editor.
Please help me!

Edit:
I did "smscon -reset -del script -del config" as root but it is still locked and sending "Stolen" mails to my mail adress.

Edit2:
Even reflashing FIASCO and eMMC images didn't solve the problem!
LOL, it is still sending mails... :confused:

I could SSH onto the N900 and delete specific files if I knew where they were.

Edit3:
I have the feeling smscon disabled the functionality to load the SIM card somewhere in the system of maemo...

sixwheeledbeast 2012-12-16 09:10

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by Mr. Incredible (Post 1304911)
I have a problem with smscon I think.
My N900 accidently lost the connection to my SIM card and rebooted. Now smscon was thinking no SIM card was inserted and now don't even let me enter a PIN code.

It seems your SMSCON was setup to lock on unauthorized sim.

At this point I expect a full reflash without restoring is the best way to get your device working.

If you are restoring a backup and the SIM is still not there it will treat the device as stolen again.


Not sure what state your device is in at the moment but if you can get to a terminal have you tried "smscon -stop" or see what's happening with "smscon -log"

Mr. Incredible 2012-12-16 11:55

Re: [Announce] SMScon (control your device with SMS)
 
Whats a full reflash?

I flashed my N900 in Windows with FIASCO and eMMC images. No backup.

sixwheeledbeast 2012-12-16 12:02

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by Mr. Incredible (Post 1305011)
Whats a full reflash?

I flashed my N900 in Windows with FIASCO and eMMC images. No backup.

If you have reflashed combined and eMMC then the only thing left should be the lock code AFAIK. SMSCON shouldn't be there at all.

Mr. Incredible 2012-12-16 13:29

Re: [Announce] SMScon (control your device with SMS)
 
As I said. I flashed both images. SMSCON was still somewhere on my phone or at least it's settings. I think it's messing with the network severices somehow. But I did not figure out how.

yablacky 2012-12-17 19:17

Re: [Announce] SMScon (control your device with SMS)
 
I think there is no re-flash required. Just try to de-install smscon editor (because it depends on smscon) and then de-install smscon.

After de-installation you may even check if directory /opt/smscon exists and delete it.

Before doing all this, you might give a look at "Phone Settings" -> "Connection Settings" -> "Phone" -> scroll to the bottom to "SIM Card" and check if you selected "PIN code required". (the real english words my be different)

Mr. Incredible 2012-12-18 00:06

Re: [Announce] SMScon (control your device with SMS)
 
Yeah, I did all this but no success. I have the exact problem as here http://forum.gsmhosting.com/vbb/archive/t-1294745.html
"Unable to establish network connection. Contact service"

I think smscon is messing with the internal security of the phone. Seems to be corrupted simlock area.

Question to the developers: What exactly is smscon doing when it switches on the "stolen mode"? Does it write somewhere on the phone where reflashing is useless?

yablacky 2012-12-20 09:09

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by Mr. Incredible (Post 1305545)
Yeah, I did all this but no success. I have the exact problem as here http://forum.gsmhosting.com/vbb/archive/t-1294745.html
"Unable to establish network connection. Contact service"

Its exactly whats been said in the message. Its not an issue of smscon.

Quote:

Originally Posted by Mr. Incredible (Post 1305545)
I think smscon is messing with the internal security of the phone.

As fas as software is concerned this is true. It's what smscon has been developed for. If you had in mind to modify hardware or security-related controller chips: definitely not.

Quote:

Originally Posted by Mr. Incredible (Post 1305545)
Seems to be corrupted simlock area.

May be your phone has a hardware problem. May be its a problem with your provider. Its definitely not a smscon issue. Please deinstall smscon. Without smscon you may have better chance to find reason of problem with your phone.

Quote:

Originally Posted by Mr. Incredible (Post 1305545)
Question to the developers: What exactly is smscon doing when it switches on the "stolen mode"? Does it write somewhere on the phone where reflashing is useless?

No, it doesn't. IN NO CASE smscon writes somewhere on the phone where reflashing is useless. Switching to stolen mode simply erases the list of authorized SIM cards. This is a list introduced and maintained by smscon. The original phone does not know nor depend on this list.

handaxe 2012-12-20 10:33

Re: [Announce] SMScon (control your device with SMS)
 
@Mr. Incredible: just to clarify. If you reflashed fiasco and emmc then smscon should not be present. If it is then the reflash failed - AFAIK it should be clean slate system.
The lack of a pin request may well be the result of the sim card reader failure that started this - the fault may persist If the phone does not detect a sim then no pin request and it enters tablet mode.

starghost 2013-03-20 16:17

Re: [Announce] SMScon (control your device with SMS)
 
This info may be of interest for some other users of smscon. Until yesterday I never managed to send emails from SMScon to my email account. I use a google mail account for that purpose. But then I tried to change the port of the smtp outgoing mail server from 465 to 587 and SMScon had success in sending out emails. :)

willi6868 2013-10-03 10:57

Re: [Announce] SMScon (control your device with SMS)
 
Well not anybody ported SMScon to Harmattan but is someone going to port this feature-rich and cost-saving app to Sailfish Os or at least some alternative tracking-app (for non-android-app-user) ?! :confused:

Kabouik 2013-12-20 12:37

Re: [Announce] SMScon (control your device with SMS)
 
Jolla is out, so it's time to bump willi6868's question. Is someone porting that to Sailfish? This is one of the most useful applications in Maemo, I'd like to see it on the grand-children OS too!

chill 2014-01-13 02:21

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by starghost (Post 1330321)
This info may be of interest for some other users of smscon. Until yesterday I never managed to send emails from SMScon to my email account. I use a google mail account for that purpose. But then I tried to change the port of the smtp outgoing mail server from 465 to 587 and SMScon had success in sending out emails. :)

I've tried 465, 587 and 25 (using the Test Email function in SMSCON Editor), and no email was received at my gmail inbox. I used the same gmail username for both "address" and "email from" fields in the email settings in SMSCON Editor.:confused:

EDIT: it works now, see a few posts below. Not sure why it does and it didn't before.

sixwheeledbeast 2014-01-13 12:04

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by chill (Post 1406014)
I've tried 465, 587 and 25 (using the Test Email function in SMSCON Editor), and no email was received at my gmail inbox. I used the same gmail username for both "address" and "email from" fields in the email settings in SMSCON Editor.:confused:

I don't think I had any trouble, though it wasn't a gmail account.
Could it be a Firewall issue?

chill 2014-01-13 18:14

Re: [Announce] SMScon (control your device with SMS)
 
Ya, I suspected so too, so I tried from different networks, Wifi, 3G...But if it is a firewall issue, then the feature is unfortunately of little use to me, as the phone can't be expected to physically move to a non-firewalled network, if any.

I've triple-checked my credentials, etc.

ZedThou 2014-01-13 18:16

Re: [Announce] SMScon (control your device with SMS)
 
It is odd, smtp.gmail.com port 587 works for me.

chill 2014-01-13 20:04

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by ZedThou (Post 1406169)
It is odd, smtp.gmail.com port 587 works for me.

Did you use the same address to send to and send from?

Also, did you use the Send Test Email function from SMSCON Editor or you actually had SMSCON send e.g. GPS coordinates?

ZedThou 2014-01-13 20:19

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by chill (Post 1406200)
Did you use the same address to send to and send from?

Also, did you use the Send Test Email function from SMSCON Editor or you actually had SMSCON send e.g. GPS coordinates?

I'm using the same to/from addresses, and only tested by sending email, and email with photo.

chill 2014-01-13 20:28

Re: [Announce] SMScon (control your device with SMS)
 
It works now! I don't know what I did to make it work. I changed to another "to" address, and it work; but I had tried that before and it didn't work. It now works with the same "to" and "from" as well.

It doesn't seem to work with port 465, only 587.

chill 2014-01-13 21:25

Re: [Announce] SMScon (control your device with SMS)
 
Some more reporting:

The log reader, which worked at first, now displays only a blank page.

The Test Email with picture shows a banner suggesting a picture should have been sent, but the camera orange LED actually comes on only a few seconds later, indicating the picture was not sent yet. Maybe change the banner to say "will be sent"?

chill 2014-01-14 08:24

Re: [Announce] SMScon (control your device with SMS)
 
The log file contains the SSH server's and the SMTP server's passwords (after they are entered by the user) in plain text.:eek:

sixwheeledbeast 2014-01-14 18:06

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by chill (Post 1406303)
The log file contains the SSH server's and the SMTP server's passwords (after they are entered by the user) in plain text.:eek:

Well I have just gone to check my settings and log to find SMSCON fails to load it's settings file, even though it is still there. Was working ok last time I checked.

I thought most of the log file passwords where encrypted TBH.

chill 2014-01-14 21:42

Re: [Announce] SMScon (control your device with SMS)
 
It looks like the passwords, hostnames and SMS commands are encrypted in the settings file, but in the log file nothing is encrypted.

I am thinking of writing a shell script to remove the sensitive lines from the log file, and running it periodically.

sixwheeledbeast 2014-01-14 22:11

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by chill (Post 1406445)
It looks like the passwords, hostnames and SMS commands are encrypted in the settings file, but in the log file nothing is encrypted.

I am thinking of writing a shell script to remove the sensitive lines from the log file, and running it periodically.

I have just reinstalled it, I think my older settings may have become incompatible somehow with the newest release.

BTW the log and settings are encrypted, but they are decrypted for the "log reader". You can only access this after putting in your password.
Its done to help debug any issues I guess.

chill 2014-01-14 22:21

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by sixwheeledbeast (Post 1406454)
BTW the log and settings are encrypted, but they are decrypted for the "log reader". You can only access this after putting in your password.
Its done to help debug any issues I guess.

I can't see the log in the log reader, it just shows a blank page.

So I log in as root, and then read the log in (this is a different 'log in' now :D sorry couldn't help it) BusyBox using more. This shows lines like 'Updated user setting "PASSWORD" (chillspassword)'

Since I can read it without the log reader, it's not really encrypted and then decrypted for the log reader, right?

sixwheeledbeast 2014-01-14 22:58

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by chill (Post 1406455)
Since I can read it without the log reader, it's not really encrypted and then decrypted for the log reader, right?

Yep, fair comment.
Seems pointless to go to the effort of encrypting things if they are stored in plain text somewhere I agree.
As root I can read /opt/smscon/smscon.log in plain text with all information shown too.

One issue you may have is causing SMSCON to misbehave if you edit it's files. Especially if you have the GUI open while editing, this in my past experience causes havoc to the settings file.

An alternative option is possibly to set a root password so you have to enter a password to get root.

http://wiki.maemo.org/User:Joerg_rw/...6p_to_shell.29

chill 2014-01-15 06:05

Re: [Announce] SMScon (control your device with SMS)
 
Is it possible to change the code so it doesn't log passwords (and maybe usernames and hostnames)?

Saturn 2014-01-15 23:35

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by chill (Post 1406525)
Is it possible to change the code so it doesn't log passwords (and maybe usernames and hostnames)?

Hi, you can read the logs only as root..

Nevertheless, the majority of the sensitive info is stored after usage of the editor application.
I propose when you complete your edits and close the editor application or in regular intervals you can execute the following as user to delete all logs:
Code:

smscon -del log
One other way of course is to modify the code. There are some flags you can set to disable logging.

chill 2014-01-21 04:21

Re: [Announce] SMScon (control your device with SMS)
 
Can you please point us to the latest version of the code?

Kabouik 2014-01-21 08:46

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by Kabouik (Post 1399101)
Jolla is out, so it's time to bump willi6868's question. Is someone porting that to Sailfish? This is one of the most useful applications in Maemo, I'd like to see it on the grand-children OS too!

Anyone is planning on porting SMScon to Sailfish?

sixwheeledbeast 2014-01-21 18:39

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by chill (Post 1407831)
Can you please point us to the latest version of the code?

http://repository.maemo.org/extras-d....10.9-1.tar.gz

Saturn 2014-01-22 18:00

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by sixwheeledbeast (Post 1408003)

If you prefer, the SVN repo is here:
https://garage.maemo.org/scm/?group_id=1848

Saturn 2014-01-23 11:18

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by Kabouik (Post 1407862)
Anyone is planning on porting SMScon to Sailfish?

I would love to if had more time. So, no plans to do that for the moment.
This might be interesting though:
https://together.jolla.com/question/...tect-my-jolla/

Kabouik 2014-01-23 19:27

Re: [Announce] SMScon (control your device with SMS)
 
Thanks a lot! Really hope you'll find time, SMScon is extremely powerful and versatile, even though Jolla's plans seem good too (thanks for the link by the way).

chill 2014-01-31 21:01

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by Saturn (Post 1406749)
Hi, you can read the logs only as root..

Nevertheless, the majority of the sensitive info is stored after usage of the editor application.
I propose when you complete your edits and close the editor application or in regular intervals you can execute the following as user to delete all logs:
Code:

smscon -del log
One other way of course is to modify the code. There are some flags you can set to disable logging.

If I may go back to the subject again...In Reverse SSH, changing a field other than the server password will cause all the settings, including the password in plain text, to be written to the log file.

So deleting the log file will not help if you subsequently change e.g. the port number; the username and password will be recorded in the (fresh) log file.

Just thought I'd warn the users.


All times are GMT. The time now is 23:20.

vBulletin® Version 3.8.8