File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 - uses : actions/checkout@v4
2020 - name : Install poetry
2121 run : |
22- pipx install poetry==1.8.4
22+ pipx install poetry
23+ poetry --version
24+ poetry env info
2325 - name : NetExec set up python ${{ matrix.python-version }} on ${{ matrix.os }}
2426 uses : actions/setup-python@v5
2527 with :
2931 - name : Install with pipx
3032 run : |
3133 pipx install . --python python${{ matrix.python-version }}
32- - name : Install poetry
33- run : |
34- pipx install poetry --python python${{ matrix.python-version }}
35- poetry --version
36- poetry env info
3734 - name : Install libraries with dev group
3835 run : |
3936 poetry install --with dev
4845 poetry run netexec mssql 127.0.0.1
4946 poetry run netexec ssh 127.0.0.1
5047 poetry run netexec ftp 127.0.0.1
51- poetry run netexec smb 127.0.0.1 -M veeam
48+ poetry run netexec smb 127.0.0.1 -L
Original file line number Diff line number Diff line change @@ -19,11 +19,13 @@ def gen_cli_args():
1919
2020 try :
2121 VERSION , COMMIT = importlib .metadata .version ("netexec" ).split ("+" )
22+ DISTANCE , COMMIT = COMMIT .split ("." )
2223 except ValueError :
2324 VERSION = importlib .metadata .version ("netexec" )
2425 COMMIT = ""
26+ DISTANCE = ""
2527 CODENAME = "NeedForSpeed"
26- nxc_logger .debug (f"NXC VERSION: { VERSION } - { CODENAME } - { COMMIT } " )
28+ nxc_logger .debug (f"NXC VERSION: { VERSION } - { CODENAME } - { COMMIT } - { DISTANCE } " )
2729
2830 generic_parser = argparse .ArgumentParser (add_help = False , formatter_class = DisplayDefaultsNotNone )
2931 generic_group = generic_parser .add_argument_group ("Generic" , "Generic options for nxc across protocols" )
@@ -130,7 +132,7 @@ def gen_cli_args():
130132 sys .exit (1 )
131133
132134 if args .version :
133- print (f"{ VERSION } - { CODENAME } - { COMMIT } " )
135+ print (f"{ VERSION } - { CODENAME } - { COMMIT } - { DISTANCE } " )
134136 sys .exit (1 )
135137
136138 # Multiply output_tries by 10 to enable more fine granural control, see exec methods
You can’t perform that action at this time.
0 commit comments