Skip to content

Commit

Permalink
Merge pull request #1 from d1nfinite/feat(action)/init
Browse files Browse the repository at this point in the history
feat(action): init
  • Loading branch information
d1nfinite committed May 5, 2022
2 parents dbb2a49 + bf4c5a2 commit f39ae76
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: server
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.17.5'
- run: sudo apt update && sudo apt-get install -y libpcap-dev && go mod tidy && CGO_ENABLED=1 go build -a -o server_linux_amd64 -ldflags '-extldflags "-static"' ./cmd/server/cli.go
- uses: actions/upload-artifact@v2
with:
name: server
path: server_linux_amd64
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: server_linux_amd64
19 changes: 19 additions & 0 deletions .github/workflows/shell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: shell
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.17.5'
- run: sudo apt update && sudo apt-get install -y libpcap-dev && go mod tidy && CGO_ENABLED=1 go build -a -o shell_linux_amd64 -ldflags '-extldflags "-static"' ./cmd/shell/cli.go
- uses: actions/upload-artifact@v2
with:
name: shell
path: shell_linux_amd64
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: shell_linux_amd64
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Server 端启动监听
./server --token [secret]
```

Client 端通过 ICMP 反弹 Shell
Shell 端通过 ICMP 反弹 Shell
```shell
./shell --token [secret] --ip [server_ip_address]
```

0 comments on commit f39ae76

Please sign in to comment.