关于移动,联通,电信的区分。

阅读 70 收藏 0 点赞 0 评论 0

本文内容纲要:

最近需要对移动,联通,电信进行区分,对区分方法做了下整理。

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

2Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5

3Mozilla/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)

4Opera/9.80 (Windows NT 5.1; U; zh-cn) Presto/2.5.24 Version/10.53

5Mozilla/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)

6Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.7 Safari/533.4

7MAUI WAP Browser

8Mozilla/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)

9Nokia7610/2.0 (5.0509.0) SymbianOS/7.0s Series60/2.1 Profile/MIDP-2.0 Configuration/CLDC-1.0

10Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4

11NokiaN93-1/20.0.041

12MAUI_WAP_Browser

13Mozilla/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)

14GIONEE-I9/SW1.0.0/WAP2.0

15UNTRUSTED/1.0

16Mozilla/4.0

17MAUI_WAP_Browser, MyWireless_WAP

18NokiaN73-2/3.0-630.0.2 Series60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1

19Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; QQDownload 1.7; InfoPath.1)

20Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; MAXTHON 2.0)

这是采集的一些样本。

以后备用

本文内容总结:

原文链接:https://www.cnblogs.com/henq/archive/2010/06/01/1748988.html
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号