feat(payload_server): listen on 7070 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
component: [shellcode_utils, solstice_loader, shellcode_stage1, shellcode_stage1_network, shellcode_stage2, shellcode_gen, solstice_daemon, payload_server] | |
include: | |
- component: solstice_daemon | |
features: firewall | |
test: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
- name: Test ${{ matrix.component }} | |
if: ${{ matrix.test }} | |
working-directory: crates/${{ matrix.component }} | |
run: cargo test --release --features=${{ matrix.features }} | |
- name: Build ${{ matrix.component }} | |
working-directory: crates/${{ matrix.component }} | |
run: cargo build --release --features=${{ matrix.features }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Binaries-${{ matrix.component }} | |
path: | | |
README.md | |
LICENSE | |
crates/${{ matrix.component }}/target/release/${{ matrix.component }}.exe | |
crates/${{ matrix.component }}/target/x86_64-pc-windows-msvc/release/${{ matrix.component }}.exe | |
generate: | |
name: Generate payloads | |
runs-on: windows-latest | |
needs: build | |
steps: | |
- name: Download All Artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: . | |
pattern: Binaries-* | |
merge-multiple: true | |
- name: Create output dir | |
run: mkdir output | |
- name: Generate payloads | |
working-directory: crates\shellcode_gen | |
run: | | |
.\target\release\shellcode_gen.exe ${{ github.workspace }}\output\ | |
- name: Copy artifact binaries to output directory | |
run: | | |
xcopy README.md output\ | |
xcopy LICENSE output\ | |
xcopy crates\solstice_daemon\target\release\solstice_daemon.exe output\ | |
xcopy crates\payload_server\target\release\payload_server.exe output\ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Release | |
path: | | |
output\** | |
bundle: | |
name: Bundle | |
runs-on: windows-latest | |
needs: [generate] | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: Release | |
path: release\ | |
- name: Bundle binaries | |
run: 7z a -tzip Solstice.zip .\release\** | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: Solstice.zip |