Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/sliver-bof-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
schema: sliver-bof-e2e/v1

sliver:
version: 422044af0dbfd75e4588756f9c7a4e3536eba376

defaults:
bof_executor: reflektor
entrypoint: go
modes: [session, beacon]
command_timeout: 2m

suites:
- name: windows-amd64
target:
os: windows
arch: amd64
tests:
- name: winver
object: BOF/Winver/Winver.x64.o
expect:
output:
contains: ['OS build number:']

- name: windows-386
target:
os: windows
arch: '386'
tests:
- name: winver
object: BOF/Winver/Winver.x86.o
expect:
output:
contains: ['OS build number:']
17 changes: 17 additions & 0 deletions .github/workflows/sliver-bof-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sliver BOF end-to-end

"on":
pull_request:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
bof-e2e:
uses: sliverarmory/sliver-test-bof/.github/workflows/e2e.yml@b38a09a226bf861a1e56e9dbe07838fe99138582
with:
manifest: .github/sliver-bof-e2e.yml
prepare-command: bash ./scripts/prepare-sliver-bof-e2e.sh
16 changes: 16 additions & 0 deletions scripts/prepare-sliver-bof-e2e.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail

if ! command -v x86_64-w64-mingw32-gcc >/dev/null ||
! command -v i686-w64-mingw32-gcc >/dev/null ||
! command -v x86_64-w64-mingw32-strip >/dev/null ||
! command -v i686-w64-mingw32-strip >/dev/null; then
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
gcc-mingw-w64-x86-64 gcc-mingw-w64-i686 \
binutils-mingw-w64-x86-64 binutils-mingw-w64-i686
fi

make -C BOF/Winver/SOURCE
test -s BOF/Winver/Winver.x64.o
test -s BOF/Winver/Winver.x86.o
Loading