转:http://letsunlockiphone.guru/find-imsi-number/

HOW TO FIND IMSI NUMBER (UPDATED)

You probably already know about possibility to unlock your iPhone on any firmware version and any baseband using SAM unlock. It’s really working method, and involves some skills like knowing IMSI number of your device. We will now try to explain what it is and where to find it.

Let’s start form the very beginning. Subscriber Identification Module (SIM) is a chip that stores:

  • International Mobile Subscriber Identity (IMSI)
  • ICCID – unique serial number
  • Security authentication and ciphering information
  • Info that is stored temporarily and sent to your local network
  • List of services available for user
  • Personal identification number (PIN)
  • Personal unblocking code (PUK)
 

How it works: your iPhone sends IMSI number to the network while registering. IMSI number is exactly the thing that allows network hardware to identify the subscriber. To avoid the interception IMSI is sent as rarely as it is possible. Sometimes instead of IMSI the phone sends TMSI (temporarily generated code for mobile subscriber identity).

Be careful not to confuse IMSI and IMEI (which stands for International Mobile Equipment Identity – 15-digit number unique for every phone on GSM and UMTS). IMEI is also sent to the carrier by registering in network. IMEI can be easily used for tracking phones and blocking stolen ones on carrier level.

So let’s see, you know about SAM unlock, you’ve downloaded it and installed on your device but you’re unable to find your IMSI (or don’t know what it is at all), then just continue reading. IMSI is International Mobile Subscriber Identity – a unique SIM card number. This is NOT a feature or a function of your phone . It consists of  15 digits that can be splitted in three categories:

  • MCC (Mobile Country Code) – first three digits of IMSI code
  • MNC (Mobile Network Code) – fourth and fifth for EMEA countries (Europe, the Middle East and Africa) or fourth, fifth and sixth digits in the code for the other (NAR) countries
  • MSIN (Mobile Station Identification Number) – the last 9/10 digits of the code

IMSI NUMBER FOR EMEA COUNTRIES LOOKS LIKE THIS:

IMSI NUMBER FOR NAR COUNTRIES:

The MCC and MNC digits from 1 to 5/6 (red and yellow on the images) show the network. Subsets and regional operators can be calculated by last 9 or 8 digits (blue and yellow) aka MSIN.

Where is IMSI stored locally: all the IMSI bundles are stored in /System/Library/Carrier Bundles. For instance, if you use AT&T SIM card, his name will be ATT_US.bundle var/mobile/Library/Carrier Bundles. The iOS will also create shortcut to that folder which will look like this: var/mobile/Library/Carrier Bundle.bundle.

To find your iPhone’s IMSI number you can use two methods. One is to check IMSI by running minicom in your terminal and typing in:

AT+CIMI

then press enter and you’ll see your IMSI number.

The second method fits SAM unlock better. Run installed SAM app on your iPhone and go to More Information->IMSI under SIM Details submenu. You’ll see a 15-digit IMSI code that corresponds to your SIM card. That’s it.

IMPORTANT! HOW TO FIND YOUR CARRIER WITHIN IMSI:

  • When you have that number just check iPhone operator
  • Type it in to the field called Enter IMSI number
  • It will show your SIM carrier’s country, operator, your MCC and MNC

ATTENTION: If you’ve already detected your iPhone’s IMSI (Country, carrier and Mobile Station Identificator Number) but it isn’t listed in SAM’s By Country and Carrier activation list, or know your IMSI number but don’t know your carrier then check out my FULL IMSI list of international carriersto unlock iPhone with SAM.

How to enter your IMSI number to By Country and Carrier activation method:

Let’s say your IMSI is 234150829435109.  The digits stand for:

  • Country - 234- UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND
  • Carrier – 15 – VODAFONE LTD
  • SIM ID – 23415
More questions? Please comment below!
 
Update: Now you know the network to which your iPhone locked, so check this operators IMEI unlock list and find your carrier for free unlock!

iphone下获取:

#include <dlfcn.h>

#define PRIVATE_PATH  "/System/Library/PrivateFrameworks/CoreTelephony.framework/CoreTelephony"

- void getImsi(){

#if !TARGET_IPHONE_SIMULATOR
void *kit = dlopen(PRIVATE_PATH,RTLD_LAZY);
NSString *imsi = nil;
int (*CTSIMSupportCopyMobileSubscriberIdentity)() = dlsym(kit, "CTSIMSupportCopyMobileSubscriberIdentity");
imsi = (NSString*)CTSIMSupportCopyMobileSubscriberIdentity(nil);
dlclose(kit); UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"IMSI"
message:imsi
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
[alert release];
#endif
}
NSString *imsi = CTSIMSupportCopyMobileSubscriberIdentity();

NSString *userMobileType = [StatisticsOperation getCarrier:imsi];
getCarrier 方法如下
+ (NSString *)getCarrier:(NSString *)imsi { if (imsi == nil || [imsi isEqualToString:@"SIM Not Inserted"] ) {
return @"Unknown";
}
else {
if ([[imsi substringWithRange:NSMakeRange(0, 3)] isEqualToString:@"460"]) {
NSInteger MNC = [[imsi substringWithRange:NSMakeRange(3, 2)] intValue];
switch (MNC) {
case 00:
case 02:
case 07:
return @"China Mobile";
break;
case 01:
case 06:
return @"China Unicom";
break;
case 03:
case 05:
return @"China Telecom";
break;
case 20:
return @"China Tietong";
break;
default:
break;
}
}
}
return @"Unknown"; }

android下获取:

        TelephonyManager tm = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);
String imei = tm.getDeviceId(); //取出IMEI
String tel = tm.getLine1Number(); //取出MSISDN,很可能为空
String ICCID =tm.getSimSerialNumber(); //取出ICCID
String imsi =tm.getSubscriberId(); //取出IMSI

参考http://www.oschina.net/code/snippet_99237_46665

http://letsunlockiphone.guru/global-imsi-list-number/

最新文章

  1. App Framework $.ui.loadContent 参数解释
  2. Leetcode: Validate IP Address
  3. eclipse 导入web项目后,线程假死
  4. axure rp pro 7.0(页面原型工具)
  5. 【BZOJ】【1211】【HNOI2004】树的计数
  6. Java多线程——线程同步
  7. N!水题
  8. ulimit -c unlimited
  9. wireshark教程
  10. iostextField文本框基本使用
  11. 讨论LSTM和RNN梯度消失问题
  12. COGS 1299. bplusa【听说比a+b还要水的大水题???】
  13. 配置struts2拦截器
  14. vue的风格指南(强烈推荐)
  15. win10免安装版本的MySQL的下载安装和配置
  16. 小程序swiper 滑块视图容器
  17. 文件操作fopen
  18. [Jenkins Git] 在Jenkins上拉代码总是失败,跑去本地看,提示输入用户名和密码,但是Jenkins上已经配置了正确的用户名和密码
  19. JavaScript之简易http接口测试工具网页版
  20. [leetcode]2. Add Two Numbers.cpp

热门文章

  1. day004-Map类
  2. ASP.NET 上传图片到FTP
  3. PDO链式操作——针对关键字出现问题的解决方案
  4. Facebook interview problem:13. Roman to Integer
  5. 1.10 从表中随机返回n条记录
  6. ABI与编译器:ABI是由内核和工具链定义和实现的
  7. python 3+djanjo 2.0.7简单学习(四)--Django视图
  8. Matlab将矩阵保存为图像
  9. C#操作Word,写数据,插入图片
  10. jQuery 二级联动