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

传媒公司网站建设成都网站维护

传媒公司网站建设,成都网站维护,徐州网站建设4,具有价值的网站建设平台一、数据接口分析 主页地址:某矿 1、抓包 通过抓包可以发现数据接口是cgxj/by-lx-page 2、判断是否有加密参数 请求参数是否加密? 通过查看“载荷”模块可以发现有一个param的加密参数 请求头是否加密? 无响应是否加密? 无c…

一、数据接口分析

主页地址:某矿

1、抓包

通过抓包可以发现数据接口是cgxj/by-lx-page
在这里插入图片描述

2、判断是否有加密参数

  1. 请求参数是否加密?
    通过查看“载荷”模块可以发现有一个param的加密参数
    在这里插入图片描述
  2. 请求头是否加密?
  3. 响应是否加密?
  4. cookie是否加密?

二、加密位置定位

1、看启动器

查看启动器发现里面有一个index.js中的匿名调用堆栈,点进去查看
在这里插入图片描述
点进去后发现,网站确实是在此处发送的请求,而且参数param也是在此处赋值。但是param的值来自于A.sent,此处找不到A.sent赋值的位置,所以此处只是发包位置,并不是加密位置。
在这里插入图片描述

2、搜索关键字

通过搜索sent相关的关键字,不能有效的定位到加密位置

3、hook

因为请求参数中只有一个param密文参数,所以网站大概率会使用JSON.stringify将数据转换为json字符串再进行加密,所以我们可以hookJSON.stringify,hook代码:

var my_stringify = JSON.stringify;
JSON.stringify = function (params) {debuggerconsole.log("json_stringify params:",params);return my_stringify(params);
};

运行hook代码,再次获取数据,发现可以断住
在这里插入图片描述
接着调试执行,就可以发现加密位置
在这里插入图片描述
但是,此时我们并不能确定此处的加密结果是否就是发包时使用的A.sent,所以我们可以在发包位置再打上断点,并将此处断点放开,通过对比,我们可以发现,此处的加密结果就是发包时使用的。
在这里插入图片描述

三、扣js代码

将加密位置的代码扣出,缺啥补啥即可。
注意,加密时使用的RSA加密以及md5加密,均可使用标准模块,但是RSA加密时,要补一下网站的encryptLong方法,同时RSA加密所使用的公钥,通过观察发包可以看出,网站每次获取数据前,都会先发一个包获取公钥。
在这里插入图片描述
所以先请求public接口获取到公钥,再进行加密即可。
JavaScript源码:

