程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python crawler series reverse algorithm for Meikai applet

編輯:Python

Python Crawler series of the United States to dismantle the small program reverse algorithm

The applet crawler receives the order 、app Crawler receiving order 、 Web crawlers receive orders 、 Interface customization 、 Website development 、 Applet development > Click here to contact us <

Please scan the QR code below for wechat

The code is for learning and communication only , Do not use for illegal purposes

Go straight to the code

import execjs
# Interface key , The code is for learning only , Do not provide exposed signatures
js = '''
function encrypt(t) {

var t = t + "&ct=3&vcode=" + a;
return e.AES.encrypt(t, secret , {

mode: e.mode.ECB,
padding: e.pad.Pkcs7
}).toString();
return t;
}
function decrypt(s) {

var decryptedData = e.AES.decrypt(s, secret , {

mode: e.mode.ECB,
padding: e.pad.Pkcs7
});
return decryptedData.toString(e.enc.Utf8)
}
var e = require("./crypto-js.js"), n = "online", a = "9.7.4";
'''
ctx = execjs.compile(js)
# encryption
encrytedStr = ctx.call("encrypt", '''mod=order&operation=carorder&uid=755312&loginid=7b8cc0c60afa288e87aa8ea2d976c32c&gcount=1&aid=158491&cid=&ginfo=[{"gid":"35171","color":"0","size":"0","count":1,"rec_goods_id":0,"rec_cart_id":0,"referee":0}]&desc=&gdt_vid=&weixinadinfo=&roomId=0&command=&isDeduct=0''')
print(encrytedStr)
# The encrypted value of the above parameter
# ZSCMqvhxmiDQuxKZsWGAoMW+/7kO3mT9dkzkXQCaqKVweMCXnZB9dQu8lt9As8XezGqARe2nzYxO6sYNFTcf+/rCpGgU46HPHrpBxlQkc1HeizBiqmYqT968XD2ble9fVNAXYu/rlUSGl9ATBPQJMr8faKrqoEcd9JgdInbECwSzn7s0b0ahbXq4B6SEdeAHVyb0QsnS1g+ikSvxm8FcAThQWJ+Ag759D31zkDjkK6sPfE3+f2H4/CEFwczPZdpnPSW9ZAaeyj7Dr19vRwDLeaMxe496zTqBQ8fs8H21DMUsr+gDXj/Z9P69vn0CnKuvp23yZTJSPZOqOCSIZqahVw3bgaEuTWKqfP41DvHHp8PJv5Lbgw+yRjYxX8LVlYTO
# Decrypted ciphertext below
# ZSCMqvhxmiDQuxKZsWGAoMW+/7kO3mT9dkzkXQCaqKVweMCXnZB9dQu8lt9As8XezGqARe2nzYxO6sYNFTcf+/rCpGgU46HPHrpBxlQkc1HeizBiqmYqT968XD2ble9fVNAXYu/rlUSGl9ATBPQJMr8faKrqoEcd9JgdInbECwSzn7s0b0ahbXq4B6SEdeAHVyb0QsnS1g+ikSvxm8FcAThQWJ+Ag759D31zkDjkK6sPfE3+f2H4/CEFwczPZdpnPSW9ZAaeyj7Dr19vRwDLeaMxe496zTqBQ8fs8H21DMUsr+gDXj/Z9P69vn0CnKuvp23yZTJSPZOqOCSIZqahVw3bgaEuTWKqfP41DvHHp8PJv5Lbgw+yRjYxX8LVlYTO
# Decrypt
decryptedStr = ctx.call("decrypt", "ZSCMqvhxmiDQuxKZsWGAoMW+/7kO3mT9dkzkXQCaqKVweMCXnZB9dQu8lt9As8XezGqARe2nzYxO6sYNFTcf+/rCpGgU46HPHrpBxlQkc1HeizBiqmYqT968XD2ble9fVNAXYu/rlUSGl9ATBPQJMr8faKrqoEcd9JgdInbECwSzn7s0b0ahbXq4B6SEdeAHVyb0QsnS1g+ikSvxm8FcAThQWJ+Ag759D31zkDjkK6sPfE3+f2H4/CEFwczPZdpnPSW9ZAaeyj7Dr19vRwDLeaMxe496zTqBQ8fs8H21DMUsr+gDXj/Z9P69vn0CnKuvp23yZTJSPZOqOCSIZqahVw3bgaEuTWKqfP41DvHHp8PJv5Lbgw+yRjYxX8LVlYTO")
print(decryptedStr)

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved