-
-
[分享]猿人学2023第七题算法分享
-
发表于: 2023-6-24 16:46 608
-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | const _replaceMap = { 0 : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAATCAYAAABGKffQAAACWElEQVR4nE2QzW9MYRjFf+9778ydmdtplQajvbc1oa2PIMTHykIQCwsLfwBrxMLC3t7CRrpoQiJW7EkkPhKRYlEfIU1ECdpKi1HtmI9773ssppGe5Fmck985i8dEQ8PCs/BnCdO/nfah7SRWWJsRvJzAflxAPSXIHD7WQr2B9p/m99XLLI9WEB3lp1+z9tIF8hNfUFiEaCBSvOeUumZbQlLw6rF6x28ofP9NSPLnnqt/97CigWER9w1o47V7HfDZHcXDsQaLZQ3uOq3yVE1I6r1yRoPrKrImHKFx/DDQoPv6GGYBsmoV9+Up5VsPMIL6sRO4IIfV3n00t5awPybJT33AdYWYVhsCD3/yATkgiUfJ1uSxrtpN2wPv3Qx2OoE84AQemMWf+DXQhjJuh8NmxREEeIu/sMZ03uCAggcfW/ifE/DWk67fgsVfC4BfnwdWYADjQfsvtt4AAjBlrMt1YGRXseoUbQObNlayFGtcaxXwf7bjXYD8/ErmYU1SAyAL+0CrCnLgh7hSF1DHJPNY0/yEAbJiiNyq4VYGmwOyOAdpDW9hBuvVZrFAtqWCq1hIAWsgE+rtod0n7Ld5/EmDNS+mKc4lZNWDJFuHsEtNVMhDMyXdeYTEGApvHuE1/mLN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WUWJcM5Rr91n8fo8yRtvsdYH+dkfcbWYgDiC4Srxq4exVgNXe0C09IgHLx1j9e2jqFVny5ffIcviiNexHVPUz54mePM1sssNksIg0fQe2kDP6ZNk5u6hsIAjk4PFBXLzD3n8zDTNTduuvkDvzBm2nDmPsgVQB/OVCbHWxipPEu/ytBFmRmbhFm7uDklY2PiO4H+wekGJP70ZggAAAABJRU5ErkJggg==" }; let replaceMap = {}; for (const replaceMapKey in _replaceMap) { replaceMap[_replaceMap[replaceMapKey]] = replaceMapKey } function ckq(e, k, o) { return btoa(e + k).replace( / = / g, "") } function hsha_ff(a, b, c, d, e, f, g, h) { let t = safe_add((b & c), ~(b) & d); return hsha_cmn(t, a, b, e, f, g, 6 ) } function hsha_gg(a, b, c, d, e, f, g, h) { let t = safe_add((b & d), c & ~(d)); return hsha_cmn(t, a, b, e, f, g, 6 ) } function hsha_hh(a, b, c, d, e, f, g, h) { let t = b ^ c ^ d; return hsha_cmn(t, a, b, e, f, g, 6 ); } function hsha_ii(a, b, c, d, e, f, g, h) { let t = c ^ (b | ~(d)); return hsha_cmn(t, a, b, e, f, g, 6 ) } function hsha_cmn(a, b, c, d, e, f, g) { return safe_add(bit_rol(safe_add(safe_add(b, a, 2 ), safe_add(d, f, 2 ), 2 ), e, 2 ), c, 2 ) } function safe_add(a, b, c) { let t = (a & 65535 ) + (b & 65535 ); let k = ((a >> 16 ) + (b >> 16 )) + (t >> 16 ); return (k << 16 ) | (t & 65535 ) } function bit_rol(a, b, c) { return (a << b) | (a >>> ( 32 - b)) } function binl2hex(e) { let s = ""; for (let i = 0 ; i < e.length; i + + ) { let n = e[i]; for (let j = 0 ; j < 4 ; j + + ) { s + = "0123456789abcdef" .charAt((n >> (((j % 4 ) * 8 ) + 4 )) & 15 ) s + = "0123456789abcdef" .charAt((n >> (((j % 4 ) * 8 ))) & 15 ) } } return s } function str2binl(e) { let arr = []; let num = 0 ; for (let i = 0 ; i < e.length; i + + ) { num + = (e.charCodeAt(( 8 * i) / 8 ) & 255 ) << (( 8 * i) % 32 ); if (i && (i + 1 ) % 4 = = = 0 || i = = = e.length - 1 ) { arr.push(num); num = 0 ; } } return arr } function core_hsha(arr, bit) { let newArray = arr. slice ( 0 ); newArray[bit >> 5 ] = arr[bit >> 5 ] | ( 128 << (bit % 32 )); newArray.length = 14 ; newArray.push(bit); let funcs = [hsha_ff, hsha_gg, hsha_hh, hsha_ii]; let keys = [ 1888437479 , - 1564276879 , - 2446685777 , 3443827714 ]; let ciphers = [].concat(keys).concat([ 0 ]).concat(keys); let bits = [[ 7 , 12 , 17 , 22 ], [ 5 , 9 , 14 , 20 ], [ 4 , 11 , 16 , 23 ], [ 6 , 10 , 15 , 21 ]]; let newArrayIndexs = [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , / / 1 等差数列 1 , 6 , 11 , 0 , 5 , 10 , 15 , 4 , 9 , 14 , 3 , 8 , 13 , 2 , 7 , 12 , / / 5 等差数列 5 , 8 , 11 , 14 , 1 , 4 , 7 , 10 , 13 , 0 , 3 , 6 , 9 , 12 , 15 , 2 , / / 3 等差数列 0 , 7 , 14 , 5 , 12 , 3 , 10 , 1 , 8 , 15 , 6 , 13 , 4 , 11 , 2 , 9 / / 7 等差数列 ]; let bb = [ - 834672873 , - 757264886 , 73175179 , - 84457825 , - 841667502 , 772097767 , - 21495573 , - 538088001 , 614928512 , - 124439147 , - 203928014 , - 858519982 , 153637471 , - 40341101 , - 890647817 , 797098390 , - 334588759 , - 1069501632 , 67027649 , - 672397138 , - 701558691 , 748927709 , - 660478335 , - 212254394 , 154687418 , - 1019803690 , - 433925248 , 1163531501 , - 1444681467 , - 482752928 , 477534986 , - 1926607734 , - 378558 , - 780378235 , 656768880 , - 35309556 , - 1530992060 , 284289595 , - 155497632 , - 1094730640 , 681279174 , - 758763037 , - 124193971 , 219141156 , - 687603159 , - 421815835 , 530742520 , - 995338651 , - 198630844 , 1126891415 , - 1416354905 , - 57434055 , 1700485571 , - 1894986606 , - 1051523 , - 864262567 , 616373459 , - 782024841 , - 665719564 , 200189745 , - 881493683 , - 22019736 , 553941102 , - 455351945 ]; for (let i = 0 ; i < bits.length; i + + ) { let func = funcs.shift(); for (let _ = 0 ; _ < 4 ; _ + + ) { for (let x = 0 ; x < bits[i].length; x + + ) { let index = ( 4 - x) % 4 ; ciphers[index] = func(ciphers[index % 4 ], ciphers[(index + 1 ) % 4 ], ciphers[(index + 2 ) % 4 ], ciphers[(index + 3 ) % 4 ], newArray[newArrayIndexs.shift()], bits[i][x], bb.shift(), 7 ); } } } let result = []; for (let i = 0 ; i < 4 ; i + + ) { result.push(safe_add(ciphers[i], ciphers[i + 5 ], 2 )) } return result } function hex_sha256(e, k, j) { return binl2hex(core_hsha(str2binl(ckq(e, k)), j ? 216 : 248 )); } function getEncrypted(key, j_key, style) { return style ? hex_sha256(key, j_key, style) : hex_sha256(key + "" + j_key); } function parseResponse(data) { let sign = getEncrypted(data.key, data.j_key, data.keep_style); let TdElements = data.info.replace( "<td>" , " ").replaceAll(" < / td> ", " "); let BOX = []; let tdElements = TdElements.split( "<td>" ); for (const ImsElements of tdElements) { let imgElements = ImsElements.split( "><img " ); let box = []; let s = []; for (let i = 0 ; i < imgElements.length; i + + ) { let img = imgElements[i]; if (img.includes(sign)) { continue } let imgInfo = parseImg(img); box.push(imgInfo) } for (let i = 0 ; i < box.length; i + + ) { s[i + parseInt(box[i].style / 11 )] = box[i].value } BOX.push(parseInt(s.join(""))) } return BOX } function parseImg(img) { img = img.replace( "<img " , " ").replaceAll(" > ", " "); return { value: parseInt(replaceMap[img.match( / src = "(.*?)" / )[ 1 ]]), style: parseInt(img.match( / style = "left:([ - ] * \d + )px / )[ 1 ]) } } |
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)
最后于 2023-6-24 16:50
被mb_wpuyiaon编辑
,原因:
赞赏
他的文章
看原图
赞赏
雪币:
留言: