From 75ba2e2afd969ec8ea9ae26b8a9f290adfbd8676 Mon Sep 17 00:00:00 2001 From: mpgn <5891788+mpgn@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:09:03 +0000 Subject: [PATCH] add ssh --- .github/workflows/windows-run.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/windows-run.yml b/.github/workflows/windows-run.yml index 990f2881..f0a0191d 100644 --- a/.github/workflows/windows-run.yml +++ b/.github/workflows/windows-run.yml @@ -101,3 +101,32 @@ jobs: - name: Exec command run: | poetry run netexec winrm 127.0.0.1 -u nxc -p Pwn3d!!! -x whoami + + nxc-ssh: + runs-on: ubuntu-latest + needs: [lint] + # technique stolen from @Hackndo my best friend for life <3 + steps: + - name: Enable ssh + run: | + sudo apt update + sudo apt install openssh-server + sudo systemctl status ssh + - 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 ssh 127.0.0.1 \ No newline at end of file