Skip to content

Commit

Permalink
完善httpx代理,支持socks5
Browse files Browse the repository at this point in the history
  • Loading branch information
veo committed Aug 1, 2021
1 parent 6fbd34f commit 044c6fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Vscan 是一款为红队开发的简单、快速的跨平台打点扫描器。
-stats Display stats of the running scan
-scan-all-ips Scan all the ips
-s Scan Type (s - SYN, c - CONNECT)
-http-proxy HTTP Proxy, eg http://127.0.0.1:8080
-proxy Httpx Proxy, eg (http://127.0.0.1:8080|socks5://127.0.0.1:1080)
```

### 2.功能
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ func main() {
httpxoptions.NoColor = naabuoptions.NoColor
httpxoptions.Silent = naabuoptions.Silent
httpxoptions.Output = naabuoptions.Output
httpxoptions.HTTPProxy = naabuoptions.HTTPProxy
brute.HttpProxy = naabuoptions.HTTPProxy
exp.HttpProxy = naabuoptions.HTTPProxy
httpxoptions.HTTPProxy = naabuoptions.Proxy
brute.HttpProxy = naabuoptions.Proxy
exp.HttpProxy = naabuoptions.Proxy
httpxoptions.Naabuinput = naaburunner.Naabuipports
r, err := httpxrunner.New(httpxoptions)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/naabu/runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type Options struct {
EnableProgressBar bool // Enable progress bar
ScanAllIPS bool // Scan all the ips
ScanType string // Scan Type
HTTPProxy string
Proxy string
config *ConfigFile
}

Expand Down Expand Up @@ -85,7 +85,7 @@ func ParseOptions() *Options {
flag.BoolVar(&options.EnableProgressBar, "stats", false, "Display stats of the running scan")
flag.BoolVar(&options.ScanAllIPS, "scan-all-ips", false, "Scan all the ips")
flag.StringVar(&options.ScanType, "s", SynScan, "Scan Type (s - SYN, c - CONNECT)")
flag.StringVar(&options.HTTPProxy, "http-proxy", "", "HTTP Proxy, eg http://127.0.0.1:8080")
flag.StringVar(&options.Proxy, "proxy", "", "HTTP Proxy, eg http://127.0.0.1:8080")

flag.Parse()

Expand Down

0 comments on commit 044c6fa

Please sign in to comment.