Skip to content

Commit

Permalink
setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KcanCurly committed Nov 14, 2024
1 parent 9fd4d5b commit 5482b46
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

28 changes: 28 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from setuptools import setup, find_packages

setup(
name="DumpSMBShare",
version="1.0.0",
author="KcanCurly",
description="A script to dump files and folders remotely from a Windows SMB share.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/KcanCurly/FindUncommonShares",
packages=find_packages(),
install_requires=[
"impacket",
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Information Technology",
"Topic :: Security",
],
python_requires=">=3.8",
entry_points={
"console_scripts": [
"DumpSMBShare=src.DumpSMBShare:main",
],
},
)
7 changes: 5 additions & 2 deletions DumpSMBShare.py → src/DumpSMBShare.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ def init_smb_session(args, domain, username, password, address, lmhash, nthash):
print("[>] USER Session Granted")
return smbClient


if __name__ == "__main__":
def main():
args = parse_args()
args.extensions = [e.strip() for e in args.extensions.strip().split(",") if len(e.strip()) != 0]

Expand Down Expand Up @@ -228,3 +227,7 @@ def init_smb_session(args, domain, username, password, address, lmhash, nthash):
print("[>] Cannot find share '%s'" % args.share)
except Exception as e:
raise e


if __name__ == "__main__":
main()
Empty file added src/__init__.py
Empty file.

0 comments on commit 5482b46

Please sign in to comment.