Skip to content

Commit 43b01d2

Browse files
committed
Export as CCACHE files
1 parent 279ecfe commit 43b01d2

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# lsassy
2-
[![PyPI version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=py&type=6&v=v3.1.13&x2=0)](https://pypi.org/project/lsassy)
2+
[![PyPI version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=py&type=6&v=v3.1.14&x2=0)](https://pypi.org/project/lsassy)
33
[![PyPI Statistics](https://img.shields.io/pypi/dm/lsassy.svg)](https://pypistats.org/packages/lsassy)
44
[![Tests](https://github.com/hackndo/lsassy/actions/workflows/lsassy.yml/badge.svg)](https://github.com/hackndo/lsassy/actions?workflow=lsassy)
55
[![Twitter](https://img.shields.io/twitter/follow/hackanddo?label=HackAndDo&style=social)](https://twitter.com/intent/follow?screen_name=hackanddo)

lsassy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.1.13"
1+
__version__ = "3.1.14"

lsassy/writer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import importlib
22
import os
33
from pathlib import Path
4+
from minikerberos.common.ccache import CCACHE
5+
from minikerberos.common.kirbi import Kirbi
46

57
from lsassy.logger import lsassy_logger
68

@@ -138,11 +140,11 @@ def write_tickets(self, kerberos_dir=None, quiet=False):
138140
filename.split(".kirbi")[0]
139141
+ "_"
140142
+ ticket.EndTime.strftime("%Y%m%d%H%M%S")
141-
+ ".kirbi",
143+
+ ".ccache",
142144
),
143145
"wb",
144146
) as f:
145-
f.write(ticket.kirbi_data[filename].dump())
147+
f.write(CCACHE.from_kirbi(Kirbi(ticket.kirbi_data[filename])).to_bytes())
146148
if not quiet:
147149
if len(self._tickets) > 1:
148150
print(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lsassy"
3-
version = "3.1.13"
3+
version = "3.1.14"
44
description = "Python library to extract credentials from lsass remotely"
55
readme = "README.md"
66
requires-python = ">=3.10,<4.0"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
setup(
1515
name="lsassy",
16-
version="3.1.13",
16+
version="3.1.14",
1717
author="Pixis",
1818
author_email="hackndo@gmail.com",
1919
description="Python library to extract credentials from lsass remotely",

0 commit comments

Comments
 (0)