tobot 发表于 2021-12-1 08:40

CB5654开发板测评3——搭建开发环境

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">按照文档的一步步,在</font><font face="Calibri">windows</font><font face="宋体">上安装了</font><font face="Calibri">CDK</font><font face="宋体">环境,安装时并没有报错,但很可惜的是我在第一步似乎连接不到网络。</font></span></span></span></span></p>

<p style="text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">点击刷新和主页按钮都无法打开所需页面。确认防火墙已关闭。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">如文档所述</font></span></span><span style="font-size:10.5000pt"><span style="font-family:Calibri">CDK<font face="宋体">是一款云端一体的</font><font face="Calibri">IDE</font><font face="宋体">工具</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">(</font><font face="Calibri">C-Sky Development Kit</font><font face="宋体">),没有网络基本上等同无用。到底是软件本身问题还是我的网络有问题呢,带着这个疑问,开启</font><font face="Calibri">wireshark</font><font face="宋体">监控网络。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在软件中点击刷新按钮,看看到底做了什么操作。</font></span></span></span></span></p>

<p style="text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">可以看到实际连接的网址是</font><font face="Calibri">https://occ.t-head.cn/cdk</font><font face="宋体">,且网址给了明确回应,那为何没有显示呢?难道是网站出问题了吗?用网页浏览器打开上述网址:</font></span></span></span></span></p>

<p style="text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">正常。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">尝试通过浏览器新建工程,可以看到,操作上看不出什么问题,但是没有回应。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">既然已经开始抓包,不如继续尝试抓包分析,新建工程对于网络的操作,看起来是向地址:</font></span></span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">https://occ.t-head.cn/api/cdk/getComponentVersionsByProduct?_output_charset=utf-8&amp;_input_charset=utf-8</font><font face="宋体">发送了一个</font><font face="Calibri">post</font><font face="宋体">。</font></span></span></span></span></p>

<p style="text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">模拟这个过程并不难,用</font><font face="Calibri">python</font><font face="宋体">写一小段代码:</font></span></span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">import requests</font></span></span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">s=requests.session()</font></span></span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">url=&quot;https://occ.t-head.cn/api/cdk/getComponentVersionsByProduct&quot;</font></span></span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">postdata={&quot;name&quot;:&quot;</font><font face="宋体">智能语音终端解决方案</font><font face="Calibri">&quot;, &quot;productID&quot;:&quot;3766580035617038336&quot;}</font></span></span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">print(s.post(url,data=postdata).text)</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">得到的返回信息:</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">{&quot;msg&quot;:&quot;id</font><font face="宋体">不能为空</font><font face="Calibri">&quot;,&quot;code&quot;:-101019,&quot;requestId&quot;:&quot;3986234046056304640&quot;}</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">算了,我也不知道</font><font face="Calibri">CDK</font><font face="宋体">的</font><font face="Calibri">id</font><font face="宋体">是什么,看来想取巧来做不太可行。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">打开</font><font face="Calibri">360</font><font face="宋体">工具查询执行过程,软件认为</font><font face="Calibri">CDK</font><font face="宋体">进程中有木马,自动清除了。</font></span></span></span></span></p>

<p style="text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">但这应该也不是根本原因,根据之前的抓包记录,的确是有请求和回应的,清除掉木马的文件名是</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">cefsubprocess</font><font face="宋体">,听起来类似认证之类的,</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">应该不会影响显示。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">一般说来,带木马的程序安装时总会露出一些马脚,查找安装过程,果然在安装时自动阻止了</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">PSEXESVC</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">服务:</font></span></span></span></span></p>

<p style="text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">虽然不知道这个服务是干什么的,但考虑,关掉</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="Calibri">360</font><font face="宋体">再覆盖安装装一次,确保各服务已装到位。再运行:</font></span></span></span></span></p>

<p style="text-align:justify"> &nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">可以看到,显示正常了。</font></span></span></span></span></p>

nmg 发表于 2021-12-1 09:52

<p>这解决问题的能力,刚刚的</p>

freebsder 发表于 2021-12-2 17:27

<p>应用商城都搞上去了?卧槽,这也太急迫了吧</p>
页: [1]
查看完整版本: CB5654开发板测评3——搭建开发环境