misc update

dev
sandeep 2021-09-06 19:10:32 +05:30
parent 1ea89d7560
commit 802b6b4f65
3 changed files with 5 additions and 5 deletions

View File

@ -108,9 +108,9 @@ on extensive configurability, massive extensibility and ease of use.`)
) )
createGroup(flagSet, "interactsh", "interactsh", createGroup(flagSet, "interactsh", "interactsh",
flagSet.BoolVar(&options.NoInteractsh, "no-interactsh", false, "do not use interactsh server for blind interaction polling"), flagSet.BoolVar(&options.NoInteractsh, "no-interactsh", false, "disable interactsh server for OOB testing"),
flagSet.StringVar(&options.InteractshURL, "interactsh-url", "https://interact.sh", "self-hosted Interactsh Server URL"), flagSet.StringVar(&options.InteractshURL, "interactsh-url", "https://interact.sh", "interactsh server url for self-hosted instance"),
flagSet.StringVar(&options.InteractshAuth, "interactsh-auth", "", "authorization header for self-hosted interactsh server"), flagSet.StringVar(&options.InteractshToken, "interactsh-token", "", "authentication token for self-hosted interactsh server"),
flagSet.IntVar(&options.InteractionsCacheSize, "interactions-cache-size", 5000, "number of requests to keep in the interactions cache"), flagSet.IntVar(&options.InteractionsCacheSize, "interactions-cache-size", 5000, "number of requests to keep in the interactions cache"),
flagSet.IntVar(&options.InteractionsEviction, "interactions-eviction", 60, "number of seconds to wait before evicting requests from cache"), flagSet.IntVar(&options.InteractionsEviction, "interactions-eviction", 60, "number of seconds to wait before evicting requests from cache"),
flagSet.IntVar(&options.InteractionsPollDuration, "interactions-poll-duration", 5, "number of seconds to wait before each interaction poll request"), flagSet.IntVar(&options.InteractionsPollDuration, "interactions-poll-duration", 5, "number of seconds to wait before each interaction poll request"),

View File

@ -220,7 +220,7 @@ func New(options *types.Options) (*Runner, error) {
if !options.NoInteractsh { if !options.NoInteractsh {
interactshClient, err := interactsh.New(&interactsh.Options{ interactshClient, err := interactsh.New(&interactsh.Options{
ServerURL: options.InteractshURL, ServerURL: options.InteractshURL,
Authorization: options.InteractshAuth, Authorization: options.InteractshToken,
CacheSize: int64(options.InteractionsCacheSize), CacheSize: int64(options.InteractionsCacheSize),
Eviction: time.Duration(options.InteractionsEviction) * time.Second, Eviction: time.Duration(options.InteractionsEviction) * time.Second,
ColldownPeriod: time.Duration(options.InteractionsColldownPeriod) * time.Second, ColldownPeriod: time.Duration(options.InteractionsColldownPeriod) * time.Second,

View File

@ -38,7 +38,7 @@ type Options struct {
// InteractshURL is the URL for the interactsh server. // InteractshURL is the URL for the interactsh server.
InteractshURL string InteractshURL string
// Interactsh Authorization header value for self-hosted servers // Interactsh Authorization header value for self-hosted servers
InteractshAuth string InteractshToken string
// Target URLs/Domains to scan using a template // Target URLs/Domains to scan using a template
Targets goflags.StringSlice Targets goflags.StringSlice
// TargetsFilePath specifies the targets from a file to scan using templates. // TargetsFilePath specifies the targets from a file to scan using templates.