1 Star 0 Fork 0

KeyBoxDZD/impacket11

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 3.08 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python
# Impacket - Collection of Python classes for working with network protocols.
#
# SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved.
#
# This software is provided under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Description:
# Setup file
#
import glob
import os
import platform
from setuptools import setup
from subprocess import *
PACKAGE_NAME = "impacket"
VER_MAJOR = 0
VER_MINOR = 9
VER_MAINT = 25
VER_PREREL = "dev1"
try:
if call(["git", "branch"], stderr=STDOUT, stdout=open(os.devnull, 'w')) == 0:
p = Popen("git log -1 --format=%cd --date=format:%Y%m%d.%H%M%S", shell=True, stdin=PIPE, stderr=PIPE, stdout=PIPE)
(outstr, __) = p.communicate()
(VER_CDATE,VER_CTIME) = outstr.strip().decode("utf-8").split('.')
p = Popen("git rev-parse --short HEAD", shell=True, stdin=PIPE, stderr=PIPE, stdout=PIPE)
(outstr, __) = p.communicate()
VER_CHASH = outstr.strip().decode("utf-8")
VER_LOCAL = "+{}.{}.{}".format(VER_CDATE, VER_CTIME, VER_CHASH)
else:
VER_LOCAL = ""
except Exception:
VER_LOCAL = ""
if platform.system() != 'Darwin':
data_files = [(os.path.join('share', 'doc', PACKAGE_NAME), ['README.md', 'LICENSE']+glob.glob('doc/*'))]
else:
data_files = []
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name=PACKAGE_NAME,
version="{}.{}.{}.{}{}".format(VER_MAJOR, VER_MINOR, VER_MAINT, VER_PREREL, VER_LOCAL),
description="Network protocols Constructors and Dissectors",
url="https://www.secureauth.com/labs/open-source-tools/impacket",
author="SecureAuth Corporation",
author_email="oss@secureauth.com",
maintainer="SecureAuth's Innovation Labs ",
maintainer_email="oss@secureauth.com",
license="Apache modified",
long_description=read('README.md'),
long_description_content_type="text/markdown",
platforms=["Unix", "Windows"],
packages=['impacket', 'impacket.dcerpc', 'impacket.examples', 'impacket.dcerpc.v5', 'impacket.dcerpc.v5.dcom',
'impacket.krb5', 'impacket.ldap', 'impacket.examples.ntlmrelayx',
'impacket.examples.ntlmrelayx.clients', 'impacket.examples.ntlmrelayx.servers',
'impacket.examples.ntlmrelayx.servers.socksplugins', 'impacket.examples.ntlmrelayx.utils',
'impacket.examples.ntlmrelayx.attacks', 'impacket.examples.ntlmrelayx.attacks.httpattacks'],
scripts=glob.glob(os.path.join('examples', '*.py')),
data_files=data_files,
install_requires=['pyasn1>=0.2.3', 'pycryptodomex', 'pyOpenSSL>=0.16.2', 'six', 'ldap3>=2.5,!=2.5.2,!=2.5.0,!=2.6',
'ldapdomaindump>=0.9.0', 'flask>=1.0', 'future', 'chardet'],
extras_require={'pyreadline:sys_platform=="win32"': [],
},
classifiers=[
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
]
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/keyboxdzd/impacket11.git
git@gitee.com:keyboxdzd/impacket11.git
keyboxdzd
impacket11
impacket11
master

搜索帮助