Skip to content

Commit

Permalink
add banner
Browse files Browse the repository at this point in the history
  • Loading branch information
zomasec committed Oct 26, 2024
1 parent b1dc1cb commit a4b8fbc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/paramx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/cyinnove/logify"
"github.com/cyinnove/paramx/internal/runner"
"github.com/cyinnove/paramx/pkg/utils"
"github.com/cyinnove/paramx/internal/config" // Import the config package
)

var opts = &runner.Options{}
Expand All @@ -17,10 +18,13 @@ func init() {
flag.StringVar(&opts.Tag, "tag", "xss", "The type of bug to extract the URLs based on it (default: \"xss\"). Supported values: xss, sqli, lfi, rce, idor, ssrf, ssti, redirect.")
flag.StringVar(&opts.ReplaceWith, "rw", "", "Replace the parameter value with a custom value.")
flag.StringVar(&opts.CustomTemplete, "t", "", "Path to a custom template.")

}

func main() {
// Display banner
config.Banner()

// Parse command-line flags
flag.Parse()

// Read URLs from file if provided
Expand All @@ -41,6 +45,6 @@ func main() {
opts.URLs = urls
}

// Run the tool
runner.Run(opts)

}
16 changes: 16 additions & 0 deletions internal/config/banner.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package config

import (
"fmt"
"os"
)

func Banner() {
fmt.Fprintf(os.Stdout, `
___ ___ ________ ___ _ __ __
/ _ \/ _ '/ __/ _ '/ ' \ \ /
/ .__/\_,_/_/ \_,_/_/_/_/_\_\ @CyInnove
/_/
`)
}

0 comments on commit a4b8fbc

Please sign in to comment.