File tree Expand file tree Collapse file tree 4 files changed +865
-893
lines changed Expand file tree Collapse file tree 4 files changed +865
-893
lines changed Original file line number Diff line number Diff line change 19
19
- uses : actions/checkout@v4
20
20
- name : Install poetry
21
21
run : |
22
- pipx install poetry==1.8.4
22
+ pipx install poetry
23
+ poetry --version
24
+ poetry env info
23
25
- name : NetExec set up python ${{ matrix.python-version }} on ${{ matrix.os }}
24
26
uses : actions/setup-python@v5
25
27
with :
29
31
- name : Install with pipx
30
32
run : |
31
33
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
37
34
- name : Install libraries with dev group
38
35
run : |
39
36
poetry install --with dev
48
45
poetry run netexec mssql 127.0.0.1
49
46
poetry run netexec ssh 127.0.0.1
50
47
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():
19
19
20
20
try :
21
21
VERSION , COMMIT = importlib .metadata .version ("netexec" ).split ("+" )
22
+ DISTANCE , COMMIT = COMMIT .split ("." )
22
23
except ValueError :
23
24
VERSION = importlib .metadata .version ("netexec" )
24
25
COMMIT = ""
26
+ DISTANCE = ""
25
27
CODENAME = "NeedForSpeed"
26
- nxc_logger .debug (f"NXC VERSION: { VERSION } - { CODENAME } - { COMMIT } " )
28
+ nxc_logger .debug (f"NXC VERSION: { VERSION } - { CODENAME } - { COMMIT } - { DISTANCE } " )
27
29
28
30
generic_parser = argparse .ArgumentParser (add_help = False , formatter_class = DisplayDefaultsNotNone )
29
31
generic_group = generic_parser .add_argument_group ("Generic" , "Generic options for nxc across protocols" )
@@ -130,7 +132,7 @@ def gen_cli_args():
130
132
sys .exit (1 )
131
133
132
134
if args .version :
133
- print (f"{ VERSION } - { CODENAME } - { COMMIT } " )
135
+ print (f"{ VERSION } - { CODENAME } - { COMMIT } - { DISTANCE } " )
134
136
sys .exit (1 )
135
137
136
138
# 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