Active Topics

 



Notices


Reply
Thread Tools
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#1
This is what I get when trying to run package vectormine (asteroid-shooting game from repositories) on a device with "all telephony functions disabled" error:

Traceback (most recent call last):
File "/opt/vectormine/vectormine.py", line 1505, in <module>
main()
File "/opt/vectormine/vectormine.py", line 1490, in main
for index,num in enumerate(str(GetImei())):
File "/opt/vectormine/vectormine.py", line 81, in GetImei
return rpc.rpc_run('com.nokia.phone.SIM', '/com/nokia/phone/SIM/security', 'Phone.Sim.Security', 'get_imei', (), True, True)
File "rpc.pyx", line 73, in osso.rpc.Rpc.rpc_run (osso/rpc.c:2219)
File "helper.pyx", line 65, in osso.rpc._set_exception (osso/rpc.c:1316)
osso.exceptions.OssoRPCException: The name com.nokia.phone.SIM was not provided by any .service files
One thing I'm sure about - no python game about shooting asteroids should get any info about our IMEI or SIM status. Heck, in most countries, it is even illegal to collect such information from other people's devices.

Now, the question is - is it just written sincerely, just using worst coding practices possible ever, or have some malicious purpose? I will refrain from commenting, until people more fluent in python check pointed sources and determine it.

Cheers,
/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 2014-08-02 at 15:11.
 
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#2
Originally Posted by Estel View Post
One thing I'm sure about - no python game about shooting asteroids should get any info about our IMEI or SIM status. Heck, in most countries, it is even illegal to collect such information from other people's devices.
First it smells like getting some information but I had a closer look at the code (I am no Python expert), and it seems like these are some rudimental left overs for check software registration with a serial code and the IMEI. In my eyes senseless in python because you can change the code. It is still active. Maybe he wanted to sell serial numbers and for the generation you need to send your IMEI?

Were you able to play when your antenna is on?

To disable this procedure you can try to remove from the "def main():" follow lines.

Code:
    LoadSerial()
    global REGISTERED
    code = 0
    for index,num in enumerate(str(GetImei())):
      code = code + (int(num)+(index*index)) * (index*index)
    LoadSerial()
    if serial_code == hex(code):
and in "def RegisterMenu(screen):" remove:
Code:
 
    global IMEI
    IMEI = str(GetImei())
    .
    ..
    ...
    ren = font.render(("Identify number : %s"%(IMEI)), 1, (255,255, 255))
        screen.blit(ren, (390-ren.get_width()/2, 260))

        code, done = SerialCode(screen, font, events)
        if done:
            SaveSerial()
            return

To remove everything related to IMEI and serial you need to remove also following functions:

def GetImei():
def LoadSerial():
def SaveSerial():
def SerialCode(screen, font, events):

Last edited by Halftux; 2014-08-02 at 08:31.
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Posts: 75 | Thanked: 269 times | Joined on Aug 2012
#3
You'd also probably want to remove all the places where it mentions REGISTERED.

Try replacing '/opt/vectormine/vectormine.py' with the one I've attached. I just commented out all the stuff about register and IMEI. I'm definitely not a python expert either but it does run.
Attached Files
File Type: tar vectormine.tar (52.0 KB, 65 views)
 

The Following 2 Users Say Thank You to Ilew For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#4
Registration that is tied to the device - be it through the IMEI or any other way - is a Bad Idea™ anyway if you ask me. Devices break, get passed on, sold, lost or stolen. If you really want registration, tie it to the user, not the device.
 

The Following 5 Users Say Thank You to pichlo For This Useful Post:
Reply

Tags
vector mine, vectormine


 
Forum Jump


All times are GMT. The time now is 10:46.