mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
add ssh
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user