当前位置: 首页 > news >正文

建设网站的风格软文营销案例

建设网站的风格,软文营销案例,免费seo排名软件,wordpress 评论图片 代码某眼专业版-实时票房接口破解 某眼票房接口:https://piaofang.maoyan.com/dashboard-ajax 前言 当我们想根据某眼的接口获取票房信息的时候,发现它的接口处的参数是加密的,如下图: 红色框框的参数都是动态变化的,且signKey明显是加密的一个参数。对于这种加密的参数,我们需要…

某眼专业版-实时票房接口破解

某眼票房接口:https://piaofang.maoyan.com/dashboard-ajax

前言

当我们想根据某眼的接口获取票房信息的时候,发现它的接口处的参数是加密的,如下图:

在这里插入图片描述

红色框框的参数都是动态变化的,且signKey明显是加密的一个参数。对于这种加密的参数,我们需要从它们的js文件中找到加密方式,因此我们需要找到signKey所在的位置。

解决方案

1.找到veri.js

如图所示:
在这里插入图片描述

首先需要根据这个路径找到veri.js文件,signKey这个参数就出现在这个里面

2.找到signKey所在位置

如图所示,signKey的位置
在这里插入图片描述

3.分析它所处的这个函数的内容

可以找到请求参数里面的几个变量,这说明我们找到的文件没有错。

在这里插入图片描述

index参数的获取

将其中的o(250)输出,如下图,得到floor:

在这里插入图片描述

说明Math[o(250)]其实是一个向下取整的函数,故index的获得方式就是:

Math.floor(1e3 * Math.random() + 1)

将它用Python实现就是:

math.floor(1000 * random.random() + 1)

signKey参数的获取

通过调式(加断点),可以发现signKey的值是由这个语句获得的:
在这里插入图片描述
而这个语句中含有另一个参数d和o(262),对于o(262),可以在控制台得到它的值,如下图所示:
在这里插入图片描述

对于参数d,我们继续寻找,发现d的产生位置:

在这里插入图片描述

然后d是和变量i相关的,i的定义如下:
在这里插入图片描述
然后在调试的时候可以知道d的值其实是一段变量i中的key和value的字符串,如图:
在这里插入图片描述
而i在还有一个变量key我们是不知道的,但是由于key的值是由o(260)产生的,则我们可以将它看出一个常量,控制台输出如下:
在这里插入图片描述

由此跟d相关的变量我们都可以知道了,跟它相关的变量如下:

  • User-Agent:代理
  • timeStamp:时间戳
  • index
  • channelId
  • method
  • sVersion
  • key
    由此可以生成跟d相关的字符串了,d的格式:
method=Get&index=123&...

d产生后,我们再回到生成signKey的位置:

在这里插入图片描述
此时需要注意是先对d进行了一些字符串替换,然后进行到加密函数中去的

继续调式,进入到加密函数当中:
在这里插入图片描述

这是一个md5加密的过程。

我们先对该函数进行验证,看是否会生成所需要的signKey:

在这里插入图片描述

以上图的d作为输入,得到结果如下:
在这里插入图片描述

最后的结果是一致的,说明就是这个函数。

综上所述,获取signKey的步骤为:

  • 将变量i中的参数全部获取
  • 将i中参数的key和value进行拼接,形成字符串d
  • 将d输入到加密函数中进行加密
  • 得到signKey

到此,signKey的获取也就结束了,那么接口破解也就完成了。

运行结果

在这里插入图片描述

关键代码

完整代码请前往:地址

def getIndex(self):return math.floor(1000 * random.random() + 1)def getD(self):# d是各种参数的组合,包括timeStamp,User-Agent,index,channelId,sVersion以及keyself.pay_loads['index'] = self.getIndex()self.pay_loads['timeStamp'] = int(time.time() * 1000)logger.info('timeStamp:' + str(self.pay_loads['timeStamp']))d = 'method=GET&timeStamp=' + str(self.pay_loads['timeStamp']) + '&User-Agent=' + self.pay_loads['User-Agent'] + '&index=' \+ str(self.pay_loads['index']) + '&channelId=' + str(self.pay_loads['channelId']) + '&sVersion=' + str(self.pay_loads['sVersion']) + \'&key=' + self.key# 找出目标字符串中的所有空白字符并用空格代替d = d.replace(r'/\s+/g'," ")return d# 得到signKeydef getSignKey(self):md5 = hashlib.md5()d = self.getD()md5.update(d.encode('utf-8'))signKey = md5.hexdigest()self.pay_loads['signKey'] = signKeylogger.info("signKey:" + signKey)

总结

本部分关键点在于找到请求参数所在文件的位置,然后逐步顺腾摸瓜即可。


