Skip to content

Commit

Permalink
add describe
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowabi committed Apr 30, 2024
1 parent 3e25111 commit e394dc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Usage:
Flags:
-e, --endpoint string 输入
-e, --endpoint string 输入需要被枚举的 endpoint (Input [endpoint])
-f, --file string 从文件中读取目标地址 (Input filename)
-h, --help help for EndpointSearch
--logLevel string 设置日志等级 (Set log level) [trace|debug|info|warn|error|fatal|panic] (default "info")
Expand All @@ -79,6 +79,9 @@ Flags:
-t, --timeout int 输入每个 http 请求的超时时间 (Enter the timeout period for every http request) (default 3)
-u, --url string 输入目标地址 (Input [domain|url])
```
EndpointSearch 同样支持手动覆盖配置参数,-e 参数默认为配置中的 CloudEndpoint,-p 参数为配置中的 PortList

当主动指定参数后,将不再使用配置文件中的默认值

## 功能列表

Expand Down
7 changes: 4 additions & 3 deletions cmd/rootCmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package cmd
import (
"errors"
"fmt"
"os"
"strings"

"github.com/wgpsec/EndpointSearch/define"
"github.com/wgpsec/EndpointSearch/internal/config"
"github.com/wgpsec/EndpointSearch/internal/log"
"github.com/wgpsec/EndpointSearch/pkg"
"github.com/wgpsec/EndpointSearch/utils/Compare"
"github.com/wgpsec/EndpointSearch/utils/Error"
"os"
"strings"

cc "github.com/ivanpirog/coloredcobra"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -80,7 +81,7 @@ func init() {
RootCmd.SetHelpFunc(customHelpFunc)
RootCmd.Flags().StringVarP(&define.File, "file", "f", "", "从文件中读取目标地址 (Input filename)")
RootCmd.Flags().StringVarP(&define.Url, "url", "u", "", "输入目标地址 (Input [domain|url])")
RootCmd.Flags().StringVarP(&define.Endpoint, "endpoint", "e", "", "输入")
RootCmd.Flags().StringVarP(&define.Endpoint, "endpoint", "e", "", "输入需要被枚举的 endpoint (Input [endpoint])")
RootCmd.Flags().IntVarP(&define.TimeOut, "timeout", "t", 2, "输入每个 http 请求的超时时间 (Enter the timeout period for every http request)")
RootCmd.Flags().StringVarP(&define.OutPut, "output", "o", "./result.txt", "输入结果文件输出的位置 (Enter the location of the scan result output)")
RootCmd.Flags().StringVarP(&define.Port, "port", "p", "", "输入需要被扫描的端口,逗号分割 (Enter the port to be scanned, separated by commas (,))")
Expand Down

0 comments on commit e394dc3

Please sign in to comment.