找回密码
 立即注册
查看: 103|回复: 0

星辰奇缘苹果端绑定域名解密方法

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:354
  • 打卡月天数:10
  • 打卡总奖励:1622
  • 最近打卡:2025-04-10 00:44:48

1074

主题

16

回帖

1090

积分

管理员

积分
1090
发表于 2025-3-27 14:51:19 | 显示全部楼层 |阅读模式

  • public void Connect(string address, int port)
  •         {
  •                 if (this.socket.Connected)
  •                 {
  •                         Debug.Log(string.Format("错误:重复建立Socke连接,重新连接时请先断开之前的连接", new object[0]));
  •                         return;
  •                 }
  •                 this.address = address;
  •                 this.port = port;
  •                 MD5 md = MD5.Create();
  •                 string a = "12546f1c61454538c45490";
  •                 string a2 = "1252051ca54456902c7054bc";
  •                 string a3 = "66610b45455576";
  •                 string a4 = "4582fdgs4545wr42saf1";
  •                 byte[] bytes = Encoding.Default.GetBytes(address);
  •                 byte[] array = md.ComputeHash(bytes);
  •                 string text = string.Empty;
  •                 for (int i = 0; i < array.Length; i++)
  •                 {
  •                         text += array.ToString(&quot;x6&quot;);
  •                 }
  •                 byte[] bytes2 = Encoding.Default.GetBytes(text);
  •                 byte[] array2 = md.ComputeHash(bytes2);
  •                 string text2 = string.Empty;
  •                 for (int j = 0; j < array2.Length; j++)
  •                 {
  •                         text2 += array2[j].ToString(&quot;x2&quot;);
  •                 }
  •                 if (!(a == text2) && !(a2 == text2) && !(a3 == text2))
  •                 {
  •                         if (!(a4 == text2))
  •                         {
  •                                 this.Disconnect();
  •                                 return;
  •                         }
  •                 }
  •                 try
  •                 {
  •                         Log.Debug(&quot;Socket尝试建立连接&quot;);
  •                         this.ConnectStatus = ConnectStatusEnum.HasConnect;
  •                         this.connetTime = Time.time;
  •                         this.result = this.socket.BeginConnect(address, port, null, null);
  •                         TimerManager.GetInstance().AddTimerTask(new TimerTask(500f, new Action(this.checkConnect)));
  •                 }
  •                 catch (SocketException ex)
  •                 {
  •                         this.result = null;
  •                         this.socket.Close();
  •                         Debug.Log(string.Format(&quot;连接服务器{0}:{1}失败:{2}&quot;, address, port, ex.Message));
  •                         this.Disconnect();
  •                 }        }



address=ip地址

byte[] bytes = Encoding.Default.GetBytes(address);
                byte[] array = md.ComputeHash(bytes);
                string text = string.Empty;
                for (int i = 0; i < array.Length; i++)
                {
                        text += array.ToString(&quot;x6&quot;);
                }
                byte[] bytes2 = Encoding.Default.GetBytes(text);
                byte[] array2 = md.ComputeHash(bytes2);
                string text2 = string.Empty;
                for (int j = 0; j < array2.Length; j++)
                {
                        text2 += array2[j].ToString(&quot;x2&quot;);
                }
text2就是最终密文
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|小黑屋|白黑论坛 |网站地图

GMT+8, 2025-4-11 09:29 , Processed in 0.014659 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表