逆向案例二十八——某高考志愿网异步请求头参数加密,以及webpack

网址:aHR0cDovL3d3dy54aW5nYW9rYW90Yi5jb20vY29sbGVnZXMvc2VhcmNo

抓包分析,发现请求头有参数u-sign是加密的,载荷没有进行加密,直接跟栈分析。

进入第二个栈,打上断点,分析有没有加密位置。

可以看到参数已经进行加密了

往上跟栈,找到异步位置,打上断点,发现参数没了,这说明加密在异步的函数中

直接进入t的第一个函数,一下子就找到了加密位置,打上断点,发现就是这里加密,加密函数是o

进入o函数里面去看看,打上断点,发现最后的n就是加密位置。

复制下来,写好函数,n没有定义,直接去找n

不要直接进入n函数去复制,会有很多模块,累死人也搞不定。也不要猜测是MD5,我试过了不对的。 往上看看,有新发现。原来是一个webpack。

打上断点,进入加载器r,先全部复制下来。

导出加载器,补环境,现在就去找函数模块了。

缺少什么模块,就去找什么函数模块,添加模块

最终结果:

现在我们有了u-sign,可以带着请求头去访问数据了。

爬取结果:

完整python代码如下。

import requests
import json
import execjs
for page in range(1,21):data = {"keyword": "","provinceNames": [],"natureTypes": [],"eduLevel": "","categories": [],"features": [],"pageIndex": page,"pageSize": 20,"sort": 11}e = '/youzy.dms.basiclib.api.college.query'js_code = execjs.compile(open('中国大学生志愿网逆向.js','r',encoding='utf-8').read())u_sign = js_code.call('get_sign',e,data)url = 'https://uwf7de983aad7a717eb.youzy.cn/youzy.dms.basiclib.api.college.query'headers = {"Accept": "*/*","Accept-Language": "zh-CN,zh;q=0.9","Cache-Control": "no-cache","Connection": "keep-alive","Content-Type": "application/json","Origin": "http://pv4y-pc.youzy.cn","Pragma": "no-cache","Referer": "http://pv4y-pc.youzy.cn/","Sec-Fetch-Dest": "empty","Sec-Fetch-Mode": "cors","Sec-Fetch-Site": "cross-site","User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","sec-ch-ua-mobile": "?0","u-sign": u_sign,}data = json.dumps(data, separators=(',', ':'))# 发送GET请求response = requests.post(url, headers=headers, data=data).json()print(f'正在爬取第{page}页数据')for item in response['result']['items']:print(item)

完整js代码:

