From da6a55b179c93f0b3494f7132a319f3fd1679319 Mon Sep 17 00:00:00 2001 From: Swissky <12152583+swisskyrepo@users.noreply.github.com> Date: Tue, 16 Feb 2021 18:55:32 +0100 Subject: [PATCH] Github Action + Screenshot --- .github/FUNDING.yml | 3 ++ .github/workflows/SharpLAPS.yml | 52 +++++++++++++++++++++++++++++++++ README.md | 6 ++-- 3 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/SharpLAPS.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..7c4711e --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +github: swisskyrepo +ko_fi: swissky +custom: https://www.buymeacoffee.com/swissky \ No newline at end of file diff --git a/.github/workflows/SharpLAPS.yml b/.github/workflows/SharpLAPS.yml new file mode 100644 index 0000000..23e213a --- /dev/null +++ b/.github/workflows/SharpLAPS.yml @@ -0,0 +1,52 @@ +name: sharplaps +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: windows-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE + - uses: actions/checkout@v2 + + # Checks-out submodules + - uses: actions/checkout@v2 + - name: Checkout submodules + shell: bash + run: | + git submodule sync --recursive + git submodule update --init --force --recursive + + # Download and install nuget.exe + - name: Setup Nuget.exe + uses: nuget/setup-nuget@v1 + + # Use Nuget to install dependencies + - name: Nuget Restore + run: nuget restore $Env:GITHUB_WORKSPACE\SharpLAPS\SharpLAPS.sln + + # Build with MSBuild + - name: Build SharpLAPS + run: | + cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\" + .\MSBuild.exe $Env:GITHUB_WORKSPACE\SharpLAPS\SharpLAPS.csproj /property:Configuration=Release + + # Upload Artifact to Github Action panel + - uses: actions/upload-artifact@master + with: + name: SharpLAPS + path: SharpLAPS\bin\Release\SharpHound.exe + + # Release + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest-SharpLAPS" + prerelease: true + title: "Development Build" + files: | + ./SharpLAPS/bin/Release/SharpLAPS.exe \ No newline at end of file diff --git a/README.md b/README.md index 2519474..9bf59b3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ > The attribute **ms-mcs-AdmPwd** stores the clear-text LAPS password. This executable is made to be executed within Cobalt Strike session using `execute-assembly`. -It will retrieve the **LAPS** password from the Active Directory. +It will retrieve the **LAPS** password from the Active Directory. Require (either): * Account with `ExtendedRight` or `Generic All Rights` @@ -30,4 +30,6 @@ Optional Usage: SharpLAPS.exe /user:DOMAIN\User /pass:MyP@ssw0rd123! /host:192.168.1.1 ``` -![]() \ No newline at end of file +## Screenshot + +![Screenshot](https://github.com/swisskyrepo/SharpLAPS/blob/main/Screenshot/screenshot.png?raw=true) \ No newline at end of file