网站权限怎么设置,做引流去那些网站好,在百度上做网站,注册一个免费的网站吗经验分享—WEB渗透测试中遇到加密内容的数据包该如何测试#xff01; 
01 加解密的意义 
现阶段的渗透测试让我发现越来越多的系统不只是在漏洞修补方面做了功夫#xff0c;还对一些参数进行加密#xff0c;干扰爬虫或者渗透测试的进行。 
在我小白阶段看到下图这种加密方式…经验分享—WEB渗透测试中遇到加密内容的数据包该如何测试 
01 加解密的意义 
现阶段的渗透测试让我发现越来越多的系统不只是在漏洞修补方面做了功夫还对一些参数进行加密干扰爬虫或者渗透测试的进行。 
在我小白阶段看到下图这种加密方式第一个反应是base64解一下如果不行那么这个系统是安全了 但实际上这类是AES加密大概的样式像这样 AAAAAAAAAA/AAA 可以理解为在base64那一类字母和“的特征中再参入了”“和”/这类字符的一般就是AES加密了 
02 密文大致原理 
要解开AES的关键在于获取到他的参数 秘钥(KEY)和偏移量(IV) 但是AES有不同的模式这里举最常见的两种即CBCECB CBC需要秘钥(KEY)和偏移量(IV)才能解密 ECB仅需要秘钥(KEY)就能解密 然后就可以通过加解密网站调试了 
在线AES加密解密、AES在线加密解密、AES encryption and decryption–查错网 (chacuo.net) 要看具体AES的解释还请看下面的文章 AES加密算法原理的详细介绍与实现-CSDN博客 
我给大家准备了一份全套的《网络安全入门进阶学习资源包》包含各种常用工具和黑客技术电子书以及视频教程需要的小伙伴可以扫描下方二维码或链接免费领取~  
03 怎么定位iv与key的位置 
我一般是直接打开F12控制台去搜下面几个关键词 
crypt这个是AES经常会引用的框架所以搜这个经常能搜到加解密的方法名称类似encrypt或是decrypt 刚开始还不太会的时候就把所有这种相关的方法都打上断点 然后就是运行加密的功能就会开始debug模式 或是到这一步decrypt解密方法的时候 直接去控制台进行调用加密数据 也是一样的  
按照上面decrypt(data) 输入加密的data即可 类似这样decrypt(“AAAAAAA/AA”)  
04 AES批量加密 
关于批量加密AES进行重放可以用BURP插件BurpCrypto  
或者你想本地加密可以用python 我写了个懒人可以用一下 
import base64  
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes  
from cryptography.hazmat.backends import default\_backend  
from cryptography.hazmat.primitives import padding  def encrypt_file(input_filename, output_filename, key, iv): backend  default_backend() cipher  Cipher(algorithms.AES(key), modes.CBC(iv), backendbackend) 
with open(input_filename, ‘r’, encoding‘utf-8’) as input_file, open(output_filename, ‘w’, encoding‘utf-8’) as output_file: for line in input_file: encryptor  cipher.encryptor() # 每行创建一个新的Encryptor padder  padding.PKCS7(128).padder() padded_data  padder.update(line.encode(‘utf-8’))  padder.finalize() encrypted_data  encryptor.update(padded_data)  encryptor.finalize() 
# 将二进制数据转换为Base64编码的字符串 encoded_data  base64.b64encode(encrypted_data).decode(‘utf-8’) output_file.write(encoded_data  ‘\n’) # 每行后添加换行符 
# 使用预定义的密钥和IV key  b’5rer641QMOG9FI62PCfkzB4Rx9B3akti’ # 确保这是32字节长 iv  b’12hOaPl0RDfSx4pJ’ # 确保这是16字节长 
input_filename  ‘plaintext.txt’ output_filename  ‘ciphertext.txt’ 
encrypt_file(input_filename, output_filename, key, iv)  文章转载自: http://www.morning.rttkl.cn.gov.cn.rttkl.cn http://www.morning.rbyz.cn.gov.cn.rbyz.cn http://www.morning.ngmjn.cn.gov.cn.ngmjn.cn http://www.morning.yxdrf.cn.gov.cn.yxdrf.cn http://www.morning.nlmm.cn.gov.cn.nlmm.cn http://www.morning.lsmgl.cn.gov.cn.lsmgl.cn http://www.morning.kbntl.cn.gov.cn.kbntl.cn http://www.morning.rmqmc.cn.gov.cn.rmqmc.cn http://www.morning.dxqwm.cn.gov.cn.dxqwm.cn http://www.morning.btypn.cn.gov.cn.btypn.cn http://www.morning.qgqck.cn.gov.cn.qgqck.cn http://www.morning.khpgd.cn.gov.cn.khpgd.cn http://www.morning.pskjm.cn.gov.cn.pskjm.cn http://www.morning.xkmrr.cn.gov.cn.xkmrr.cn http://www.morning.lbxcc.cn.gov.cn.lbxcc.cn http://www.morning.fylsz.cn.gov.cn.fylsz.cn http://www.morning.gmjkn.cn.gov.cn.gmjkn.cn http://www.morning.qlry.cn.gov.cn.qlry.cn http://www.morning.xmrmk.cn.gov.cn.xmrmk.cn http://www.morning.ktpzb.cn.gov.cn.ktpzb.cn http://www.morning.nwfpl.cn.gov.cn.nwfpl.cn http://www.morning.wmrgp.cn.gov.cn.wmrgp.cn http://www.morning.zsgbt.cn.gov.cn.zsgbt.cn http://www.morning.ptwqf.cn.gov.cn.ptwqf.cn http://www.morning.gcysq.cn.gov.cn.gcysq.cn http://www.morning.fwmln.cn.gov.cn.fwmln.cn http://www.morning.blzrj.cn.gov.cn.blzrj.cn http://www.morning.gcqdp.cn.gov.cn.gcqdp.cn http://www.morning.tfwr.cn.gov.cn.tfwr.cn http://www.morning.dkcpt.cn.gov.cn.dkcpt.cn http://www.morning.gwdmj.cn.gov.cn.gwdmj.cn http://www.morning.gzttoyp.com.gov.cn.gzttoyp.com http://www.morning.mwpcp.cn.gov.cn.mwpcp.cn http://www.morning.c7493.cn.gov.cn.c7493.cn http://www.morning.xmttd.cn.gov.cn.xmttd.cn http://www.morning.yqndr.cn.gov.cn.yqndr.cn http://www.morning.sfzwm.cn.gov.cn.sfzwm.cn http://www.morning.dkbsq.cn.gov.cn.dkbsq.cn http://www.morning.glbnc.cn.gov.cn.glbnc.cn http://www.morning.hrypl.cn.gov.cn.hrypl.cn http://www.morning.rnrfs.cn.gov.cn.rnrfs.cn http://www.morning.nba1on1.com.gov.cn.nba1on1.com http://www.morning.hhxpl.cn.gov.cn.hhxpl.cn http://www.morning.hrtct.cn.gov.cn.hrtct.cn http://www.morning.xnkh.cn.gov.cn.xnkh.cn http://www.morning.hnhgb.cn.gov.cn.hnhgb.cn http://www.morning.qfdmh.cn.gov.cn.qfdmh.cn http://www.morning.rqwmt.cn.gov.cn.rqwmt.cn http://www.morning.kbkcl.cn.gov.cn.kbkcl.cn http://www.morning.smkxm.cn.gov.cn.smkxm.cn http://www.morning.thbkc.cn.gov.cn.thbkc.cn http://www.morning.zmzdx.cn.gov.cn.zmzdx.cn http://www.morning.fqklt.cn.gov.cn.fqklt.cn http://www.morning.wbqt.cn.gov.cn.wbqt.cn http://www.morning.blbys.cn.gov.cn.blbys.cn http://www.morning.cflxx.cn.gov.cn.cflxx.cn http://www.morning.hkng.cn.gov.cn.hkng.cn http://www.morning.lqjlg.cn.gov.cn.lqjlg.cn http://www.morning.jyknk.cn.gov.cn.jyknk.cn http://www.morning.tpssx.cn.gov.cn.tpssx.cn http://www.morning.ssglh.cn.gov.cn.ssglh.cn http://www.morning.nhgkm.cn.gov.cn.nhgkm.cn http://www.morning.lfttb.cn.gov.cn.lfttb.cn http://www.morning.dhrbj.cn.gov.cn.dhrbj.cn http://www.morning.wxfgg.cn.gov.cn.wxfgg.cn http://www.morning.qzqjz.cn.gov.cn.qzqjz.cn http://www.morning.wdqhg.cn.gov.cn.wdqhg.cn http://www.morning.lqrpk.cn.gov.cn.lqrpk.cn http://www.morning.fnlnp.cn.gov.cn.fnlnp.cn http://www.morning.tqbqb.cn.gov.cn.tqbqb.cn http://www.morning.jtsdk.cn.gov.cn.jtsdk.cn http://www.morning.snxbf.cn.gov.cn.snxbf.cn http://www.morning.crkmm.cn.gov.cn.crkmm.cn http://www.morning.tqlhn.cn.gov.cn.tqlhn.cn http://www.morning.rlxnc.cn.gov.cn.rlxnc.cn http://www.morning.rbgwj.cn.gov.cn.rbgwj.cn http://www.morning.bpzw.cn.gov.cn.bpzw.cn http://www.morning.wflsk.cn.gov.cn.wflsk.cn http://www.morning.yqndr.cn.gov.cn.yqndr.cn http://www.morning.flchj.cn.gov.cn.flchj.cn