From 71b4ca07607f8ea4f8ee2d5dc98540c20fdeb636 Mon Sep 17 00:00:00 2001 From: edoardottt Date: Sat, 19 Jun 2021 17:32:48 +0200 Subject: [PATCH] version, help and examples without input --- README.md | 7 ++++--- main.go | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index be49815..f79ecc8 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ You need [Go](https://golang.org/). Get Started 🎉 ---------- -`cariddi help` prints the help in the command line. +`cariddi -h` prints the help in the command line. ``` Usage of cariddi: @@ -126,8 +126,9 @@ Usage of cariddi: Examples 💡 ---------- - - `cat urls | cariddi -version` (Print the version) - - `cat urls | cariddi -h` (Print the help) + - `cariddi -version` (Print the version) + - `cariddi -h` (Print the help) + - `cariddi -examples` (Print the examples) - `cat urls | cariddi -s` (Hunt for secrets) - `cat urls | cariddi -d 2` (2 seconds between a page crawled and another) - `cat urls | cariddi -c 200` (Set the concurrency level to 200) diff --git a/main.go b/main.go index 9a4afe0..2b79847 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,6 @@ import ( //main func main() { - targets := input.ScanTargets() flags := input.ScanFlag() if flags.Version { @@ -57,6 +56,8 @@ func main() { output.Beautify() } + targets := input.ScanTargets() + // ----------- TODO: check ALL input ------------------- input.CheckFlags(flags)