Compare commits
4 Commits
d844b2f6b0
...
c322d01d29
| Author | SHA1 | Date |
|---|---|---|
|
|
c322d01d29 | |
|
|
fe7dcd9333 | |
|
|
3f6733a335 | |
|
|
95cc961ea6 |
|
|
@ -0,0 +1,40 @@
|
||||||
|
name: GitHub Actions Demo
|
||||||
|
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
schedule:
|
||||||
|
# Run daily build at 08:30 UTC
|
||||||
|
- cron: '00 08 30 * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
# The go version to use for builds. We set check-latest to true when
|
||||||
|
# installing, so we get the latest patch version that matches the
|
||||||
|
# expression.
|
||||||
|
GO_VERSION: "~1.22.3"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-GitHub-Actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
||||||
|
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
||||||
|
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
cache: true
|
||||||
|
check-latest: true
|
||||||
|
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
||||||
|
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||||
|
- name: List files in the repository
|
||||||
|
run: |
|
||||||
|
ls ${{ github.workspace }}
|
||||||
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
|
- run: make ci
|
||||||
|
env:
|
||||||
|
CONFIG_RELEASE_GO_FILE: ${{ secrets.CONFIG_RELEASE_GO_FILE }}
|
||||||
11
Makefile
11
Makefile
|
|
@ -1,7 +1,14 @@
|
||||||
SOURCES=Makefile main.go main_release.go main_debug.go config.go config_release.go config_template.go
|
SOURCES=Makefile main.go main_release.go main_debug.go config.go config_release.go config_template.go
|
||||||
GARBLE_BIN = $(shell go env GOPATH)/bin/garble
|
GARBLE_BIN = $(shell go env GOPATH)/bin/garble
|
||||||
|
GO_ENV_VARS = CGO_ENABLED=0
|
||||||
|
|
||||||
|
all: socks5-ssh-proxy
|
||||||
|
|
||||||
|
ci: secrets release
|
||||||
|
secrets:
|
||||||
|
cat $(CONFIG_RELEASE_GO_FILE) > config_release.go
|
||||||
|
release: socks5-ssh-proxy.release socks5-ssh-proxy.exe
|
||||||
|
|
||||||
all: socks5-ssh-proxy socks5-ssh-proxy.release socks5-ssh-proxy.exe
|
|
||||||
test: socks5-ssh-proxy
|
test: socks5-ssh-proxy
|
||||||
cp socks5-ssh-proxy ~/.ssh; cd ~/.ssh; ~/.ssh/socks5-ssh-proxy
|
cp socks5-ssh-proxy ~/.ssh; cd ~/.ssh; ~/.ssh/socks5-ssh-proxy
|
||||||
test-release: socks5-ssh-proxy.release
|
test-release: socks5-ssh-proxy.release
|
||||||
|
|
@ -9,7 +16,7 @@ test-release: socks5-ssh-proxy.release
|
||||||
socks5-ssh-proxy: $(SOURCES)
|
socks5-ssh-proxy: $(SOURCES)
|
||||||
go build -o $@
|
go build -o $@
|
||||||
socks5-ssh-proxy.release: resources $(SOURCES)
|
socks5-ssh-proxy.release: resources $(SOURCES)
|
||||||
go build -tags release -o $@
|
$(GO_ENV_VARS) go build -tags release -o $@
|
||||||
win: socks5-ssh-proxy.exe
|
win: socks5-ssh-proxy.exe
|
||||||
socks5-ssh-proxy.exe: resources $(GARBLE_BIN) $(SOURCES)
|
socks5-ssh-proxy.exe: resources $(GARBLE_BIN) $(SOURCES)
|
||||||
GOOS=windows GOARCH=amd64 $(GARBLE_BIN) build -ldflags -H=windowsgui -tags release -o $@
|
GOOS=windows GOARCH=amd64 $(GARBLE_BIN) build -ldflags -H=windowsgui -tags release -o $@
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,11 @@ E.g:
|
||||||
|
|
||||||
## Detection
|
## Detection
|
||||||
|
|
||||||
|
See <https://go.dev/doc/faq#virus>
|
||||||
|
|
||||||
* Microsoft Defender: Trojan:Win32/Gracing.I - Severe
|
* Microsoft Defender: Trojan:Win32/Gracing.I - Severe
|
||||||
|
|
||||||
|
|
||||||
## Related blog posts
|
## Related blog posts
|
||||||
|
|
||||||
* https://blog.projectdiscovery.io/proxify-portable-cli-based-proxy/
|
* https://blog.projectdiscovery.io/proxify-portable-cli-based-proxy/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue