Any ideas how to get ICCID? - Windows Mobile Development and Hacking General

Does anyone have any experience of obtaining the ICCID on a windows mobile device?
The ICCID is the number printed on the actual SIM (It is also stored on the SIM), it is not the IMSI number I am after which is also stored on the SIM.
There is software about to find this information if you have the SIM in a SIM card reader on a PC but I want to be able to gather that info on the actual device.
It is for asset tracking purpose of SIM's we use. As we use lots of them in many devices.
Any help would be appreciated. Either if you can point me in the direction of an API that could help or some Visual Studio code that we could call to obtain the number.
Richard

Related

Change IMEI No in MS Win 2003 without changing Radio stack ?

Could someone code an IMEI modifying program that modifies the IMEI in Windows 2003 ?
For instance: I currently have a "Windows MAC Address Modifying Utility" that enables me to modify the MAC address in Windows 2000(on the fly - without a reboot) so each time I connect to the Net, the ISP sees a different MAC connection(I am a security nut!)
As I understand it, the IMEI no. is stored in the Radio Stack, but it is eventually passed on to Windows as the connection/call is made. It would seem logical that this IMEI is stored somewhere in Windows(like the MAC Address) & hence should NOT be too hard to modify.
I am a C/C++ coder but I haven't done any coding for the XDA as yet.
I have an XDA mini.
BTW: For all those people that keep posting that changing the IMEI is illegal, my mini is NOT stolen & I do not live in a country where changing the IMEI is illegal(I will let you figure out where that is
I want to change the IMEI easily, so each time I purchase a new Pre-Paid, it will show up as a New connection & NOT a reused phone !!
Again, nothing illegal... I just live under a dictatorship government
!
Regards,
John
Re: Change IMEI No in MS Win 2003 without changing Radio sta
asdzxc said:
As I understand it, the IMEI no. is stored in the Radio Stack, but it is eventually passed on to Windows as the connection/call is made. It would seem logical that this IMEI is stored somewhere in Windows(like the MAC Address) & hence should NOT be too hard to modify.
Click to expand...
Click to collapse
You can easily change the IMEI number that is seen by Windows by intercepting the AT-commands coming to GSM stack. But IMEI transmitted over radio will be the original one. Windows knows nothing about GSM signals, encoding, etc. Everything is processed by the specialized CPU that runs its own OS, has its own ROM and RAM. It communicates with windows over the internal COM-port like a normal modem.
The only way to modify IMEI is to patch GSM ROM. There are 2 methods - flash the security block or patch the code that reads IMEI from it.
Re: Change IMEI No in MS Win 2003 without changing Radio sta
mamaich said:
The only way to modify IMEI is to patch GSM ROM. There are 2 methods - flash the security block or patch the code that reads IMEI from it.
Click to expand...
Click to collapse
Hi mamaich,
thnx for that prompt reply
As I understand it(plz correct me if I am wrong) is that "XDAmanipulator" patches the code that reads the IMEI.
In the 'flashing the security block', is that what is commonly done with those hardware type flashers like for the Nokia et al mobile phones.
I read on another forum that the hardware flashes just set the IMEI of the XDA to 000..
Sorry if I am rambling on, but is there a hardware flasher(or software) that enables you to set the IMEI in the security block ?(for the MINI or XDAII)
I know in the latest NOKIA's, they have made the eprom chips 'write once' so the IMEI cannot be flashed!
Any help is greatly appreciated!
Regards,
John
Re: Change IMEI No in MS Win 2003 without changing Radio sta
I know nothing on changing the imei in XDAs and was never interested in this. Anyway changing the IMEI for security reason is useless, operator uses IMSI to identify you. The only reason for changing IMEI is hiding the stolen phone or overcoming some limitations made by operator. As I work in a cellular industry, I think that both is illegal.
Re: Change IMEI No in MS Win 2003 without changing Radio sta
mamaich said:
Anyway changing the IMEI for security reason is useless, operator uses IMSI to identify you. The only reason for changing IMEI is hiding the stolen phone or overcoming some limitations made by operator.
Click to expand...
Click to collapse
Sorry mamaich, but if you work in the telco industry then you don't seem to know much...
IMSI is used to identify the user on the network, but the IMSI is matched against the IMEI ... usually to stop cloning of sims .. but also to track users...
By changing the sim card(IMSI) the network can still identify you by the mobile in which the sim card is inserted(IMEI).
To conclude, changing the IMEI is NOT useless for security. You just don't seem to understand how the GSM network works or you have never been inside the section that relates to network monitoring...
Below is an explanation that may help you in your day job.
BTW: I thought anything was the go in Russia
For your educational learning:
#########################
1)
IMEI (International Mobile Equipment Identity):
is a unique 15-digit code used to identify an individual GSM mobile station to a GSM network.
The IMEI is stored in the Equipment Identity Register (EIR).
2)
International Mobile Subscriber Identity (IMSI) Number:
The IMSI is a unique non-dialable number allocated to each mobile subscriber in the GSM system that identifies the subscriber and his or her subscription within the GSM network. The IMSI resides in the Subscriber Identity Module (SIM), which is transportable across Mobile Station Equipment (MSE). The IMSI is made up of three parts (1) the mobile country code (MCC) consisting of three digits, (2) the Mobile Network Code (MNC) consisting of two digits, and (3) the Mobile Subscriber Identity Number (MSIN) with up to 10 digits.
#########################
Regards,
John
Re: Change IMEI No in MS Win 2003 without changing Radio sta
in russia most operators don't read IMEI of phones. They only check IMEIs on government requests.
Re: Change IMEI No in MS Win 2003 without changing Radio sta
mamaich said:
in russia most operators don't read IMEI of phones. They only check IMEIs on government requests.
Click to expand...
Click to collapse
Where I am any person in the support section has direct access to look up a person's IMEI.
It is literally 2 clicks of the mouse in the user's admin section.
As any employee here can look it up, Gov & Law Enforcement don't even have to request a warrant to get that information.... as it is readily available on request...
... again, as you can easily change an IMEI on a normal mobile phone & as the eprom's are NOT 'write once' on the XDA Mini or II, surely there must be someway to easily change the IMEI no ?????
.... I would even pay for a hardware flasher.... if one exists ???
Regards
John
can we now change IMEI? is there any programs?
as far as i know then there were a program which could do it on xda1's with some radiostacks but not on xda2
also the gsm part of the xda's are not connected to windows ce
it's automaticly which is why it needs it's own firmware which is the radiostack so you cant really do a imei mask like you can with mac address
also you dont really change the mac address using those programs you just software mask it the mac is in hardware and cant be changed permently
Can JTAG do this imei changing?
Rudegar said:
as far as i know then there were a program which could do it on xda1's with some radiostacks but not on xda2
also the gsm part of the xda's are not connected to windows ce
it's automaticly which is why it needs it's own firmware which is the radiostack so you cant really do a imei mask like you can with mac address
also you dont really change the mac address using those programs you just software mask it the mac is in hardware and cant be changed permently
Click to expand...
Click to collapse
could you walked me thru on this?? really want to know how remap/change my imei..

