Skip to content

Commit

Permalink
Version 0.5-beta.2 fixes issue with password policy enumeration and f…
Browse files Browse the repository at this point in the history
…ixes issue with type checking
  • Loading branch information
NEXUS2345 committed Feb 7, 2020
1 parent 59eb380 commit 5096f4c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Another scenario where it comes handy is discussed in [this blog post](http://be

## Help message

keimpx 0.5-beta.1
keimpx 0.5-beta.2
by Bernardo Damele A. G. <[email protected]>
Usage: keimpx.py [options]
Expand Down
2 changes: 1 addition & 1 deletion keimpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from __future__ import print_function

__author__ = 'Bernardo Damele A. G. <[email protected]>'
__version__ = '0.5-beta.1'
__version__ = '0.5-beta.2'

import binascii
import os
Expand Down
5 changes: 3 additions & 2 deletions lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from threading import Thread

from six import string_types
from six import integer_types
from six.moves import input as input
from six.moves.configparser import ConfigParser

Expand Down Expand Up @@ -143,13 +144,13 @@ def is_local_admin():
if os.name in ('posix', 'mac'):
_ = os.geteuid()

isAdmin = isinstance(_, (int, float, long)) and _ == 0
isAdmin = isinstance(_, (integer_types, float)) and _ == 0
elif sys.platform.lower() == 'win32':
import ctypes

_ = ctypes.windll.shell32.IsUserAnAdmin()

isAdmin = isinstance(_, (int, float, long)) and _ == 1
isAdmin = isinstance(_, (integer_types, float)) and _ == 1
else:
errMsg = "keimpx is not able to check if you are running it "
errMsg += "as an administrator account on this platform. "
Expand Down
7 changes: 2 additions & 5 deletions lib/samrdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,7 @@ def print_friendly(self):
self.__pass_prop or "None"))

for i, a in enumerate(self.__pass_prop):
if int(i) < 6:
print("[+] {0} {1}".format(PASSCOMPLEX[i], str(a)))
else:
break
print("[+] {0} {1}".format(PASSCOMPLEX[i], str(a)))

print("\n[+] Minimum password age: {0}".format(self.__min_pass_age))
print("[+] Reset Account Lockout Counter: {0}".format(
Expand Down Expand Up @@ -381,7 +378,7 @@ def d2b(a):
tbin = []
while a:
tbin.append(a % 2)
a /= 2
a //= 2

t2bin = tbin[::-1]
if len(t2bin) != 8:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

setup(
name="keimpx",
version="0.5-beta.1",
version="0.5-beta.2",
description="keimpx: check for the usefulness of credentials across a network over SMB",
author="Bernardo Damele A. G.",
author_email="[email protected]",
Expand Down

0 comments on commit 5096f4c

Please sign in to comment.