Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowabi committed Apr 10, 2024
2 parents 80843e3 + b0ce718 commit e1474c9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 39 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,30 @@ jobs:

- name: Install dependencies
run: |
go get .
sudo apt install upx -y
go mod tidy
- name: Get Set
run: |
go env -w GO111MODULE=on
go env -w CGO_ENABLED=0
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # 拉取所有历史记录

- name: Build LINUX
run: |
env GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o AutoDomain_linux_amd64 main.go
env GOOS=linux GOARCH=arm64 go build -trimpath -ldflags "-s -w" -o AutoDomain_linux_arm64 main.go
env GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o AutoDomain_linux_amd64 main/main.go
env GOOS=linux GOARCH=arm64 go build -trimpath -ldflags "-s -w" -o AutoDomain_linux_arm64 main/main.go
- name: Build WINDOWS
run: |
env GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o AutoDomain_windows_amd64.exe main.go
env GOOS=windows GOARCH=386 go build -trimpath -ldflags "-s -w" -o AutoDomain_windows_386.exe main.go
env GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "-s -w" -o AutoDomain_windows_amd64.exe main/main.go
env GOOS=windows GOARCH=386 go build -trimpath -ldflags "-s -w" -o AutoDomain_windows_386.exe main/main.go
- name: Create Zip Archive
run: |
upx -9 AutoDomain*
zip -r AutoDomain_linux_amd64.zip AutoDomain_linux_amd64 config/
zip -r AutoDomain_linux_arm64.zip AutoDomain_linux_arm64 config/
zip -r AutoDomain_windows_amd64.zip AutoDomain_windows_amd64.exe config/
zip -r AutoDomain_windows_386.zip AutoDomain_windows_386.exe config/
zip -r Serverless_PortScan_linux_amd64.zip AutoDomain_linux_amd64
zip -r Serverless_PortScan_linux_arm64.zip AutoDomain_linux_arm64
zip -r Serverless_PortScan_windows_amd64.zip AutoDomain_windows_amd64.exe
zip -r Serverless_PortScan_windows_386.zip AutoDomain_windows_386.exe
- name: Fetch all tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand All @@ -63,7 +57,6 @@ jobs:
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "Latest tag: $LATEST_TAG"
echo ::set-output name=tag::${LATEST_TAG}
- name: Increment tag
id: increment-tag
run: |
Expand All @@ -75,7 +68,6 @@ jobs:
NEW_TAG="$BASE_TAG.$NEW_VERSION"
echo ::set-output name=new-tag::${NEW_TAG}
echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV
- name: Create and Upload Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
39 changes: 17 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,30 @@
hunter API参考自https://github.com/W01fh4cker/hunter-to-excel/



## 安装

下载release中的文件

使用Makefile进行编译


## 配置

当首次运行AutoDomain时,会检测config.json文件是否存在,不存在则会自动创建

config.json的填写内容应该如下:
```
{
"FofaMail": "",
"FofaKey": "",
"QuakeKey": "",
"HunterKey": "",
"ZoomeyeKey": "",
"PulsediveKey": ""
}
```
填入的对应内容可使用对应的指定模块


## 用法

Expand Down Expand Up @@ -50,27 +66,6 @@ Use "AutoDomain [command] --help" for more information about a command.
```




## 配置

当首次运行AutoDomain时,会检测config.json文件是否存在,不存在则会自动创建

config.json的填写内容应该如下:
```
{
"FofaMail": "",
"FofaKey": "",
"QuakeKey": "",
"HunterKey": "",
"ZoomeyeKey": "",
"PulsediveKey": ""
}
```
填入的对应内容可使用对应的指定模块



## 功能列表

1. 多种网络资产测绘,自动识别ip和域名,分别采用对应语法
Expand Down

0 comments on commit e1474c9

Please sign in to comment.