21 Star 0 Fork 5

cp / cp-gitee-public

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vulnerability.py 972 Bytes
一键复制 编辑 原始数据 按行查看 历史
sxz12345 提交于 2023-03-31 03:47 . 减少漏洞数量
from Cryptodome.Cipher import DES, DES3, ARC2, ARC4, Blowfish, AES
from Cryptodome.Random import get_random_bytes
from Crypto.Cipher import AES
from Crypto.Random import get_random_bytes
from Crypto.Util.Padding import pad, unpad
from cryptography.hazmat.primitives.asymmetric import rsa, ec, dsa
from Cryptodome.Cipher import AES, PKCS1_OAEP, PKCS1_v1_5
from Cryptodome.Random import get_random_bytes
from Cryptodome.PublicKey import RSA
from jinja2 import Environment
import tempfile
import ldap
def init_ldap():
connect = ldap.initialize('ldap://example:1389')
connect.simple_bind('cn=root')
connect.simple_bind_s('cn=root')
connect.bind_s('cn=root', None)
connect.bind('cn=root', None)
filename = tempfile.mktemp()
tmp_file = open(filename, "w+")
env = Environment()
env = Environment(autoescape=False)
# Example for a symmetric cipher: AES
AES.new(key, AES.MODE_ECB)
AES.new(key, AES.MODE_CBC)
1
https://gitee.com/sxz12345/cp-gitee-public.git
git@gitee.com:sxz12345/cp-gitee-public.git
sxz12345
cp-gitee-public
cp-gitee-public
master

搜索帮助