Esempio n. 1
0
 public void getwebipsnew(string sid, string subid)
 {
     try
     {
         string string_ = string.Format("http://123.207.144.61:8888/pro/88881");
         string str     = JsonConvert.SerializeObject(new prorequest
         {
             sid   = sid,
             subid = subid
         });
         str = MyEncrypt.AesEncryptor(str);
         string string_2 = JsonConvert.SerializeObject(new sendrequest
         {
             json = str
         });
         dynamic     val  = JsonConvert.DeserializeObject <object>(method_0(string_, string_2));
         List <myip> list = JsonConvert.DeserializeObject <List <myip> >(MyEncrypt.AesDecryptor((string)val.ret));
         if (list != null)
         {
             foreach (myip item in list)
             {
                 concurrentBag_0.Add(item);
             }
         }
     }
     catch
     {
     }
 }
Esempio n. 2
0
 public dynamic authgift()
 {
     try
     {
         string string_  = string.Format("{0}/newauth/12345", "http://119.29.84.129:8888");
         string string_2 = JsonConvert.SerializeObject(new authrequest
         {
             MDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
             MAC   = MyEncrypt.AesEncryptor(string_4)
         });
         return(JsonConvert.DeserializeObject <object>(method_0(string_, string_2)));
     }
     catch (Exception)
     {
         return(null);
     }
 }
Esempio n. 3
0
 private static void Main()
 {
     try
     {
         try
         {
             string path = Application.StartupPath + "\\WCache";
             if (!Directory.Exists(path))
             {
                 Directory.CreateDirectory(path);
             }
         }
         catch
         {
         }
         try
         {
             string path2 = Application.StartupPath + "\\PCache";
             if (!Directory.Exists(path2))
             {
                 Directory.CreateDirectory(path2);
             }
         }
         catch
         {
         }
         try
         {
             string path3 = Application.StartupPath + "\\Help";
             if (!Directory.Exists(path3))
             {
                 Directory.CreateDirectory(path3);
             }
         }
         catch
         {
         }
         try
         {
             string path4 = Application.StartupPath + "\\Help\\DSXH";
             if (!Directory.Exists(path4))
             {
                 Directory.CreateDirectory(path4);
             }
         }
         catch
         {
         }
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         DateTime  now  = DateTime.Now;
         string    info = HardwareInfo.GetInfo();
         checkinfo obj5 = new checkinfo
         {
             mac        = info,
             minitues   = 9999999,
             createtime = DateTime.Now
         };
         logtool.logauth(MyEncrypt.AesEncryptor(JsonConvert.SerializeObject(obj5)));
         Application.Run(new MainForm(obj5.minitues, now, true));
     }
     catch
     {
     }
 }