Skip to content

Commit

Permalink
Merge branch 'HashPals:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
roycewilliams authored Aug 31, 2022
2 parents 11ba06b + 85faf3a commit c097bb1
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 88 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ updates:
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
- dependency-name: rich
versions:
- 10.0.0
34 changes: 22 additions & 12 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# .github/workflows/tests.yml
name: Tests
on: pull_request

on: [push, pull_request]

jobs:
tests:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.7', '3.8', '3.9', '3.10']
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python-version }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: pip install nox==2019.11.9
- run: pip install poetry==1.0.5
- run: nox
- name: Checkout
uses: actions/checkout@v3

- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: nox
run: |
pip install nox
pip install poetry
nox
23 changes: 23 additions & 0 deletions name_that_hash/hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Prototype = namedtuple("Prototype", ["regex", "modes"])


@dataclass
class HashInfo:
name: str
Expand Down Expand Up @@ -2420,4 +2421,26 @@ class HashInfo:
),
],
),
Prototype(
regex=re.compile(r"\$bitlocker\$[0-9]\$[0-9]{2}\$[a-f0-9]{32}\$[a-f0-9]{7}\$[a-f0-9]{2}\$[a-f0-9]{24}\$[a-f0-9]{2}\$[a-f0-9]{120}", re.IGNORECASE),
modes=[
HashInfo(
name="BitLocker",
hashcat=22100,
john="bitlocker",
extended=False
),
]
),
Prototype(
regex=re.compile(r"\$racf\$\*.{1,}\*[A-F0-9]{16}", re.IGNORECASE),
modes=[
HashInfo(
name="RACF",
hashcat=8500,
john=None,
extended=False
),
]
),
]
135 changes: 69 additions & 66 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ authors = ["brandon <[email protected]>"]
license = "GPL-3.0-or-later"

[tool.poetry.dependencies]
python = "^3.6"
click = ">=7.1.2,<9.0.0"
rich = ">=9.9,<11.0"
python = "^3.6.2"
click = ">=7.1.2"
rich = ">=11.0.0"

[tool.poetry.dev-dependencies]
pytest = "^6.2"
pytest = "^7.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
Loading

0 comments on commit c097bb1

Please sign in to comment.