window=global;
navigator={};
var yangxin;
!function(e) {function n(n) {for (var t, o, r = n[0], i = n[1], a = n[2], d = 0, h = []; d < r.length; d++)o = r[d],u[o] && h.push(u[o][0]),u[o] = 0;for (t in i)Object.prototype.hasOwnProperty.call(i, t) && (e[t] = i[t]);for (s && s(n); h.length; )h.shift()();return l.push.apply(l, a || []),c()}function c() {for (var e, n = 0; n < l.length; n++) {for (var c = l[n], t = !0, o = 1; o < c.length; o++) {var i = c[o];0 !== u[i] && (t = !1)}t && (l.splice(n--, 1),e = r(r.s = c[0]))}return e}var t = {}, o = {colleges: 0}, u = {colleges: 0}, l = [];function r(n) {console.log(n)if (t[n])return t[n].exports;var c = t[n] = {i: n,l: !1,exports: {}};return e[n].call(c.exports, c, c.exports, r),c.l = !0,c.exports}yangxin = rr.e = function(e) {var n = [];o[e] ? n.push(o[e]) : 0 !== o[e] && {"chunk-35866964": 1,"chunk-2360ff8e": 1,"chunk-38859794": 1,"chunk-3c11c494": 1,"chunk-549e1a9c": 1,"chunk-7935269e": 1,"chunk-419eda10": 1,"chunk-464dda61": 1,"chunk-6cafc15a": 1,"chunk-71d9e258": 1,"chunk-7f496c16": 1,"chunk-bb50558a": 1,"chunk-efd8109e": 1,"chunk-4eb7095a": 1,"chunk-52ca585a": 1,"chunk-5c99f7cd": 1,"chunk-9a15c92e": 1,"chunk-6b41533f": 1,"chunk-64568e68": 1}[e] && n.push(o[e] = new Promise((function(n, c) {for (var t = "static/css/" + ({}[e] || e) + "." + {"chunk-2d0c2339": "31d6cfe0","chunk-2d21d0c2": "31d6cfe0","chunk-35866964": "4c0b4922","chunk-2360ff8e": "229fbfea","chunk-38859794": "37dd7c64","chunk-3c11c494": "d5d496a0","chunk-549e1a9c": "03ef9d40","chunk-7935269e": "862057d8","chunk-419eda10": "1fb6f521","chunk-464dda61": "cfd2c688","chunk-6cafc15a": "4d3173ef","chunk-71d9e258": "7a300765","chunk-7f496c16": "b458d8e8","chunk-bb50558a": "473d5668","chunk-efd8109e": "2a141185","chunk-4eb7095a": "11cb1ac7","chunk-52ca585a": "aea92b8f","chunk-5c99f7cd": "b32dcf4f","chunk-9a15c92e": "f6c185b7","chunk-6b41533f": "3ce3c01f","chunk-64568e68": "8df6b4dd"}[e] + ".css", u = r.p + t, l = document.getElementsByTagName("link"), i = 0; i < l.length; i++) {var a = l[i], d = a.getAttribute("data-href") || a.getAttribute("href");if ("stylesheet" === a.rel && (d === t || d === u))return n()}var s = document.getElementsByTagName("style");for (i = 0; i < s.length; i++)if ((d = (a = s[i]).getAttribute("data-href")) === t || d === u)return n();var h = document.createElement("link");h.rel = "stylesheet",h.type = "text/css",h.onload = n,h.onerror = function(n) {var t = n && n.target && n.target.src || u, l = new Error("Loading CSS chunk " + e + " failed.\n(" + t + ")");l.code = "CSS_CHUNK_LOAD_FAILED",l.request = t,delete o[e],h.parentNode.removeChild(h),c(l)},h.href = u,document.getElementsByTagName("head")[0].appendChild(h)})).then((function() {o[e] = 0})));var c = u[e];if (0 !== c)if (c)n.push(c[2]);else {var t = new Promise((function(n, t) {c = u[e] = [n, t]}));n.push(c[2] = t);var l, i = document.createElement("script");i.charset = "utf-8",i.timeout = 120,r.nc && i.setAttribute("nonce", r.nc),i.src = function(e) {return r.p + "static/js/" + ({}[e] || e) + "." + {"chunk-2d0c2339": "df908623","chunk-2d21d0c2": "f10b1931","chunk-35866964": "302e2bfb","chunk-2360ff8e": "9743b626","chunk-38859794": "66283e5c","chunk-3c11c494": "4826745b","chunk-549e1a9c": "3d088ca7","chunk-7935269e": "d85f859e","chunk-419eda10": "42b68507","chunk-464dda61": "5940abb1","chunk-6cafc15a": "0212a01a","chunk-71d9e258": "f1eb98b7","chunk-7f496c16": "a88f156b","chunk-bb50558a": "0e61f5a1","chunk-efd8109e": "85fc6c16","chunk-4eb7095a": "1883497a","chunk-52ca585a": "58c51b53","chunk-5c99f7cd": "3bc3dfbc","chunk-9a15c92e": "8d6ff628","chunk-6b41533f": "9c170679","chunk-64568e68": "dd10ee97"}[e] + ".js"}(e),l = function(n) {i.onerror = i.onload = null,clearTimeout(a);var c = u[e];if (0 !== c) {if (c) {var t = n && ("load" === n.type ? "missing" : n.type), o = n && n.target && n.target.src, l = new Error("Loading chunk " + e + " failed.\n(" + t + ": " + o + ")");l.type = t,l.request = o,c[1](l)}u[e] = void 0}};var a = setTimeout((function() {l({type: "timeout",target: i})}), 12e4);i.onerror = i.onload = l,document.head.appendChild(i)}return Promise.all(n)},r.m = e,r.c = t,r.d = function(e, n, c) {r.o(e, n) || Object.defineProperty(e, n, {enumerable: !0,get: c})},r.r = function(e) {"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {value: "Module"}),Object.defineProperty(e, "__esModule", {value: !0})},r.t = function(e, n) {if (1 & n && (e = r(e)),8 & n)return e;if (4 & n && "object" == typeof e && e && e.__esModule)return e;var c = Object.create(null);if (r.r(c),Object.defineProperty(c, "default", {enumerable: !0,value: e}),2 & n && "string" != typeof e)for (var t in e)r.d(c, t, function(n) {return e[n]}.bind(null, t));return c},r.n = function(e) {var n = e && e.__esModule ? function() {return e.default}: function() {return e};return r.d(n, "a", n),n},r.o = function(e, n) {return Object.prototype.hasOwnProperty.call(e, n)},r.p = "/",r.oe = function(e) {throw e};var i = window.webpackJsonp = window.webpackJsonp || [], a = i.push.bind(i);i.push = n,i = i.slice();for (var d = 0; d < i.length; d++)n(i[d]);var s = a;l.push([12, "chunk-commons"]),c()
}({12: function(e, n, c) {e.exports = c("9a94")},5880: function(e, n) {e.exports = Vuex},"60bb": function(e, n) {e.exports = _},"9a94": function(e, n, c) {"use strict";c.r(n),c("e260"),c("e6cf"),c("cca6"),c("a79d"),c("d3b7"),c("3ca3"),c("ddb0");var t = c("c1f7");Vue.use(VueRouter);var o = new Vue, u = [{path: "/careers",component: t.a,children: [{path: "/colleges/search",component: function() {return Promise.all([c.e("chunk-5c99f7cd"), c.e("chunk-9a15c92e"), c.e("chunk-6b41533f")]).then(c.bind(null, "95fc"))},name: "CollegesSearch",meta: {title: "院校库",icon: ""}}, {path: "/colleges/detail",name: "CollegesDetail",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-6cafc15a")]).then(c.bind(null, "2e68"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "院校详情"}}, {path: "/colleges/liveList",name: "CollegesLiveList",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-efd8109e")]).then(c.bind(null, "6e40"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "院校直播页"}}, {path: "/colleges/scoreline",name: "CollegesScoreline",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-3c11c494"), c.e("chunk-7935269e")]).then(c.bind(null, "0be3"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "分数线"}}, {path: "/colleges/plan",name: "CollegesScoreline",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-3c11c494"), c.e("chunk-549e1a9c")]).then(c.bind(null, "4078"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "招生计划"}}, {path: "/colleges/introduction",name: "CollegesIntroduction",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-7f496c16")]).then(c.bind(null, "9c24"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "院校介绍"}}, {path: "/colleges/admissions-guide/list",name: "CollegesNewsList",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-2360ff8e")]).then(c.bind(null, "4a63"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "招生简章"}}, {path: "/colleges/admissions-guide/detail",name: "CollegesNewsDetail",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-419eda10")]).then(c.bind(null, "ceb6"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "招生简章"}}, {path: "/colleges/employmentreport/list",name: "CollegesEmploymentreportList",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-38859794")]).then(c.bind(null, "0bfa"))},beforeEnter: function(e, n, c) {c(),!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "就业报告"}}, {path: "/colleges/compare",name: "CollegesCompare",component: function() {return c.e("chunk-52ca585a").then(c.bind(null, "fd28"))},meta: {title: "院校对比"}}, {path: "/colleges/image-list",name: "CollegesImageList",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-464dda61")]).then(c.bind(null, "5ff8"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "院校风采"}}, {path: "/colleges/vr",name: "CollegesVR",component: function() {return c.e("chunk-2d0c2339").then(c.bind(null, "48fe"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "院校VR"}}, {path: "/colleges/preFraction",name: "CollegesPreFraction",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-bb50558a")]).then(c.bind(null, "baae"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "提前批招生计划"}}, {path: "/colleges/preFractionScoreline",name: "CollegesPreFractionScoreline",component: function() {return Promise.all([c.e("chunk-2d21d0c2"), c.e("chunk-35866964"), c.e("chunk-71d9e258")]).then(c.bind(null, "ca37"))},beforeEnter: function(e, n, c) {!e.query.collegeCode && e.query.cid ? o.api.sdk.dms.basiclib.colleges.bynumidGet(e.query.cid).then((function(n) {e.query.collegeCode = n.result.code,c()})) : c()},meta: {title: "提前批分数线"}}, {path: "/colleges/compare/probability",name: "CollegesCompareProbability",component: function() {return c.e("chunk-4eb7095a").then(c.bind(null, "5179"))},meta: {title: "院校录取概率"}}, {path: "/colleges/compare/score-line",name: "CollegesCompareScoreLine",component: function() {return c.e("chunk-64568e68").then(c.bind(null, "31fa"))},meta: {title: "院校分数线"}}]}], l = new VueRouter({mode: "history",scrollBehavior: function() {return {y: 0}},routes: u}), r = c("cf68");Object(r.a)(l, Vue)},6821: function(e, t, r) {!function() {var t = r("00d8"), n = r("9a63").utf8, i = r("8349"), o = r("9a63").bin, a = function(e, r) {e.constructor == String ? e = r && "binary" === r.encoding ? o.stringToBytes(e) : n.stringToBytes(e) : i(e) ? e = Array.prototype.slice.call(e, 0) : Array.isArray(e) || e.constructor === Uint8Array || (e = e.toString());for (var s = t.bytesToWords(e), u = 8 * e.length, c = 1732584193, f = -271733879, d = -1732584194, l = 271733878, h = 0; h < s.length; h++)s[h] = 16711935 & (s[h] << 8 | s[h] >>> 24) | 4278255360 & (s[h] << 24 | s[h] >>> 8);s[u >>> 5] |= 128 << u % 32,s[14 + (u + 64 >>> 9 << 4)] = u;var p = a._ff, b = a._gg, y = a._hh, m = a._ii;for (h = 0; h < s.length; h += 16) {var g = c, v = f, _ = d, w = l;c = p(c, f, d, l, s[h + 0], 7, -680876936),l = p(l, c, f, d, s[h + 1], 12, -389564586),d = p(d, l, c, f, s[h + 2], 17, 606105819),f = p(f, d, l, c, s[h + 3], 22, -1044525330),c = p(c, f, d, l, s[h + 4], 7, -176418897),l = p(l, c, f, d, s[h + 5], 12, 1200080426),d = p(d, l, c, f, s[h + 6], 17, -1473231341),f = p(f, d, l, c, s[h + 7], 22, -45705983),c = p(c, f, d, l, s[h + 8], 7, 1770035416),l = p(l, c, f, d, s[h + 9], 12, -1958414417),d = p(d, l, c, f, s[h + 10], 17, -42063),f = p(f, d, l, c, s[h + 11], 22, -1990404162),c = p(c, f, d, l, s[h + 12], 7, 1804603682),l = p(l, c, f, d, s[h + 13], 12, -40341101),d = p(d, l, c, f, s[h + 14], 17, -1502002290),c = b(c, f = p(f, d, l, c, s[h + 15], 22, 1236535329), d, l, s[h + 1], 5, -165796510),l = b(l, c, f, d, s[h + 6], 9, -1069501632),d = b(d, l, c, f, s[h + 11], 14, 643717713),f = b(f, d, l, c, s[h + 0], 20, -373897302),c = b(c, f, d, l, s[h + 5], 5, -701558691),l = b(l, c, f, d, s[h + 10], 9, 38016083),d = b(d, l, c, f, s[h + 15], 14, -660478335),f = b(f, d, l, c, s[h + 4], 20, -405537848),c = b(c, f, d, l, s[h + 9], 5, 568446438),l = b(l, c, f, d, s[h + 14], 9, -1019803690),d = b(d, l, c, f, s[h + 3], 14, -187363961),f = b(f, d, l, c, s[h + 8], 20, 1163531501),c = b(c, f, d, l, s[h + 13], 5, -1444681467),l = b(l, c, f, d, s[h + 2], 9, -51403784),d = b(d, l, c, f, s[h + 7], 14, 1735328473),c = y(c, f = b(f, d, l, c, s[h + 12], 20, -1926607734), d, l, s[h + 5], 4, -378558),l = y(l, c, f, d, s[h + 8], 11, -2022574463),d = y(d, l, c, f, s[h + 11], 16, 1839030562),f = y(f, d, l, c, s[h + 14], 23, -35309556),c = y(c, f, d, l, s[h + 1], 4, -1530992060),l = y(l, c, f, d, s[h + 4], 11, 1272893353),d = y(d, l, c, f, s[h + 7], 16, -155497632),f = y(f, d, l, c, s[h + 10], 23, -1094730640),c = y(c, f, d, l, s[h + 13], 4, 681279174),l = y(l, c, f, d, s[h + 0], 11, -358537222),d = y(d, l, c, f, s[h + 3], 16, -722521979),f = y(f, d, l, c, s[h + 6], 23, 76029189),c = y(c, f, d, l, s[h + 9], 4, -640364487),l = y(l, c, f, d, s[h + 12], 11, -421815835),d = y(d, l, c, f, s[h + 15], 16, 530742520),c = m(c, f = y(f, d, l, c, s[h + 2], 23, -995338651), d, l, s[h + 0], 6, -198630844),l = m(l, c, f, d, s[h + 7], 10, 1126891415),d = m(d, l, c, f, s[h + 14], 15, -1416354905),f = m(f, d, l, c, s[h + 5], 21, -57434055),c = m(c, f, d, l, s[h + 12], 6, 1700485571),l = m(l, c, f, d, s[h + 3], 10, -1894986606),d = m(d, l, c, f, s[h + 10], 15, -1051523),f = m(f, d, l, c, s[h + 1], 21, -2054922799),c = m(c, f, d, l, s[h + 8], 6, 1873313359),l = m(l, c, f, d, s[h + 15], 10, -30611744),d = m(d, l, c, f, s[h + 6], 15, -1560198380),f = m(f, d, l, c, s[h + 13], 21, 1309151649),c = m(c, f, d, l, s[h + 4], 6, -145523070),l = m(l, c, f, d, s[h + 11], 10, -1120210379),d = m(d, l, c, f, s[h + 2], 15, 718787259),f = m(f, d, l, c, s[h + 9], 21, -343485551),c = c + g >>> 0,f = f + v >>> 0,d = d + _ >>> 0,l = l + w >>> 0}return t.endian([c, f, d, l])};a._ff = function(e, t, r, n, i, o, a) {var s = e + (t & r | ~t & n) + (i >>> 0) + a;return (s << o | s >>> 32 - o) + t},a._gg = function(e, t, r, n, i, o, a) {var s = e + (t & n | r & ~n) + (i >>> 0) + a;return (s << o | s >>> 32 - o) + t},a._hh = function(e, t, r, n, i, o, a) {var s = e + (t ^ r ^ n) + (i >>> 0) + a;return (s << o | s >>> 32 - o) + t},a._ii = function(e, t, r, n, i, o, a) {var s = e + (r ^ (t | ~n)) + (i >>> 0) + a;return (s << o | s >>> 32 - o) + t},a._blocksize = 16,a._digestsize = 16,e.exports = function(e, r) {if (null == e)throw new Error("Illegal argument " + e);var n = t.wordsToBytes(a(e, r));return r && r.asBytes ? n : r && r.asString ? o.bytesToString(n) : t.bytesToHex(n)}}()},"00d8": function(e, t) {!function() {var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = {rotl: function(e, t) {return e << t | e >>> 32 - t},rotr: function(e, t) {return e << 32 - t | e >>> t},endian: function(e) {if (e.constructor == Number)return 16711935 & r.rotl(e, 8) | 4278255360 & r.rotl(e, 24);for (var t = 0; t < e.length; t++)e[t] = r.endian(e[t]);return e},randomBytes: function(e) {for (var t = []; e > 0; e--)t.push(Math.floor(256 * Math.random()));return t},bytesToWords: function(e) {for (var t = [], r = 0, n = 0; r < e.length; r++,n += 8)t[n >>> 5] |= e[r] << 24 - n % 32;return t},wordsToBytes: function(e) {for (var t = [], r = 0; r < 32 * e.length; r += 8)t.push(e[r >>> 5] >>> 24 - r % 32 & 255);return t},bytesToHex: function(e) {for (var t = [], r = 0; r < e.length; r++)t.push((e[r] >>> 4).toString(16)),t.push((15 & e[r]).toString(16));return t.join("")},hexToBytes: function(e) {for (var t = [], r = 0; r < e.length; r += 2)t.push(parseInt(e.substr(r, 2), 16));return t},bytesToBase64: function(e) {for (var r = [], n = 0; n < e.length; n += 3)for (var i = e[n] << 16 | e[n + 1] << 8 | e[n + 2], o = 0; o < 4; o++)8 * n + 6 * o <= 8 * e.length ? r.push(t.charAt(i >>> 6 * (3 - o) & 63)) : r.push("=");return r.join("")},base64ToBytes: function(e) {e = e.replace(/[^A-Z0-9+\/]/gi, "");for (var r = [], n = 0, i = 0; n < e.length; i = ++n % 4)0 != i && r.push((t.indexOf(e.charAt(n - 1)) & Math.pow(2, -2 * i + 8) - 1) << 2 * i | t.indexOf(e.charAt(n)) >>> 6 - 2 * i);return r}};e.exports = r}()},"9a63": function(e, t) {var r = {utf8: {stringToBytes: function(e) {return r.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString: function(e) {return decodeURIComponent(escape(r.bin.bytesToString(e)))}},bin: {stringToBytes: function(e) {for (var t = [], r = 0; r < e.length; r++)t.push(255 & e.charCodeAt(r));return t},bytesToString: function(e) {for (var t = [], r = 0; r < e.length; r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports = r},8349: function(e, t) {function r(e) {return !!e.constructor && "function" == typeof e.constructor.isBuffer && e.constructor.isBuffer(e)}e.exports = function(e) {return null != e && (r(e) || function(e) {return "function" == typeof e.readFloatLE && "function" == typeof e.slice && r(e.slice(0, 0))}(e) || !!e._isBuffer)}},
});
var n =yangxin("6821");
function get_sign(e, t) {var r, i = "9SASji5OWnG41iRKiSvTJHlXHmRySRp1", o = "", a = t || {}, s = (e = e || "").split("?");if (s.length > 0 && (r = s[1]),r) {var u = r.split("&"), c = "";u.forEach((function(e) {var t = e.split("=");c += "".concat(t[0], "=").concat(encodeURI(t[1]), "&")})),o = "".concat(_.trimEnd(c, "&"), "&").concat(i)} elseo = Object.keys(a).length > 0 ? "".concat(JSON.stringify(a), "&").concat(i) : "&".concat(i);o = o.toLowerCase()return n(o);};
// var e = '/youzy.dms.basiclib.api.college.query';
// var t = {
//     "keyword": "",
//     "provinceNames": [],
//     "natureTypes": [],
//     "eduLevel": "",
//     "categories": [],
//     "features": [],
//     "pageIndex": 13,
//     "pageSize": 20,
//     "sort": 11
// };
// console.log(get_sign(e,t))

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/diannao/49110.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Chapter17 表面着色器——Shader入门精要学习

Chapter17 表面着色器 一、编译指令1.表面函数2.光照函数3.其他可选参数 二、两个结构体1.Input 结构体&#xff1a;数据来源2.SurfaceOutput 三、Unity背后做了什么四、表面着色器的缺点 一、编译指令 作用&#xff1a;指明该表面着色器的 表面函数 和 光照函数&#xff0c;并…

DPDK收包流程和Linux内核收包流程对比

DPDK 网卡收包流程-腾讯云开发者社区-腾讯云NIC 在接收到数据包之后&#xff0c;首先需要将数据同步到内核中&#xff0c;这中间的桥梁是 rx ring buffer。它是由 NIC 和驱动程序共享的一片区域&#xff0c;事实上&#xff0c;rx ring buffer 存储的并不是实际的 packet 数据&a…

【Gin】精准应用:Gin框架中工厂模式的现代软件开发策略与实施技巧(上)

【Gin】精准应用&#xff1a;Gin框架中工厂模式的现代软件开发策略与实施技巧(上) 大家好 我是寸铁&#x1f44a; 【Gin】精准应用&#xff1a;Gin框架中工厂模式的现代软件开发策略与实施技巧(上)✨ 喜欢的小伙伴可以点点关注 &#x1f49d; 前言 本次文章分为上下两部分&…

【RaspberryPi】树莓派系统UI优化

接上文&#xff0c;如何去定制一个树莓派的桌面系统&#xff0c;还是以CM4为例。 解除CM4上电USB无法使用问题 将烧录好的tf卡通过读卡器插入到电脑上&#xff0c;进入boot磁盘&#xff0c;里面有一个Config文件&#xff0c;双击用记事本打开&#xff0c;在【pi4】一栏里加入一…

uboot 设置bootargs配置内核网络挂载根文件系统

uboot 设置bootargs配置内核网络挂载根文件系统 uboot设置bootargs env set bootargs "mem256M consolettyAMA0,115200 root/dev/nfs init/linuxrc nfsrootnfs主机地址:nfs路径/busybox/rootfs_glibc_arm64,prototcp rw nfsvers3 rootwait ip板子地址:nfs主机地址:网关:2…

C#与C++交互开发系列(六):同一个项目中使用C#和C++进行混合模式开发

欢迎来到C#与C交互开发系列的第六篇。在这篇博客中&#xff0c;我们将探讨混合编程&#xff0c;即在同一个项目中结合使用C#和C。在同一个项目中同时使用C/CLI和P/Invoke来实现C#与C的互操作。C/CLI提供了直接访问托管代码的能力&#xff0c;而P/Invoke则用于调用现有的C库函数…

网络安全防御--加密技术及身份、数据认证

VPN概述 VPN诞生的原因 1&#xff0c;物理专线成本高&#xff0c;在位置不固定的情况下&#xff0c;难以实现 2&#xff0c;直接将服务器开放到公网&#xff0c;不安全 VPN --- 虚拟专用网 --- 是指依靠ISP或者其他NSP或者企业自身&#xff0c;构建的专用的安全的数据通信网络&…

基于YOLO8的目标检测系统:开启智能视觉识别之旅

文章目录 在线体验快速开始一、项目介绍篇1.1 YOLO81.2 ultralytics1.3 模块介绍1.3.1 scan_task1.3.2 scan_taskflow.py1.3.3 target_dec_app.py 二、核心代码介绍篇2.1 target_dec_app.py2.2 scan_taskflow.py 三、结语 在线体验 基于YOLO8的目标检测系统 基于opencv的摄像头…

敏捷CSM认证:精通敏捷Scum估算方法,高效完成项目!

咱们做项目的时候可能都遇到过这种情况&#xff1a;项目一开始信心满满&#xff0c;觉得 deadline 稳了。结果呢&#xff1f;各种意外状况频出&#xff0c;时间好像怎么都不够用了&#xff0c;最后项目只能无奈延期&#xff0c;整个团队都像霜打的茄子。 说到底&#xff0c;还…

谷粒商城实战笔记-44-前端基础-Vue-整合ElementUI快速开发/设置模板代码

文章目录 一&#xff0c;安装导入ElementUI1&#xff0c;安装 element-ui2&#xff0c;导入 element-ui 二&#xff0c;ElementUI 实战1&#xff0c;将 App.vue 改为 element-ui 中的后台布局2&#xff0c;开发导航栏2.1 开发MyTable组件2.2 注册路由2.3 改造App.vue2.4 新增左…

Qt实现简易CAD软件的开发:技术解析与实现

文章目录 简易CAD软件的开发&#xff1a;技术解析与实现引言项目概述程序入口主窗口的实现主窗口类定义&#xff08;mainwindow.h&#xff09;主窗口类实现&#xff08;mainwindow.cpp&#xff09; 自定义绘图视图自定义绘图视图类定义&#xff08;myqgraphicsview.h&#xff0…

深入浅出C语言指针(进阶篇)

深入浅出C语言指针(基础篇) 深入浅出C语言指针(进阶篇) 目录 引言 一、指针和数组 1.数组名的理解 2.指针访问数组 3.一维数组传参的本质 二、二级指针 1.二级指针的概念 2.二级指针的内存表示 3.二级指针的解引用 三、字符指针 1.指针指向单个字符 2.指针指向字…

便携式自动气象站:科技赋能气象观测

便携式自动气象站&#xff0c;顾名思义&#xff0c;就是一款集成了多种气象传感器&#xff0c;能够自动进行气象观测和数据记录的设备。它体积小巧、重量轻&#xff0c;便于携带和快速部署&#xff0c;可以在各种环境下进行气象数据的实时监测。同时&#xff0c;通过内置的无线…

版本更新 | Orillusion 0.8发布,与大家同在!

过了这么久&#xff0c;我们Orillusion引擎的大版本更新终于来啦&#xff01; 这次的版本发布&#xff0c;大部分是更新了引擎底层能力&#xff0c;有兴趣的小伙伴可以直接查看&#xff1a; &#x1f517; https://github.com/Orillusion/orillusion 其实面对社区的小伙伴&…

应对爬虫过程中代理IP掉线的实用指南

当代理IP在爬虫中频繁掉线时&#xff0c;我们先要了解出现问题的可能原因&#xff0c;这不仅限于技术性因素&#xff0c;还涉及操作策略和环境因素。只有在找到具体原因后&#xff0c;才能针对问题类型从源头解决IP掉线问题。 一、问题原因&#xff1a; 1. 代理IP质量问题导致…

Python将字典转换为DataFrame的实战代码

大家好,我是爱编程的喵喵。双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中。从事机器学习以及相关的前后端开发工作。曾在阿里云、科大讯飞、CCF等比赛获得多次Top名次。现为CSDN博客专家、人工智能领域优质创作者。喜欢通过博客创作的方式对所学的…

AWS监控工具,监控性能指标

执行AWS监视是为了跟踪在AWS环境中主动运行的应用程序工作负载和资源&#xff0c;AWS监视器跟踪各种AWS云指标&#xff0c;以帮助提高在其上运行的应用程序的整体性能。 借助阈值突破警报系统&#xff0c;AWS应用程序监控在识别性能瓶颈来源方面起着至关重要的作用&#xff0c…

力扣高频SQL 50题(基础版)第五题

文章目录 力扣高频SQL 50题&#xff08;基础版&#xff09;第五题1683. 无效的推文题目说明&#xff1a;思路分析&#xff1a;实现过程&#xff1a;结果截图&#xff1a; 力扣高频SQL 50题&#xff08;基础版&#xff09;第五题 1683. 无效的推文 题目说明&#xff1a; 表&a…

图片转pdf的软件有哪些?这几种转换工具了解下

在日常的办公学习中&#xff0c;图片转PDF的需求愈发普遍。不论是工作汇报、学习笔记还是生活点滴&#xff0c;我们都希望将重要的图片内容整理成易于查阅的PDF格式。那么&#xff0c;有哪些软件可以做到将图片转换成PDF格式呢&#xff1f;给大家介绍5种简单好用的转换方法&…

Xlua原理 二

一已经介绍了初步的lua与C#通信的原理&#xff0c;和xlua的LuaEnv的初始化内容。 这边介绍下Wrap文件。 一.Wrap介绍 导入xlua后可以看到会多出上图菜单。 点击后生成一堆wrap文件&#xff0c;这些文件是lua调用C#时进行映射查找用的中间代码。这样就不需要去反射调用节约性…