From: Sophie Brun <sophie@freexian.com>
Date: Fri, 17 Jan 2020 17:34:20 +0100
Subject: Reintroduce setup.py (no poetry in Kali) and MANIFEST.in

Forwarded: not-needed

Last-Update: 2020-11-30
---
 MANIFEST.in | 23 +++++++++++++++++++++++
 setup.py    | 42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100755 MANIFEST.in
 create mode 100755 setup.py

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100755
index 0000000..dbcb1da
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,23 @@
+recursive-include cme/data *
+recursive-include cme/modules *
+recursive-include cme/thirdparty *
+prune cme/data/powersploit/Tests
+prune cme/data/powersploit/CodeExecution/Invoke-ReflectivePEInjection_Resources
+prune cme/data/powersploit/Exfiltration/LogonUser
+prune cme/data/powersploit/Exfiltration/NTFSParser
+prune cme/data/powersploit/Recon/Dictionaries
+prune cme/data/invoke-vnc/vncdll
+prune cme/data/invoke-vnc/winvnc
+prune cme/data/invoke-vnc/ReflectiveDLLInjection
+recursive-exclude cme/data/invoke-vnc *.py *.bat *.msbuild *.sln pebytes.ps1
+prune cme/data/RID-Hijacking/modules
+prune cme/data/RID-Hijacking/slides
+prune cme/data/netripper/DLL
+prune cme/data/netripper/Metasploit
+prune cme/data/netripper/Release
+prune cme/data/netripper/NetRipper
+prune cme/data/netripper/minhook
+prune cme/data/netripper/x64
+prune cme/data/netripper/Win32
+recursive-exclude cme/data/netripper *.pdf *.sln
+recursive-exclude cme/data/ LICENSE* *.md .git*
diff --git a/setup.py b/setup.py
new file mode 100755
index 0000000..3a5dc1b
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,42 @@
+#!/usr/bin/env python3
+
+from setuptools import setup, find_packages
+
+setup(name='crackmapexec',
+    version='5.1.4dev',
+    description='A swiss army knife for pentesting networks',
+    classifiers=[
+        'Environment :: Console',
+        'License :: OSI Approved :: BSD License',
+        'Programming Language :: Python :: 3',
+        'Topic :: Security',
+    ],
+    keywords='pentesting security windows active-directory networks',
+    url='http://github.com/byt3bl33d3r/CrackMapExec',
+    author='byt3bl33d3r',
+    author_email='byt3bl33d3r@pm.com>',
+    license='BSD-2-clause',
+    packages=find_packages(include=[
+        "cme", "cme.*"
+    ]),
+    install_requires=[
+        "requests>=2.9.1",
+        "requests-ntlm>=0.3.0",
+        "beautifulsoup4>=0.0.1",
+        "lsassy>=2.1.2",
+        "termcolor>=1.1.0",
+        "msgpack>=1.0.0",
+        "neo4j>=4.1.1",
+        "pylnk3>=0.3.0",
+        "pypsrp>=0.5.0",
+        "paramiko>=2.7.2",
+        "impacket>=0.9.21",
+        "xmltodict>=0.12.0",
+        "terminaltables>=3.1.0",
+        "aioconsole>=0.3.1",
+    ],
+    entry_points = {
+        'console_scripts': ['crackmapexec=cme.crackmapexec:main', 'cmedb=cme.cmedb:main'],
+    },
+    include_package_data=True,
+    zip_safe=False)
