Skip to content

Commit

Permalink
Merge branch 'main' into marshall-get-gpos
Browse files Browse the repository at this point in the history
  • Loading branch information
Marshall-Hallenbeck authored Mar 8, 2025
2 parents a3cd824 + 0063ec0 commit 4e9ea50
Show file tree
Hide file tree
Showing 4 changed files with 865 additions and 893 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
- uses: actions/checkout@v4
- name: Install poetry
run: |
pipx install poetry==1.8.4
pipx install poetry
poetry --version
poetry env info
- name: NetExec set up python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v5
with:
Expand All @@ -29,11 +31,6 @@ jobs:
- name: Install with pipx
run: |
pipx install . --python python${{ matrix.python-version }}
- name: Install poetry
run: |
pipx install poetry --python python${{ matrix.python-version }}
poetry --version
poetry env info
- name: Install libraries with dev group
run: |
poetry install --with dev
Expand All @@ -48,4 +45,4 @@ jobs:
poetry run netexec mssql 127.0.0.1
poetry run netexec ssh 127.0.0.1
poetry run netexec ftp 127.0.0.1
poetry run netexec smb 127.0.0.1 -M veeam
poetry run netexec smb 127.0.0.1 -L
6 changes: 4 additions & 2 deletions nxc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ def gen_cli_args():

try:
VERSION, COMMIT = importlib.metadata.version("netexec").split("+")
DISTANCE, COMMIT = COMMIT.split(".")
except ValueError:
VERSION = importlib.metadata.version("netexec")
COMMIT = ""
DISTANCE = ""
CODENAME = "NeedForSpeed"
nxc_logger.debug(f"NXC VERSION: {VERSION} - {CODENAME} - {COMMIT}")
nxc_logger.debug(f"NXC VERSION: {VERSION} - {CODENAME} - {COMMIT} - {DISTANCE}")

generic_parser = argparse.ArgumentParser(add_help=False, formatter_class=DisplayDefaultsNotNone)
generic_group = generic_parser.add_argument_group("Generic", "Generic options for nxc across protocols")
Expand Down Expand Up @@ -130,7 +132,7 @@ def gen_cli_args():
sys.exit(1)

if args.version:
print(f"{VERSION} - {CODENAME} - {COMMIT}")
print(f"{VERSION} - {CODENAME} - {COMMIT} - {DISTANCE}")
sys.exit(1)

# Multiply output_tries by 10 to enable more fine granural control, see exec methods
Expand Down
Loading

0 comments on commit 4e9ea50

Please sign in to comment.