某狐图片地址加密

发布于 2023年4月1日 | 作者: 元识AI

声明:内容仅为爬虫学习使用,请勿用作其他用途,如有侵权请联系客服删除

检查源代码 发现是加密的

抓包

搜索图片地址

抓包

点击 AE

断点

发现AES加密,密钥是 o的内容

直接上代码

const CryptoJS = require('crypto-js');

const ciphertext = ''; // 待解密的密文
const key = ''; // 密钥


const bytes = CryptoJS.AES.decrypt(ciphertext, CryptoJS.enc.Utf8.parse(key), {
    mode: CryptoJS.mode.ECB,
    padding: CryptoJS.pad.Pkcs7
});

const plaintext = bytes.toString(CryptoJS.enc.Utf8);

console.log(plaintext); // 输出解密后的明文



import base64
from Crypto.Cipher import AES

ciphertext = base64.b64decode('')  # 待解密的密文
key = ''.encode()  # 密钥
cipher = AES.new(key, AES.MODE_ECB)  # 使用ECB模式
cipher = cipher.decrypt(ciphertext)  # 解密
a = cipher.decode('utf-8').rstrip('\r')  

plaintext = AES.new(key, AES.MODE_ECB).decrypt(ciphertext).decode('utf-8').rstrip('\r')  
print(plaintext)  # 输出解密后的明文
联系客服
客服QQ
回到顶部