SIM info

Hey ppl,
Im a new kid in programming for pocket PCs.. I use Visual Basic .net 2003.
Does a SIM contain any unique id..? Like IMEI for devices, does SIM card have any..? if yes , can u pls provide me an example solution file to read it..?
I read in msdn for reading SIM' phone number and service provider.. But the download sample was like an installation msi file as usual and after downloading that, it gave me a solution project which i already did..I tink something rong wit my PC..
If u cant make the example solution, can u atleast try opening this download sample in the link and send me the VB part alone zipped pls....?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfphoneapi.asp
Carty: I'm not sure if the SIM contains a unique identifier record, but it will generally hold the phone's telephone number of course. That should be fairly unique!
There is code somewhere on the board I think for reading sim records as an alternative way of recovering SIM SMSs. I imagine the same idea could be used to check for unique ID. But although possible, I don't know if it'd be more helpful then the easy to read telephone number.
V
String is not set
Vijay tanx for yr reply....
I finally made out tat sample to give me the correct project but now the simnumber is not showing up..
Actually in the form load event
'Blah = newSim.GetServiceProvider()
newSim.GetPhoneNumber()
the above was given and i added the line
msgbox(newSim.GetServiceProvider()) and it showed me the service provider
but the same i cldn do for
msgbox(newSim.Getphonenumber())
as it gives the error: Value type netcf.phoneaddress cannot be set to string. in the debug window
The code for getting those numbers are riten on different class called sms.vb
can u pls help me out wit that..
will this line
newSim.GetPhoneNumber()
alone, wld it notify with a number? im nt gettig any..can u download tat sample and test it? Pls help me..?
I'm afraid I have no experience with .net, but this is something that confused me for a long time. If there's no telephone number registered in the SIM, it won't collect it.
Read this:
http://www.wivit.com/products/FAQ_SSS.shtm
V
Every sim card has a unique ID, its used to identify the sim card on the network and is used when the phone is in use, because as you say not all sims have phone numbers. This would be ideal for your project, which by the way I would be very interested in. The bad news is that I have never done any programming for .Net CF so I don't know how you would accomplish that.
Hope I have been of some help.
Tats wot i need
SIM should contain a unique ID as argon says... Its the way the operator recognizes the SIM..
Anyone frm anywer cld pls help me out to read that unique ID from SIM card with VB.net.. I have no knowledge in C#
Lookin for replies...Tanx in advance..
Hi
Cant help you with the programming but the sim will not contain a phone number but will contain 2 separate numbers.
IMSI number, International Mobile Subscriber Identifier, unique number up to 15 digits long. the first few digits identify the country of issue and the next the network the fianal digits are the serial number for the network issuing the sim. When the phone makes a call to the BTS this data is sent using the COMP128 algorithm. This is vital as the both the Ki (personal encryption key) and the IMSI are used as a pair to authenticate the sim on the BTS.
It is believed that COMP128 was hacked some years ago but the industry has so far kept quiet about this and has not replaced the encryption system due to cost. But basically anyone with access to the hacked COMP128 algorithm can scan the IMSI and Ki and clone your sim.
Sorry for the Ramble, but the point here is there may be a breach of licence and copywrite if you attempt to read these details from the sim. As it could be argued that you were attempting to "clone" sim cards, which in most countries is a criminal offence.
Also beware about assisting people on this forum who are seeking help on this matter as there are a few virus writers who are rumoured to be compiling a worm like virus to read this detail from sims on windows mobile platforms and use these IMSI Ki pairs to commit major telecoms fraud. Basically they send the worm out there and it harvests the data and sends it back to them.
With this data they can create duplicates of your sim card and install these in GSM gws. These are then used to call expensive international numbers in large production enviroments using 100's of sims running 24 hours per day. These calls are them sold to large telecoms companies netting these people $10,000's per day.
Be careful guys.
Regards
Charlie
I din know that!!
Hey charlie, tanx for yr reply.. I did get something i never knew..

Looking for good security software for my Wizard

I am looking for some good security software to protect the confidential information on my Wizard. Basically I'm looking for something that can encrypt the SD card and the My Documents folder on the phone (preferably on the fly while I'm writing or reading the file) and also something that can remote lock / wipe the SD card and phone. I am not connected to an Exchange server so it will have to be a stand alone app.
Can anyone give suggestions of apps they are using and are happy with. I'm looking for something reliable. So far I've come across
Remote lock / wife software
RemoteProtect
mSafe
MobileSky Eraser
Encryption software
SplashID (Not really what I want but it looks useful to have too?)
SecuBox
FileBarricador
Any comments / suggestions welcome.
I use remote protect on my wizard. It sends info to another cell via text when a new sim has been inserted. It can be configured to wipe the whole phone and shut it down if the phone is lost or stolen. I've tested this using my friends sim card, and it sent a text message with the new sim card phone number listed, to my secondary number. So I had the phone number right there of who had my phone. I don't remember, but it may have also sent the imei number as well. It sits on your device and on your home pc (or work or whatever). From the pc you send a message to kill the device. From the device, if an incorrect password is entered when a new sim is inserted, it locks the phone out completely until the correct password is entered. I have gone in via active-sync and gone to Windows/StartMenu/Programs and deleted the icon, so if it is lost or stolen, it is not seen listed as remote protect in the programs. As for encrypting, don't use it, can't help you.
Thanks. I'll give RemoreProtect a try.
Just need to find something to encrypt some folders on the SD card and the device.
FreeOTFE4PDA for mobile device encryption
sunseaker said:
I am looking for some good security software to protect the confidential information on my Wizard. Basically I'm looking for something that can encrypt the SD card and the My Documents folder on the phone (preferably on the fly while I'm writing or reading the file) and also something that can remote lock / wipe the SD card and phone. I am not connected to an Exchange server so it will have to be a stand alone app.
Click to expand...
Click to collapse
FreeOTFE and FreeOTFE4PDA are the best you can get for encryption - it encrypts everything you store on your SD card, and there's a PC version do you can run it on your desktop as well as mobile device
Download from: http://www.FreeOTFE.org/

How to determine network type in software?

Wondering if anyone knows how to determine via WinMo C++ the cellular network type (GSM vs CDMA, 3G vs EVDO, etc etc) of the host device?
For example: Let's say I want to make a program that sends other people contact info, so I don't have to switch between messaging and phone book to make sure I have the number and name spelling correct... so instead I automate it. CDMA and GSM both have contacts stored in the operating system, but GSM/3G have contacts stored in the SIM card as well, and so I'd want to detect that the phone is a GSM device and not a CDMA device... that way I give my users access to contacts in the SIM.
Any ideas, besides trying to elicit a fault or error for functions that aren't yet implemented in CDMA versions of WinMo? Is there a function that you specifically call that will return "GSM", "CDMA", etc?
I don't really care about the version of WinMo... if anyone has an idea for one version, there are probably solutions that are similar for the others.

Scanning unmanaged memory via C#

I'm trying to scan the entire memory of the device for a given byte value. I use Marshall.ReadByte to read a byte at a given address and compare it with another byte variable to perform the search. The problem is that when I try scanning the app usually just crashes without even showing an error and Visual Studio says the connection to the device has been lost. It works ok only for a small number of memory addresses, but if I want for example to read a byte at address, say, FF, it will crash... It crashes on the emulator as well. I can't figure out how to do it. Maybe it's a security problem? I've lowered my device security from 1-Tier to no security with no success. Any help will be very appreciated
PS. In case you are wondering why I need that - I'm trying to get the Cell ID on a KS20. I tried all methods possible with no success (RIL_CellTowerInfo, RIL_DevSpecific, even connecting with the modem through the COM port). I know there's an app called GSMCelluloz which can perform such a memory search, but it requires a valid CellID and LAC and I have only the LAC code, so I have to write my own app.

Categories

Resources