Skip to content

Commit 908e109

Browse files
committed
Add releasing workflow
1 parent b7e959c commit 908e109

3 files changed

Lines changed: 83 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version-file: go.mod
24+
25+
- name: Cache Go modules
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.cache/go-build
30+
~/go/pkg/mod
31+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32+
restore-keys: |
33+
${{ runner.os }}-go-
34+
35+
- name: Run GoReleaser
36+
uses: goreleaser/goreleaser-action@v6
37+
with:
38+
version: latest
39+
args: release --clean
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
project_name: relaybox
2+
3+
env:
4+
- CGO_ENABLED=0
5+
6+
builds:
7+
- id: relaybox
8+
main: ./cmd/relaybox
9+
binary: relaybox
10+
goos:
11+
- windows
12+
goarch:
13+
- amd64
14+
ldflags:
15+
- -s -w
16+
17+
archives:
18+
- id: relaybox
19+
builds:
20+
- relaybox
21+
format: zip
22+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
23+
files:
24+
- LICENSE
25+
- README.md
26+
- powershell/**
27+
- mssql/*.ps1
28+
29+
changelog:
30+
use: git

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ GOOS=windows go build -o relaybox.exe ./cmd/relaybox
1414

1515
You can also find prebuilt binaries on the Releases page.
1616

17+
## Releasing
18+
19+
Tagged releases are automated via [GoReleaser](https://goreleaser.com/). Push a semver tag (for example `v1.2.3`) and GitHub Actions will build the Windows artefact and publish it on GitHub Releases:
20+
21+
```bash
22+
git tag v1.2.3
23+
git push origin v1.2.3
24+
```
25+
26+
The workflow configuration lives in `.github/workflows/release.yml`, while the GoReleaser settings are defined in `.goreleaser.yml`.
27+
1728
## Why?
1829

1930
NTLM and Kerberos relaying attacks are really powerful, however often times can be impractical, too noisy or too disruptive. This is because at times it is not enough to (or we simply aren't able to):
@@ -108,7 +119,7 @@ This allows to transparently relay a victim visiting a site to LDAP or another H
108119
./relaybox.exe -raddr 10.10.14.11 -http -pfx server.pfx -pfx-pass '1234'
109120
```
110121

111-
This behaves exactly like the HTTP takeover, except it will use a provided PFX file and password to create an HTTPS version of the attack as well. You whould extract the PFX from the compromised server so that it is as legitimate as possible. You can find a powershell utility to do this in: [http/export-pfx.ps1](http/export-pfx.ps1).
122+
This behaves exactly like the HTTP takeover, except it will use a provided PFX file and password to create an HTTPS version of the attack as well. You whould extract the PFX from the compromised server so that it is as legitimate as possible. You can find a powershell utility to do this in: [powershell/export-pfx.ps1](powershell/export-pfx.ps1).
112123

113124
### Take over MSSQL (experimental)
114125

0 commit comments

Comments
 (0)