2023-04-16 19:49:35 +02:00
|
|
|
package interactsh
|
|
|
|
|
|
|
|
|
|
import (
|
2023-04-25 20:19:23 +02:00
|
|
|
"errors"
|
2023-04-16 19:49:35 +02:00
|
|
|
"regexp"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
defaultInteractionDuration = 60 * time.Second
|
2025-08-25 15:06:58 +07:00
|
|
|
interactshURLMarkerRegex = regexp.MustCompile(`(%7[B|b]|\{){2}(interactsh-url(?:_[0-9]+){0,3})(%7[D|d]|\}){2}`)
|
2023-04-25 20:19:23 +02:00
|
|
|
|
|
|
|
|
ErrInteractshClientNotInitialized = errors.New("interactsh client not initialized")
|
2023-04-16 19:49:35 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
stopAtFirstMatchAttribute = "stop-at-first-match"
|
|
|
|
|
templateIdAttribute = "template-id"
|
|
|
|
|
|
|
|
|
|
defaultMaxInteractionsCount = 5000
|
|
|
|
|
)
|