File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818env :
1919 ADAPTIXC2_REPO : Adaptix-Framework/AdaptixC2
20+ ADAPTIXC2_VERSION : v1.2
2021 CI_USER : ci_runner
2122 CI_PASS : Ci_Test_Pass1!
2223 CI_AGENT_DIR : ' C:\ci'
@@ -66,15 +67,10 @@ jobs:
6667
6768 - name : Download AdaptixC2 release
6869 shell : powershell
69- env :
70- GH_TOKEN : ${{ github.token }}
7170 run : |
7271 New-Item -ItemType Directory -Force -Path C:\tmp\adaptixc2 | Out-Null
73- $tag = (gh release list --repo $env:ADAPTIXC2_REPO --limit 1 --json tagName --jq '.[0].tagName')
74- gh release download $tag `
75- --repo $env:ADAPTIXC2_REPO `
76- --pattern "*.zip" `
77- --dir C:\tmp\adaptixc2
72+ $url = "https://github.com/$env:ADAPTIXC2_REPO/archive/refs/tags/$env:ADAPTIXC2_VERSION.zip"
73+ Invoke-WebRequest -Uri $url -OutFile C:\tmp\adaptixc2\adaptixc2.zip
7874
7975 # ── WSL: Ubuntu with required packages ──────────────────────────────────
8076
9389 shell : wsl-bash {0}
9490 run : |
9591 mkdir -p /tmp/adaptixc2
96- unzip -o /mnt/c/tmp/adaptixc2/* .zip -d /tmp/adaptixc2
92+ unzip -o /mnt/c/tmp/adaptixc2/adaptixc2 .zip -d /tmp/adaptixc2
9793 # move contents out of the top-level directory the zip creates
9894 shopt -s dotglob; top=$(ls -d /tmp/adaptixc2/*/); mv "$top"* /tmp/adaptixc2/; rmdir "$top"
9995
You can’t perform that action at this time.
0 commit comments