Lost-MSth / Arcaea-server

一个微型的 Arcaea 本地服务器 A small local server for Arcaea
MIT License
359 stars 53 forks source link

Code 400: HTTP Status BAD REQUEST #96

Closed Arctica17 closed 1 year ago

Arctica17 commented 1 year ago

我在笔记本上运行了 server,然后将 iPad 连接到笔记本的移动热点,通过 Charles 的 Map Remote 功能将域名 arcapi-v2.lowiro.com 映射到了笔记本的 iPv4 地址;客户端已去除了 Hash 校验,解锁了 Beyond 与 Scenecontrol 等相关功能;服务端能够对客户端的登录做出响应。

但是服务端的响应显示客户端 Request 的请求格式不正确 T_T

1

Lost-MSth commented 1 year ago

将提示扔进百度里就知道问题了,服务端开的是http不要用https

Arctica17 commented 1 year ago

客户端发送的请求是 HTTP:

  | POST /latte/13/auth/login HTTP/1.1
-- | --
Host | tqlwsl.moe:61616
Accept | */*
Authorization | Basic YWRtaW46YWRtaW4=
AppVersion | 3.5.3%2F20210410%2Frelease
Accept-Language | zh-cn
Cache-Control | no-cache
Accept-Encoding | gzip, deflate, br
Content-Type | application/x-www-form-urlencoded; charset=utf-8
DeviceId | 5C32E939-475A-4491-9D2C-D19BEBCF0D8B
User-Agent | Arc-mobile/3.5.3.4 CFNetwork/1335.0.3 Darwin/21.6.0
Content-Length | 29
Connection | keep-alive

服务端也默认了 HTTP:

3

不知道是不是这样

Lost-MSth commented 1 year ago

客户端发送的请求是HTTP?确定吗?客户端版本号多少

Arctica17 commented 1 year ago

Request 中显示为 3.5.3 版本

  | POST /latte/13/auth/login HTTP/1.1 -- | -- Host | tqlwsl.moe:61616 Accept | */* Authorization | Basic YWRtaW46YWRtaW4= AppVersion | 3.5.3%2F20210410%2Frelease Accept-Language | zh-cn Cache-Control | no-cache Accept-Encoding | gzip, deflate, br Content-Type | application/x-www-form-urlencoded; charset=utf-8 DeviceId | 5C32E939-475A-4491-9D2C-D19BEBCF0D8B User-Agent | Arc-mobile/3.5.3.4 CFNetwork/1335.0.3 Darwin/21.6.0 Content-Length | 29 Connection | keep-alive
Arctica17 commented 1 year ago

想玩最新版本 但是在 IDA 琢磨好久也没能解决双向验证 只能找远古版本/叹气

Lost-MSth commented 1 year ago

3.5.3?直接改二进制里 API 地址不就好了 而且我猜这个是 https 请求

Lost-MSth commented 1 year ago

应该可以,试试就知道了()

Arctica17 commented 1 year ago

6

5

坏了 甚至发不出包了/哭哭

Lost-MSth commented 1 year ago

服务端没反应?那就是改错了(检查十六进制,别看汇编,长度不能超,末尾可以补00

Arctica17 commented 1 year ago

检查过了就是这样 是因为没有域名不可以吗 api改成baidu什么的 至少还能正常发包

Lost-MSth commented 1 year ago

跟域名有什么关系()

ip 是内网的服务端 ip 吗,端口正确吗?最简单的验证办法就是手机浏览器看一下

Arctica17 commented 1 year ago

手机浏览器输入内网ip和端口是可以看到hello world的 api修改成内网ip和端口后 登录客户端的时候Charles中没有请求 真的是纯萌新 T_T

Lost-MSth commented 1 year ago

api 改后其实没必要挂代理用 Charles 了,要看就看服务端有没有响应

实在不行就随便写个地址,代理做转发()

Arctica17 commented 1 year ago

感谢大佬!经过一下午的努力终于成功了ww

Arctica17 commented 1 year ago

远古版本玩的很开心(。如果能教教4.3的新版本怎样与服务器建立连接就更好了