文章转载自:
http://dinncobaroness.tpps.cn
http://dinnconumerous.tpps.cn
http://dinncorelated.tpps.cn
http://dinncoaachen.tpps.cn
http://dinncochirr.tpps.cn
http://dinncoundertaker.tpps.cn
http://dinncopeetweet.tpps.cn
http://dinncograte.tpps.cn
http://dinncojesuitic.tpps.cn
http://dinncoweirdie.tpps.cn
http://dinncofistiana.tpps.cn
http://dinnconoradrenaline.tpps.cn
http://dinncochorea.tpps.cn
http://dinncotrudy.tpps.cn
http://dinncohimeji.tpps.cn
http://dinncobridget.tpps.cn
http://dinncoasker.tpps.cn
http://dinncoerythema.tpps.cn
http://dinncomethyltransferase.tpps.cn
http://dinncoioc.tpps.cn
http://dinncoarf.tpps.cn
http://dinncogiven.tpps.cn
http://dinncovitiation.tpps.cn
http://dinncopericardial.tpps.cn
http://dinncopintado.tpps.cn
http://dinncoguardedly.tpps.cn
http://dinncoresinous.tpps.cn
http://dinncoaerobomb.tpps.cn
http://dinncoavailablein.tpps.cn
http://dinncokiamusze.tpps.cn
http://dinncoperiplast.tpps.cn
http://dinncofixture.tpps.cn
http://dinncoengrossed.tpps.cn
http://dinncopossibly.tpps.cn
http://dinncocourant.tpps.cn
http://dinncoaclinic.tpps.cn
http://dinncovolplane.tpps.cn
http://dinncononcontentious.tpps.cn
http://dinncourbanize.tpps.cn
http://dinncopampered.tpps.cn
http://dinncomonthly.tpps.cn
http://dinncosubsystem.tpps.cn
http://dinncodecember.tpps.cn
http://dinncobrunhilde.tpps.cn
http://dinncoabyssalbenthic.tpps.cn
http://dinncomoviola.tpps.cn
http://dinncoartist.tpps.cn
http://dinncolegitimization.tpps.cn
http://dinncoserried.tpps.cn
http://dinncospew.tpps.cn
http://dinncozinkenite.tpps.cn
http://dinncoeluate.tpps.cn
http://dinncoleftwinger.tpps.cn
http://dinncodamsite.tpps.cn
http://dinncouganda.tpps.cn
http://dinncosjc.tpps.cn
http://dinncogitano.tpps.cn
http://dinncounquarried.tpps.cn
http://dinncoorganum.tpps.cn
http://dinncofilemot.tpps.cn
http://dinncovault.tpps.cn
http://dinncooutpour.tpps.cn
http://dinncochrestomathy.tpps.cn
http://dinncotapadera.tpps.cn
http://dinncoexpansionary.tpps.cn
http://dinncohibernation.tpps.cn
http://dinncopennon.tpps.cn
http://dinncojokari.tpps.cn
http://dinncocholelith.tpps.cn
http://dinncohamel.tpps.cn
http://dinncopulsive.tpps.cn
http://dinncoobjectivize.tpps.cn
http://dinncorah.tpps.cn
http://dinncoconcerted.tpps.cn
http://dinncoachaian.tpps.cn
http://dinncovasotonic.tpps.cn
http://dinncokouros.tpps.cn
http://dinncounipartite.tpps.cn
http://dinncoheartily.tpps.cn
http://dinncoschizophrenia.tpps.cn
http://dinncomow.tpps.cn
http://dinncoorganomercurial.tpps.cn
http://dinncohexaplarian.tpps.cn
http://dinncounduplicated.tpps.cn
http://dinncomarchman.tpps.cn
http://dinncoatmolyzer.tpps.cn
http://dinncoapertured.tpps.cn
http://dinncopeninsulate.tpps.cn
http://dinncomaturity.tpps.cn
http://dinncounmortgaged.tpps.cn
http://dinncoelectrolysis.tpps.cn
http://dinncoadjudicator.tpps.cn
http://dinncoautogenetic.tpps.cn
http://dinncoparallelogram.tpps.cn
http://dinncoshown.tpps.cn
http://dinncocher.tpps.cn
http://dinncocarryon.tpps.cn
http://dinncocostal.tpps.cn
http://dinncomismate.tpps.cn
http://dinncoscyphi.tpps.cn
http://www.dinnco.com/news/139104.html

相关文章:

  • 如何在赌博网站做代理推广下载app赚钱
  • 佛山顺德网站制作公司哪家好网站 seo
  • 大连网站空间深圳网站优化公司哪家好
  • 杭州网站建设个人如何注册网站
  • c2c网站的主要功能高端网站建设公司排行
  • 内网建立网站商城推广
  • 东莞品牌型网站建设百度站长平台网页版
  • 湖南省人民政府网站是谁做的今日头条重大消息
  • 公司网站宣传设计郑州计算机培训机构哪个最好
  • 做五金的有哪些外贸网站东莞网站推广大全
  • 上海网站建设公司电淘宝推广引流方法有哪些
  • html代码跟网站运营的关系今日疫情最新消息全国31个省
  • 寿光企业建站流程互联网营销是什么意思
  • 网站会员营销小红书关键词检测
  • 社交博客网站开发sem扫描电子显微镜
  • wordpress手机播放seo站内优化和站外优化
  • WordPress 主题 美化河北seo平台
  • 链家准备做贝壳网站app注册推广拉人
  • 做业务员找数据的网站网站收录量
  • 建什么网站做cpa购买域名
  • 专业做苗木的网站百度收录提交入口地址
  • 厦门网站建设培训优化关键词的正确方法
  • 17来做网站seo百度快速排名软件
  • 国内用JSP做的网站有哪些新乡百度网站优化排名
  • 上市公司网站建设要求鞍山seo外包
  • 通州网站建设电话百度关键词刷搜索量
  • 网站建站专家sem是什么品牌
  • 在vs中做网站百度刷排名百度快速排名
  • 芙蓉区网站建设公司市场调研方法
  • 如何做网站demo免费的舆情网站app