Skip to content

Commit

Permalink
test: add impacket for SMB testing
Browse files Browse the repository at this point in the history
Import impacket 0.9.15 for use in SMB testing. This was generated by
doing "pip2.7 install -t . impacket"

Unnecessary files for current testing were deleted.
  • Loading branch information
maxdymond authored and bagder committed Jul 4, 2017
1 parent fc2e81c commit f160915
Show file tree
Hide file tree
Showing 13 changed files with 18,266 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*.o
*.obj
*.pdb
*.pyc
*~
.*.sw?
.cproject
Expand All @@ -18,6 +19,7 @@
.settings
/build/
/builds/
__pycache__
CHANGES.dist
Debug
INSTALL
Expand Down
25 changes: 25 additions & 0 deletions tests/python_dependencies/impacket/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2003-2016 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Author: Alberto Solino (@agsolino)
#

# Set default logging handler to avoid "No handler found" warnings.
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass

# All modules inside this library MUST use this logger (impacket)
# It is up to the library consumer to do whatever is wanted
# with the logger output. By default it is forwarded to the
# upstream logger

LOG = logging.getLogger(__name__)
LOG.addHandler(NullHandler())
Loading

0 comments on commit f160915

Please sign in to comment.