最近需要对移动,联通,电信进行区分,对区分方法做了下整理。
1:按号段进行区分
联通:130,131,132,155,156
电信:133,153,189
移动:134,135,136,137,138,139,150,151,152,157,158,159,188
2:按IMSI进行区分:
protected int GetMobiType(string imsi)
{
var state = "";
if (!string.IsNullOrEmpty(imsi))
state = imsi.Substring(0, 5);
switch (state)
{
case "46000"://移动
return 1;
case "46007"://移动
return 1;
case "46002"://移动
return 1;
case "46001"://联通
return 2;
case "46003"://电信
return 3;
default://未知
return 0;
}
}
3:wap访问,大多是山寨机提取的样本。
Agent
1
2 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
3 Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
4 Opera/9.80 (Windows NT 5.1; U; zh-cn) Presto/2.5.24 Version/10.53
5 Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; 51Logon.com; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
6 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.7 Safari/533.4
7 MAUI WAP Browser
8 Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
9 Nokia7610/2.0 (5.0509.0) SymbianOS/7.0s Series60/2.1 Profile/MIDP-2.0 Configuration/CLDC-1.0
10 Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4
11 NokiaN93-1/20.0.041
12 MAUI_WAP_Browser
13 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
14 GIONEE-I9/SW1.0.0/WAP2.0
15 UNTRUSTED/1.0
16 Mozilla/4.0
17 MAUI_WAP_Browser, MyWireless_WAP
18 NokiaN73-2/3.0-630.0.2 Series60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
19 Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; QQDownload 1.7; InfoPath.1)
20 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; MAXTHON 2.0)
这是采集的一些样本。
以后备用