Skip to content

Commit

Permalink
Version 3.1.3 fix masterkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackndo committed Jul 6, 2022
1 parent 15a3264 commit 0ee495f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# lsassy

[![PyPI version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=py&type=6&v=3.1.2&x2=0)](https://pypi.org/project/lsassy/)
[![PyPI version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=py&type=6&v=3.1.3&x2=0)](https://pypi.org/project/lsassy/)
[![PyPI Statistics](https://img.shields.io/pypi/dm/lsassy.svg)](https://pypistats.org/packages/lsassy)
[![Tests](https://github.com/hackndo/lsassy/workflows/Tests/badge.svg)](https://github.com/hackndo/lsassy/actions?workflow=Tests)
[![Twitter](https://img.shields.io/twitter/follow/hackanddo?label=HackAndDo&style=social)](https://twitter.com/intent/follow?screen_name=hackanddo)
Expand Down
2 changes: 1 addition & 1 deletion lsassy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.1.2'
__version__ = '3.1.3'
2 changes: 1 addition & 1 deletion lsassy/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def main():

group_out.add_argument('--users', action='store_true', help='Only display user accounts (No computer accounts)')
group_out.add_argument('--no-tickets', action='store_true', help='Do not display valid TGT')
group_out.add_argument('--no-masterkeys', action='store_true', help='Do not display valid masterkeys')
group_out.add_argument('--masterkeys', action='store_true', help='Display valid masterkeys')

parser.add_argument('-v', action='count', default=0, help='Verbosity level (-v or -vv)')
parser.add_argument('--threads', default=10, type=int, action='store', help='Threads number')
Expand Down
2 changes: 1 addition & 1 deletion lsassy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def run(self):
quiet=self.args.quiet,
users_only=self.args.users,
tickets=not self.args.no_tickets,
masterkeys=not self.args.no_masterkeys,
masterkeys=self.args.masterkeys,
kerberos_dir=kerberos_dir,
masterkeys_file=masterkeys_file
)
Expand Down
2 changes: 1 addition & 1 deletion lsassy/output/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_credentials(credentials, users_only=False, tickets=False, masterkeys=Fal
:param masterkeys: If set, also returns valid DPAPI masterkeys
:return: List of credentials dict
"""
return [cred.get_object() for cred in credentials if (tickets or cred.ticket is None) and masterkeys and not (users_only and cred.get_username().endswith("$"))]
return [cred.get_object() for cred in credentials if (tickets or cred.ticket is None) and (masterkeys or cred.masterkey is None) and not (users_only and cred.get_username().endswith("$"))]

def get_output(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lsassy"
version = "3.1.2"
version = "3.1.3"
description = "Tool to remotely extract credentials"
readme = "README.md"
homepage = "https://github.com/hackndo/lsassy"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name="lsassy",
version="3.1.2",
version="3.1.3",
author="Pixis",
author_email="[email protected]",
description="Python library to extract credentials from lsass remotely",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_lsassy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


def test_version():
assert __version__ == '3.1.2'
assert __version__ == '3.1.3'

0 comments on commit 0ee495f

Please sign in to comment.