求大神,我用dnspy点编译,会出现错误
本帖最后由 66431898 于 2020-5-14 08:52 编辑想请问下大神思路,昨天刚刚脱壳,拽入dnspy查看后,发现了验证密钥的地方,可我右键编辑方法后 ,会出现错误,即使什么也没有改,点编译也会出现错误。现在处于迷茫的阶段,求大神指导。
// Buddy.Auth.Auth
// Token: 0x0600FFF6 RID: 65526 RVA: 0x00202044 File Offset: 0x00200244
internal static async Task<Tuple<bool, string>> Login(string key)
{
Tuple<bool, string> result;
try
{
string text;
using (HttpClient client = new HttpClient())
{
byte[] content = Auth.RSAEncrypt(key);
using (ByteArrayContent postStream = new ByteArrayContent(content))
{
HttpResponseMessage httpResponseMessage = await client.PostAsync("https://xxx.com/login.php", postStream);
using (HttpResponseMessage response = httpResponseMessage)
{
text = await response.Content.ReadAsStringAsync();
}
HttpResponseMessage response = null;
}
ByteArrayContent postStream = null;
}
HttpClient client = null;
if (!string.IsNullOrEmpty(text))
{
string[] array = text.Split(new char[]
{
'\n'
});
int num;
if (int.TryParse(array, out num))
{
if (num == 1)
{
GlobalSettings.Instance.Key = key;
GlobalSettings.Instance.Expire = array;
string uriString = array;
Auth.websocket = new ClientWebSocket();
try
{
await Auth.websocket.ConnectAsync(new Uri(uriString), CancellationToken.None);
}
catch (Exception ex)
{
return new Tuple<bool, string>(false, ex.Message);
}
Auth.StartHeartBeat();
return new Tuple<bool, string>(true, null);
}
if (num == 2)
{
return new Tuple<bool, string>(false, "此卡已在其它地方登陆");
}
if (num == 0)
{
return new Tuple<bool, string>(false, "此卡无效或已过期");
}
}
}
result = new Tuple<bool, string>(false, "服务器通信失败");
}
catch (Exception ex2)
{
result = new Tuple<bool, string>(false, ex2.Message);
}
return result;
我有两个思路,一个是自己搭建一个网站,然后模拟他的返回数据,始终保持返回数据为1
还有一个思路是,更改所验证的数据。想问问各位大神,这样的思路对吗?
文件如下: https://datas.lanzouj.com/icl15ji 密码:gb8r 逍遙 发表于 2020-5-14 14:38
if (num == 0)
{
return new Tuple(true, "此卡 ...
大神,为什么我修改还是会出现上面的错误呢 是不是我机器出问题了
if (num == 0)
{
return new Tuple<bool, string>(true, "此卡无效或已过期");
这样改! 有程序集没引用吧 WolfAvenue 发表于 2020-5-14 08:56
有程序集没引用吧
怎么引用呀 emm 66431898 发表于 2020-5-14 08:56
怎么引用呀 emm
应该还有dll 文件吧,拖到dnspy中看看 WolfAvenue 发表于 2020-5-14 09:03
应该还有dll 文件吧,拖到dnspy中看看
目录下的dll我都拖进去了,也能在左栏看到 可还是不行 emm 解压密码 houlang 有大神吗 逍遙 发表于 2020-5-14 14:38
if (num == 0)
{
return new Tuple(true, "此卡 ...
谢谢大神!!!
页:
[1]
2