mirror of
https://github.com/ly4k/Impacket
synced 2026-06-08 15:35:53 +00:00
24 lines
776 B
Python
24 lines
776 B
Python
# Impacket - Collection of Python classes for working with network protocols.
|
|
#
|
|
# Copyright (C) 2022 Fortra. 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.
|
|
#
|
|
|
|
import pkg_resources
|
|
from impacket import __path__
|
|
|
|
|
|
try:
|
|
version = pkg_resources.get_distribution('impacket').version
|
|
except pkg_resources.DistributionNotFound:
|
|
version = "?"
|
|
print("Cannot determine Impacket version. "
|
|
"If running from source you should at least run \"python setup.py egg_info\"")
|
|
BANNER = "Impacket v{} - Copyright 2022 Fortra\n".format(version)
|
|
|
|
def getInstallationPath():
|
|
return 'Impacket Library Installation Path: {}'.format(__path__[0])
|