Skip to content

Commit ce60c90

Browse files
committed
git pushMerge branch 'main' of github.com:HashPals/Name-That-Hash into main
2 parents 2d46fb0 + 5579f53 commit ce60c90

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center">
22

33
<img src="logo.gif">
4-
<p align="center">➡️ <a href="https://discord.gg/zYTM3rZM4T">Discord</a> | <a href="https://nth.skerritt.blog">Website</a> ⬅️</p>
4+
<p align="center">➡️ <a href="http://discord.skerritt.blog">Discord</a> | <a href="https://nth.skerritt.blog">Website</a> ⬅️</p>
55
<p align="center">The Modern Hash Identification System<br>
66
<code>pip3 install name-that-hash && nth</code>
77
<br>

name_that_hash/check_hashes.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ def file_input(self, f):
2424
self.single_hash(line)
2525

2626
def single_hash(self, chash: str):
27-
if "base64" in self.kwargs:
28-
27+
if "base64" in self.kwargs and self.kwargs["base64"]:
2928
logger.trace("decoding as base64")
3029

3130
try:

name_that_hash/hashes.py

+14
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,20 @@ class HashInfo:
13751375
)
13761376
],
13771377
),
1378+
Prototype(
1379+
regex=re.compile(
1380+
r"\$krb5tgs\$23\$\*(.*)\*\$(.*)",
1381+
re.IGNORECASE,
1382+
),
1383+
modes=[
1384+
HashInfo(
1385+
name=u"Kerberos 5 TGS-REP etype 23",
1386+
hashcat=13100,
1387+
john="krb5tgs",
1388+
extended=False,
1389+
),
1390+
],
1391+
),
13781392
Prototype(
13791393
regex=re.compile(
13801394
r"^\$oldoffice\$[01]\*[a-f0-9]{32}\*[a-f0-9]{32}\*[a-f0-9]{32}$",

poetry.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_click.py

+5
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ def test_file_input():
4949
result = runner.invoke(main, ["-f", "tests/mocks/hashes.txt", '-b64', '-g'])
5050
assert "SHA-1" in result.output
5151
assert "SHA-512" in result.output
52+
53+
def test_file_input():
54+
runner = CliRunner()
55+
result = runner.invoke(main, ["-t", "$krb5tgs$23$*user$realm$test/spn*$63386d22d359fe42230300d56852c9eb$891ad31d09ab89c6b3b8c5e5de6c06a7f49fd559d7a9a3c32576c8fedf705376cea582ab5938f7fc8bc741acf05c5990741b36ef4311fe3562a41b70a4ec6ecba849905f2385bb3799d92499909658c7287c49160276bca0006c350b0db4fd387adc27c01e9e9ad0c20ed53a7e6356dee2452e35eca2a6a1d1432796fc5c19d068978df74d3d0baf35c77de12456bf1144b6a750d11f55805f5a16ece2975246e2d026dce997fba34ac8757312e9e4e6272de35e20d52fb668c5ed"])
56+
assert "Kerberos" in result.output

0 commit comments

Comments
 (0)