From 9daaa2eb511419348f8c9cea12c47285d855ffd5 Mon Sep 17 00:00:00 2001 From: mpgn <5891788+mpgn@users.noreply.github.com> Date: Wed, 19 Jun 2024 11:07:03 +0000 Subject: [PATCH] debug --- .github/workflows/windows-run.yml | 36 +++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/.github/workflows/windows-run.yml b/.github/workflows/windows-run.yml index 7db689ba6..d9e8be1e8 100644 --- a/.github/workflows/windows-run.yml +++ b/.github/workflows/windows-run.yml @@ -8,7 +8,7 @@ on: jobs: lint: uses: ./.github/workflows/lint.yml - nxc-setup: + nxc-smb: runs-on: windows-latest needs: [lint] # technique stolen from @Hackndo my best friend for life <3 @@ -38,10 +38,6 @@ jobs: - name: Install libraries without dev group run: | poetry install - nxc-smb: - runs-on: windows-latest - needs: nxc-setup - steps: - name: Dumping sam run: | poetry run netexec smb %COMPUTERNAME% -u nxc -p Pwn3d!!! --sam @@ -66,8 +62,34 @@ jobs: nxc-winrm: runs-on: windows-latest - needs: nxc-setup + needs: [lint] + # technique stolen from @Hackndo my best friend for life <3 steps: + - name: Create new user + run: | + net user nxc Pwn3d!!! /add + - name: Add to local admin + run: | + net localgroup Administrators nxc /add + - name: Update registry key + run: | + REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.11' + - name: Install poetry + run: | + pipx install poetry --python python${{ matrix.python-version }} + poetry --version + poetry env info + - name: Install libraries without dev group + run: | + poetry install - name: Dumping sam run: | poetry run netexec winrm %COMPUTERNAME% -u nxc -p Pwn3d!!! --sam @@ -76,4 +98,4 @@ jobs: poetry run netexec winrm %COMPUTERNAME% -u nxc -p Pwn3d!!! --lsa - name: Exec command run: | - poetry run netexec winrm %COMPUTERNAME% -u nxc -p Pwn3d!!! -x whoami --exec-method=smbexec + poetry run netexec winrm %COMPUTERNAME% -u nxc -p Pwn3d!!! -x whoami