Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgn authored Jun 19, 2024
1 parent 21ee7d1 commit 9daaa2e
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/windows-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 9daaa2e

Please sign in to comment.