Esempio n. 1
0
 private string generateParam()
 {
     Random rand = new Random();
     CPUModel cpu = Constant.cpus[rand.Next(Constant.cpus.Length)];
     Carrier carr = new Carrier();
     Device dev = Constant.devices[rand.Next(Constant.devices.Length)];
     this.mac = GenerateMethod.getMac();
     this.sha1mac = GenerateMethod.sha1Mac(this.mac);
     StringBuilder paramSB = new StringBuilder();
     paramSB.Append("maxc=" + cpu.Maxc);
     paramSB.Append("&mcc=" + carr.Mcc);
     paramSB.Append("&dev=" + this.sha1mac);
     paramSB.Append("&curc=" + cpu.Curc);
     paramSB.Append("&lng=" + GenerateMethod.getLng());
     paramSB.Append("&mac=" + this.mac);
     paramSB.Append("&bss=" + GenerateMethod.getBssid());
     paramSB.Append("&lac=" + GenerateMethod.getLac());
     paramSB.Append("&md=" + dev.Md);
     paramSB.Append("&minc=" + cpu.Minc);
     paramSB.Append("&sv=3.0.4");
     paramSB.Append("&mnc=" + carr.Mnc);
     paramSB.Append("&mf=" + dev.Mf);
     paramSB.Append("&dpi=" + dev.Dpi);
     paramSB.Append("&pnam=" + this.gameInfo.Pnam);
     paramSB.Append("&key=" + this.gameInfo.Key);
     paramSB.Append("&lat=" + GenerateMethod.getLat());
     paramSB.Append("&op=" + carr.Op);
     paramSB.Append("&sr=" + dev.Sr);
     paramSB.Append("&imei=" + GenerateMethod.getImei());
     paramSB.Append("&cpu=" + cpu.CpuName);
     paramSB.Append("&as=" + this.gameInfo.AsId);
     paramSB.Append("&pkg=" + this.gameInfo.Pkg);
     paramSB.Append("&did=" + GenerateMethod.getDid());
     paramSB.Append("&cid=" + GenerateMethod.getCid());
     paramSB.Append("&ct=" + GenerateMethod.getCt());
     paramSB.Append("&ppv=" + this.gameInfo.Ppv);
     paramSB.Append("&ch=");
     paramSB.Append("&imsi=" + GenerateMethod.getImsi(carr));
     paramSB.Append("&ac=40#anchor");
     return paramSB.ToString();
 }
Esempio n. 2
0
 public static string getImsi(Carrier op)
 {
     // IMSI
     return op.Mcc + op.Mnc + getNumByLength(10);
 }