<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>算法 on 阿珏酱のBlog</title>
    <link>https://zh.moejue.cn/tags/%E7%AE%97%E6%B3%95/</link>
    <description>Recent content from 阿珏酱のBlog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>xxx@example.com (MoeJue)</managingEditor>
    <webMaster>xxx@example.com (MoeJue)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Wed, 23 Nov 2016 08:27:09 +0000</lastBuildDate>
    
    
    <atom:link href="https://zh.moejue.cn/tags/%E7%AE%97%E6%B3%95/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>58同城的登录（RSA算法）</title>
      <link>https://zh.moejue.cn/posts/16/</link>
      <pubDate>Wed, 23 Nov 2016 08:27:09 &#43;0000</pubDate>
      <author>xxx@example.com (MoeJue)</author>
      <guid>https://zh.moejue.cn/posts/16/</guid>
      <description>
        <![CDATA[<h1>58同城的登录（RSA算法）</h1><p>作者：MoeJue（xxx@example.com）</p>
        
          <p>58同城的登录（RSA算法）</p>
<p>这一次。又是一个精彩的登录算法解析</p>
<p>目标地址：<br>
<a href="https://passport.58.com/login">https://passport.58.com/login</a>?（58 同城）<br>
用到的工具：<br>
js 调试工具（我这里用的是改自某论坛的 js 调试工具 相对智能化了）<br>
抓包工具（我这次就直接使用浏览器的 F12 了 搜索关键字更方便 ）</p>
<p>提示：由于该篇文章发表于1年前，年久失修，图片内容已丢失！</p>
        
        <hr><p>本文2016-11-23首发于<a href='https://zh.moejue.cn/'>阿珏酱のBlog</a>，最后修改于2016-11-23</p>]]>
      </description>
      
        <category>教程</category>
      
    </item>
    
    

    <item>
      <title>新浪微博动态 RSA 分析图文&#43;登录</title>
      <link>https://zh.moejue.cn/posts/13/</link>
      <pubDate>Wed, 12 Oct 2016 06:50:19 &#43;0000</pubDate>
      <author>xxx@example.com (MoeJue)</author>
      <guid>https://zh.moejue.cn/posts/13/</guid>
      <description>
        <![CDATA[<h1>新浪微博动态 RSA 分析图文+登录</h1><p>作者：MoeJue（xxx@example.com）</p>
        
          <p>新浪微博动态 RSA 分析</p>
<p>一、用到的工具<br>
1.ie 浏览器（9 以上的版本）<br>
2.httpwatch （中英文都可以）<br>
3.js 调试工具</p>
<p>目标网站：<a href="http://weibo.com/">http://weibo.com</a> (新浪微博)</p>
<p>二、抓包<br>
还是遵从我们上一次的抓包流程，养成良好的习惯，这里就不多做说明。<br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2ixqxrdj30m808p421.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2ixmpmdj30ja06r3z4.jpg" alt=""></p>
<p><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2ixpef1j30m60azgn3.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2ixrm8wj30k008rdgm.jpg" alt=""></p>
<p><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2ixw3l7j30m806eq5d.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2ixyrvuj30m80fvtfm.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2iy8lk3j30jb07uwf9.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2iy9zgtj30kv089aan.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2iycexlj30m807w0ve.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2iymkxpj30m80fkq6d.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2iysq5qj30et06bwev.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2iyxgegj30m80a8gnz.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2iz51cqj30gc08175d.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2iz6tvrj30ip0fut9z.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2iz8pi3j30m807ewf0.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2izftdtj30ku05yjs4.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2izoqdrj30kh05cgm5.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2izr82ij30hh0e5400.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2izvdnzj30h403o74o.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2j02n8yj30m8030mye.jpg" alt=""></p>
<p>三、分析抓包数据<br>
1、确定我们的登录提交包</p>
<p>2、灵活变通关键字的查找</p>
<p>五、js 调试四、寻找关键字</p>
<p>1、可以在 HttpWatch 上搜寻关键字<br>
也可以在 ie 的 F12 继续寻找<br>
2、寻找 pwencode 关键字</p>
<p>1、这里和上次不同 ，我先把调用的代码复制出来先做简单的改写 因<br>
为复制出来的 代码并不是 function（）函数 如同易语言中的子程序<br>
（这里描述可能有误）<br>
3个参数 我们知道p是密码 那剩下两个我们去开发人员工具中看一下</p>
<p>六、具体看图文分析<br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2j0d0tpj30m80elwkm.jpg" alt=""><br>
<img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/10/12/0072Vf1pgy1fqh2j05q0ej30jz0bx3zu.jpg" alt=""></p>
<p>有什么不对的地方还望指出</p>
        
        <hr><p>本文2016-10-12首发于<a href='https://zh.moejue.cn/'>阿珏酱のBlog</a>，最后修改于2016-10-12</p>]]>
      </description>
      
        <category>教程</category>
      
    </item>
    
    

    <item>
      <title>中国电信登录RSA算法&#43;分析图文</title>
      <link>https://zh.moejue.cn/posts/14/</link>
      <pubDate>Fri, 30 Sep 2016 01:29:10 &#43;0000</pubDate>
      <author>xxx@example.com (MoeJue)</author>
      <guid>https://zh.moejue.cn/posts/14/</guid>
      <description>
        <![CDATA[<h1>中国电信登录RSA算法+分析图文</h1><p>作者：MoeJue（xxx@example.com）</p>
        
          <p>废话不多说！</p>
<p>一、用到的工具</p>
<p>1.ie浏览器（9以上的版本）</p>
<p>2.httpwatch （中英文都可以）</p>
<p>3.js调试工具</p>
<p>目标网站：<a href="http://xz.189.cn/sso/LoginServlet">http://xz.189.cn/sso/LoginServlet</a>  电信189登录</p>
<p>二、抓包：</p>
<p>1.抓包前先清除网站的cookie和缓存<br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh27cuooyj30l90cv0u6.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh27cuooyj30l90cv0u6.jpg" alt=""></a></p>
<p>2.在页面打开前就开启抓包工具(否则会抓不到加密的js)</p>
<p>3.判断哪一个才是我们的登录提交包<br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh27p2sm7j30m80akdjt.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh27p2sm7j30m80akdjt.jpg" alt=""></a></p>
<p>三、分析抓包数据：</p>
<p><a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh282bkdxj30ls076t9g.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh282bkdxj30ls076t9g.jpg" alt=""></a></p>
<p>1.这里就用到ie的F12开发人员工具</p>
<p>2.查到我们密码关键字 密码 passWord<br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh28mmahhj30m804iwfp.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh28mmahhj30m804iwfp.jpg" alt=""></a></p>
<p>3.继续追踪 加密所调用的函数  encryptedString<br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh28uu87ij30ik087aaf.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh28uu87ij30ik087aaf.jpg" alt=""></a></p>
<p>4.encryptedString  这个函数的两个参数 我们也要知道是什么  继续寻找key</p>
<p><a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh29aoqekj30m803zq3w.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh29aoqekj30m803zq3w.jpg" alt=""></a><br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh29rurbtj30m80ccwi2.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh29rurbtj30m80ccwi2.jpg" alt=""></a><br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh29u07pgj30i50bx753.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh29u07pgj30i50bx753.jpg" alt=""></a></p>
<p>5.那我加密所需的参数就够了，接下来就是调试了，这里有人就会问 那参数不是有两个吗 另一个s呢   通过函数我们知道 s就是对密码加密那的pwd  通过函数的调用if判断可以知道pwd 就是我们的密码passWord</p>
<p>6.接下来复制调用函数先在开发人员工具中先调试一下  需要key，s两个参数<br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh2a02ub9j30m60d440i.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh2a02ub9j30m60d440i.jpg" alt=""></a></p>
<p>7.ie中调试没有问题 ，那接下来在js调试工具中调试一下</p>
<p>8.复制3个RSA的机密js以及key  调用bodyRSA()这个函数  参数为密码 我们发现  他是一个对象 没有办法直接调用 如果继续调用就会导致工具挂掉<br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh2a1pjyxj30fq06vaau.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1ply1fqh2a1pjyxj30fq06vaau.jpg" alt=""></a></p>
<p>9.这里就是RSA的难点 需要进行改写，否则我们的易语言也没有办法调用。</p>
<p>10.将改写完的函数和刚才一样复制到调试工具中，还是调用bodyrsa（）这个函数<br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh2acq1dwj30m808utbb.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh2acq1dwj30m808utbb.jpg" alt=""></a></p>
<p>最后发现我们成功了<br>
<a href="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh2ai5ee1j30hy0dggms.jpg"><img src="https://gh-proxy.com/github.com/iAJue/MoeJueBlogPic/blob/master/Images/2016/09/30/0072Vf1pgy1fqh2ai5ee1j30hy0dggms.jpg" alt=""></a></p>
<p>因为没有电信手机号，没办法写个完整的对cookie操作登录  期待下期！</p>
        
        <hr><p>本文2016-09-30首发于<a href='https://zh.moejue.cn/'>阿珏酱のBlog</a>，最后修改于2016-09-30</p>]]>
      </description>
      
        <category>教程</category>
      
    </item>
    
  </channel>
</rss>
