()
| 258 | } |
| 259 | |
| 260 | func help() { |
| 261 | w := new(tabwriter.Writer) |
| 262 | w.Init(os.Stdout, 8, 8, 0, '\t', 0) |
| 263 | |
| 264 | fmt.Printf(getLogo()+"\nWCVS - the Web Cache Vulnerability Scanner. (v%s)"+"\n\n", version) |
| 265 | |
| 266 | fmt.Println("Published by Hackmanit under http://www.apache.org/licenses/LICENSE-2.0") |
| 267 | fmt.Println("Author: Maximilian Hildebrand") |
| 268 | fmt.Println("Repository: https://github.com/Hackmanit/Web-Cache-Vulnerability-Scanner") |
| 269 | fmt.Println("Blog Post: https://hackmanit.de/en/blog-en/145-web-cache-vulnerability-scanner-wcvs-free-customizable-easy-to-use") |
| 270 | fmt.Print("Usage: Web-Cache-Vulnerability-Scanner(.exe) [options]\n\n") |
| 271 | |
| 272 | fmt.Println("General Options:") |
| 273 | fmt.Fprintf(w, "%s\t%s\t%s\n", "--help", "-h", "Show this help and quit") |
| 274 | writeToWriter(w, generalOptions) |
| 275 | |
| 276 | fmt.Println("\nGenerate Options:") |
| 277 | writeToWriter(w, generateOptions) |
| 278 | |
| 279 | fmt.Println("\nRequest Options:") |
| 280 | writeToWriter(w, requestOptions) |
| 281 | |
| 282 | fmt.Println("\nCrawl Options:") |
| 283 | writeToWriter(w, crawlOptions) |
| 284 | |
| 285 | fmt.Println("\nWordlist Options:") |
| 286 | writeToWriter(w, wordlistOptions) |
| 287 | |
| 288 | os.Exit(0) |
| 289 | } |
| 290 | |
| 291 | func getLogo() string { |
| 292 | // source: https://patorjk.com/software/taag/#p=display&f=Slant%20Relief&t=wcvs |
nothing calls this directly
no test coverage detected