Skip to content

Commit f94f72d

Browse files
authored
Merge pull request #2287 from ayanrajpoot10/dev
feat: add shorthand flag for websocket option in command line
2 parents 1499685 + 8f33284 commit f94f72d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ PROBES:
113113
-td, -tech-detect display technology in use based on wappalyzer dataset
114114
-cff, -custom-fingerprint-file string path to a custom fingerprint file for technology detection
115115
-method display http request method
116-
-websocket display server using websocket
116+
-ws, -websocket display server using websocket
117117
-ip display host ip
118118
-cname display host cname
119119
-extract-fqdn, -efqdn get domain and subdomains from response body and header in jsonl/csv output

runner/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func ParseOptions() *Options {
386386
flagSet.BoolVarP(&options.TechDetect, "tech-detect", "td", false, "display technology in use based on wappalyzer dataset"),
387387
flagSet.StringVarP(&options.CustomFingerprintFile, "custom-fingerprint-file", "cff", "", "path to a custom fingerprint file for technology detection"),
388388
flagSet.BoolVar(&options.OutputMethod, "method", false, "display http request method"),
389-
flagSet.BoolVar(&options.OutputWebSocket, "websocket", false, "display server using websocket"),
389+
flagSet.BoolVarP(&options.OutputWebSocket, "websocket", "ws", false, "display server using websocket"),
390390
flagSet.BoolVar(&options.OutputIP, "ip", false, "display host ip"),
391391
flagSet.BoolVar(&options.OutputCName, "cname", false, "display host cname"),
392392
flagSet.BoolVarP(&options.ExtractFqdn, "efqdn", "extract-fqdn", false, "get domain and subdomains from response body and header in jsonl/csv output"),

0 commit comments

Comments
 (0)