diff --git a/Common/Flag.go b/Common/Flag.go index eae87a9..8c117e1 100644 --- a/Common/Flag.go +++ b/Common/Flag.go @@ -246,7 +246,7 @@ func Flag(Info *HostInfo) { // ═════════════════════════════════════════════════ flag.StringVar(&Shellcode, "sc", "", i18n.GetText("flag_shellcode")) flag.StringVar(&ReverseShellTarget, "rsh", "", i18n.GetText("flag_reverse_shell_target")) - flag.IntVar(&Socks5ProxyPort, "socks5-port", 0, i18n.GetText("flag_socks5_proxy")) + flag.IntVar(&Socks5ProxyPort, "start-socks5", 0, i18n.GetText("flag_start_socks5_server")) flag.IntVar(&ForwardShellPort, "fsh-port", 4444, i18n.GetText("flag_forward_shell_port")) flag.StringVar(&PersistenceTargetFile, "persistence-file", "", i18n.GetText("flag_persistence_file")) flag.StringVar(&WinPEFile, "win-pe", "", i18n.GetText("flag_win_pe_file")) diff --git a/Common/i18n/messages/flag.go b/Common/i18n/messages/flag.go index 70b24c7..571c379 100644 --- a/Common/i18n/messages/flag.go +++ b/Common/i18n/messages/flag.go @@ -235,6 +235,10 @@ var FlagMessages = map[string]map[string]string{ LangEN: "Reverse shell target address:port (e.g.: 192.168.1.100:4444)", }, "flag_socks5_proxy": { + LangZH: "使用SOCKS5代理 (如: 127.0.0.1:1080)", + LangEN: "Use SOCKS5 proxy (e.g.: 127.0.0.1:1080)", + }, + "flag_start_socks5_server": { LangZH: "启动SOCKS5代理服务器端口 (如: 1080)", LangEN: "Start SOCKS5 proxy server on port (e.g.: 1080)", }, diff --git a/PARAMETERS.md b/PARAMETERS.md index c944f07..ae18261 100644 --- a/PARAMETERS.md +++ b/PARAMETERS.md @@ -86,8 +86,8 @@ ### 代理服务 | 参数 | 说明 | 默认值 | 示例 | |------|------|--------|------| -| `-socks5` | 启动SOCKS5代理服务器端口 | - | `-socks5 1080` | -| `-socks5-port` | 启动SOCKS5代理服务器端口 | - | `-socks5-port 1080` | +| `-socks5` | 使用SOCKS5代理 | - | `-socks5 127.0.0.1:1080` | +| `-start-socks5` | 启动SOCKS5代理服务器端口 | - | `-start-socks5 1080` | ## 本地插件系统 @@ -214,9 +214,15 @@ go run main.go -local winregistry -win-pe target.exe # 全量POC扫描 go run main.go -h 192.168.1.1/24 -full -# 使用代理 +# 使用HTTP代理 go run main.go -h 192.168.1.1 -proxy http://127.0.0.1:8080 +# 使用SOCKS5代理 +go run main.go -h 192.168.1.1 -socks5 127.0.0.1:1080 + +# 启动SOCKS5代理服务器 +go run main.go -start-socks5 1080 + # 暴力破解 go run main.go -h 192.168.1.1 -user admin -pwd password