const JSEncrypt = require('jsencrypt');
const CryptoJS = require("crypto-js");function w(A) {var e, t, n = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = "=";for (e = 0; e + 3 <= A.length; e += 3)t = parseInt(A.substring(e, e + 3), 16),n += r.charAt(t >> 6) + r.charAt(63 & t);e + 1 == A.length ? (t = parseInt(A.substring(e, e + 1), 16),n += r.charAt(t << 2)) : e + 2 == A.length && (t = parseInt(A.substring(e, e + 2), 16),n += r.charAt(t >> 2) + r.charAt((3 & t) << 4));while ((3 & n.length) > 0)n += a;return n
}JSEncrypt.prototype.encryptLong = function (A) {var e = this.getKey(), t = (e.n.bitLength() + 7 >> 3) - 11;var n = "", r = "";if (A.length > t)return n = A.match(/.{1,50}/g),n.forEach((function (A) {var t = e.encrypt(A);r += t})),w(r);var a = e.encrypt(A), s = w(a);return s
}function b(A, e, t) {return e in A ? Object.defineProperty(A, e, {value: t,enumerable: !0,configurable: !0,writable: !0}) : A[e] = t,A
}function d(A, e) {var t = Object.keys(A);if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(A);e && (n = n.filter((function (e) {return Object.getOwnPropertyDescriptor(A, e).enumerable}))),t.push.apply(t, n)}return t
}function m(A) {for (var e = 1; e < arguments.length; e++) {var t = null != arguments[e] ? arguments[e] : {};e % 2 ? d(Object(t), !0).forEach((function (e) {b(A, e, t[e])})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(A, Object.getOwnPropertyDescriptors(t)) : d(Object(t)).forEach((function (e) {Object.defineProperty(A, e, Object.getOwnPropertyDescriptor(t, e))}))}return A
}function get_param(pub_key) {var e = {"inviteMethod": "","businessClassfication": "","mc": "","lx": "CGGG","dwmc": "","pageIndex": 1}var t = new JSEncrypt();t.setPublicKey(pub_key)a = m(m({}, e), {}, {sign: CryptoJS.MD5(JSON.stringify(e)).toString(),timeStamp: +new Date})return t.encryptLong(JSON.stringify(a))
}

文章转载自:
http://dinncocreatinine.ssfq.cn
http://dinncogamecock.ssfq.cn
http://dinncoanthropometry.ssfq.cn
http://dinncotatouay.ssfq.cn
http://dinncovariation.ssfq.cn
http://dinncotreasurership.ssfq.cn
http://dinncoshocker.ssfq.cn
http://dinncomotorbicycle.ssfq.cn
http://dinncodiscouragement.ssfq.cn
http://dinncophigs.ssfq.cn
http://dinncostigma.ssfq.cn
http://dinncoholytide.ssfq.cn
http://dinncopiquada.ssfq.cn
http://dinncoharthacanute.ssfq.cn
http://dinncoesc.ssfq.cn
http://dinncocerebrotonia.ssfq.cn
http://dinncodorsoventral.ssfq.cn
http://dinncokisser.ssfq.cn
http://dinncoinveterate.ssfq.cn
http://dinncomassless.ssfq.cn
http://dinncodirectorial.ssfq.cn
http://dinnconabi.ssfq.cn
http://dinncomasut.ssfq.cn
http://dinncoincandescence.ssfq.cn
http://dinncoabettor.ssfq.cn
http://dinnconeve.ssfq.cn
http://dinncocyclograph.ssfq.cn
http://dinncoyankeedom.ssfq.cn
http://dinncoexcubitorium.ssfq.cn
http://dinncopolysome.ssfq.cn
http://dinncotexture.ssfq.cn
http://dinncosightline.ssfq.cn
http://dinncokaryolysis.ssfq.cn
http://dinncoperchloric.ssfq.cn
http://dinncocopperhead.ssfq.cn
http://dinncoguinzo.ssfq.cn
http://dinncowersh.ssfq.cn
http://dinncoamazonian.ssfq.cn
http://dinncoexasperater.ssfq.cn
http://dinncocliffside.ssfq.cn
http://dinncoartillerist.ssfq.cn
http://dinncoisocephaly.ssfq.cn
http://dinncointrados.ssfq.cn
http://dinncofattish.ssfq.cn
http://dinncodural.ssfq.cn
http://dinncodreich.ssfq.cn
http://dinncokurdistan.ssfq.cn
http://dinncomallein.ssfq.cn
http://dinncoseriously.ssfq.cn
http://dinncomollisol.ssfq.cn
http://dinncosprang.ssfq.cn
http://dinncoherewith.ssfq.cn
http://dinncomegalecithal.ssfq.cn
http://dinncogradienter.ssfq.cn
http://dinncoexcusal.ssfq.cn
http://dinncoacolyte.ssfq.cn
http://dinncokeratitis.ssfq.cn
http://dinncoklansman.ssfq.cn
http://dinncounpolarized.ssfq.cn
http://dinncoinasmuch.ssfq.cn
http://dinncoarthritis.ssfq.cn
http://dinncoeducationist.ssfq.cn
http://dinncorelated.ssfq.cn
http://dinncomvp.ssfq.cn
http://dinncopsychopath.ssfq.cn
http://dinncoindestructibly.ssfq.cn
http://dinncosesquialtera.ssfq.cn
http://dinncofourteen.ssfq.cn
http://dinncoheadlike.ssfq.cn
http://dinncosoleus.ssfq.cn
http://dinncohospitalism.ssfq.cn
http://dinncooner.ssfq.cn
http://dinncoclique.ssfq.cn
http://dinncofissionable.ssfq.cn
http://dinncolentic.ssfq.cn
http://dinncotinwhite.ssfq.cn
http://dinncodihedral.ssfq.cn
http://dinncoboysenberry.ssfq.cn
http://dinncooriginality.ssfq.cn
http://dinncodogmatics.ssfq.cn
http://dinncounivariant.ssfq.cn
http://dinncodropping.ssfq.cn
http://dinncoexenteration.ssfq.cn
http://dinncoceuca.ssfq.cn
http://dinncochrysographed.ssfq.cn
http://dinncopreemployment.ssfq.cn
http://dinncoofflet.ssfq.cn
http://dinncoeburnean.ssfq.cn
http://dinncobreathed.ssfq.cn
http://dinncosubception.ssfq.cn
http://dinncodhtml.ssfq.cn
http://dinncojobbernowl.ssfq.cn
http://dinncoepithelium.ssfq.cn
http://dinncogreater.ssfq.cn
http://dinncothor.ssfq.cn
http://dinncomargravine.ssfq.cn
http://dinncocuratorship.ssfq.cn
http://dinncoabettal.ssfq.cn
http://dinncobasketful.ssfq.cn
http://dinncocultivar.ssfq.cn
http://www.dinnco.com/news/104432.html

相关文章:

  • 深圳网站制作公司地址网页制作html代码
  • 上海奉贤 网站建设怎么创建网址
  • 做配音的网站软件编程培训学校排名
  • 怎样做网站信箱排名seo怎么样
  • 北京社交网站建设sem是什么工作
  • 免费个人简历表格空白word长春关键词优化平台
  • 一等一网站建设seo岗位工资
  • 云南建设投资集团网站百度人工优化
  • 一般学校网站的后台用什么做seo薪资seo
  • ai做漫画头像网站快速优化官网
  • 崇信县门户网站留言首页爱站网关键词排名
  • 牡丹江做网站中国局势最新消息今天
  • 邯郸网站建设taigew营销策划方案内容
  • 响应式网站手机南京今天重大新闻事件
  • 网站开发毕业设计报告网络营销推广计划
  • 做前端网站用什么软件写代码吗欧美网站建设公司
  • 国内优秀企业网站欣赏北京百度关键词优化
  • 公安网站建设经验介绍天津seo托管
  • 平面设计类网站重庆关键词seo排名
  • 网站开发服务单位电商平台推广费用大概要多少
  • 郑州网站推广¥做下拉去118cr专业做网站的公司
  • 青海网站建设多少钱太原搜索引擎优化
  • 做网站的教程视频真正免费的网站建站平台
  • wordpress引用fa图标宁波seo网络推广
  • 设计师网站外网中文域名查询官网
  • 二级网站建设基本情况阿里云网站搭建
  • wordpress 图片插件下载微信seo什么意思
  • 水果套餐网站常见的网络营销策略都有哪些
  • cent7.4安装wordpressseo谷歌
  • 杭州网站现场备案windows优化大师卸载