Interactsh bugfix release (#1368)

* dev version update

* Adding race condition test (#1357)

* Removing linux/arm - Missing chrome package (#1355)

* Trim paths info from released binary (#1356)

* chore(deps): bump golang from 1.17.4-alpine to 1.17.5-alpine (#1363)

Bumps golang from 1.17.4-alpine to 1.17.5-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: updating default interactsh server to use

Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Sandeep Singh 2021-12-13 18:46:41 +05:30 committed by GitHub
parent db530c851a
commit ed309e446a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 8 deletions

View File

@ -28,4 +28,9 @@ jobs:
- name: Build - name: Build
run: go build . run: go build .
working-directory: v2/cmd/nuclei/
# At the bottom for known issue on OSX - https://github.com/projectdiscovery/nuclei/issues/1309
- name: Race Condition Tests
run: go build -race .
working-directory: v2/cmd/nuclei/ working-directory: v2/cmd/nuclei/

View File

@ -1,4 +1,4 @@
FROM golang:1.17.4-alpine as build-env FROM golang:1.17.5-alpine as build-env
RUN go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest RUN go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
FROM alpine:3.15.0 FROM alpine:3.15.0

View File

@ -142,7 +142,7 @@ CONFIGURATIONS:
-ca, -client-ca string client certificate authority file (PEM-encoded) used for authenticating against scanned hosts -ca, -client-ca string client certificate authority file (PEM-encoded) used for authenticating against scanned hosts
INTERACTSH: INTERACTSH:
-iserver, -interactsh-server string interactsh server url for self-hosted instance (default "https://interactsh.com") -iserver, -interactsh-server string interactsh server url for self-hosted instance (default "https://interact.sh")
-itoken, -interactsh-token string authentication token for self-hosted interactsh server -itoken, -interactsh-token string authentication token for self-hosted interactsh server
-interactions-cache-size int number of requests to keep in the interactions cache (default 5000) -interactions-cache-size int number of requests to keep in the interactions cache (default 5000)
-interactions-eviction int number of seconds to wait before evicting requests from cache (default 60) -interactions-eviction int number of seconds to wait before evicting requests from cache (default 60)

View File

@ -133,7 +133,7 @@ Nuclei是一款注重于可配置性、可扩展性和易用性的基于模板
-ev, env-vars 在模板中使用环境变量 -ev, env-vars 在模板中使用环境变量
交互: 交互:
-inserver, -ineractsh-server string 使用interactsh反连检测平台默认为"https://interactsh.com" -inserver, -ineractsh-server string 使用interactsh反连检测平台默认为"https://interact.sh"
-itoken, -interactsh-token string 指定反连检测平台的身份凭证 -itoken, -interactsh-token string 指定反连检测平台的身份凭证
-interactions-cache-size int 指定保存在交互缓存中的请求数默认5000 -interactions-cache-size int 指定保存在交互缓存中的请求数默认5000
-interactions-eviction int 聪缓存中删除请求前等待的时间默认为60秒 -interactions-eviction int 聪缓存中删除请求前等待的时间默认为60秒

View File

@ -26,6 +26,9 @@ builds:
binary: '{{ .ProjectName }}' binary: '{{ .ProjectName }}'
main: cmd/nuclei/main.go main: cmd/nuclei/main.go
flags:
- -trimpath
archives: archives:
- format: zip - format: zip
replacements: replacements:

View File

@ -105,7 +105,7 @@ on extensive configurability, massive extensibility and ease of use.`)
) )
createGroup(flagSet, "interactsh", "interactsh", createGroup(flagSet, "interactsh", "interactsh",
flagSet.StringVarP(&options.InteractshURL, "interactsh-server", "iserver", "https://interactsh.com", "interactsh server url for self-hosted instance"), flagSet.StringVarP(&options.InteractshURL, "interactsh-server", "iserver", "https://interact.sh", "interactsh server url for self-hosted instance"),
flagSet.StringVarP(&options.InteractshToken, "interactsh-token", "itoken", "", "authentication token for self-hosted interactsh server"), flagSet.StringVarP(&options.InteractshToken, "interactsh-token", "itoken", "", "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"),

View File

@ -26,7 +26,7 @@ type Config struct {
const nucleiConfigFilename = ".templates-config.json" const nucleiConfigFilename = ".templates-config.json"
// Version is the current version of nuclei // Version is the current version of nuclei
const Version = `2.5.4` const Version = `2.5.5`
func getConfigDetails() (string, error) { func getConfigDetails() (string, error) {
homeDir, err := os.UserHomeDir() homeDir, err := os.UserHomeDir()

View File

@ -109,7 +109,7 @@ func New(options *Options) (*Client, error) {
// NewDefaultOptions returns the default options for interactsh client // NewDefaultOptions returns the default options for interactsh client
func NewDefaultOptions(output output.Writer, reporting *reporting.Client, progress progress.Progress) *Options { func NewDefaultOptions(output output.Writer, reporting *reporting.Client, progress progress.Progress) *Options {
return &Options{ return &Options{
ServerURL: "https://interactsh.com", ServerURL: "https://interact.sh",
CacheSize: 5000, CacheSize: 5000,
Eviction: 60 * time.Second, Eviction: 60 * time.Second,
ColldownPeriod: 5 * time.Second, ColldownPeriod: 5 * time.Second,
@ -265,7 +265,7 @@ func (c *Client) RequestEvent(interactshURLs []string, data *RequestData) {
// HasMatchers returns true if an operator has interactsh part // HasMatchers returns true if an operator has interactsh part
// matchers or extractors. // matchers or extractors.
// //
// Used by requests to show result or not depending on presence of interactsh.com // Used by requests to show result or not depending on presence of interact.sh
// data part matchers. // data part matchers.
func HasMatchers(op *operators.Operators) bool { func HasMatchers(op *operators.Operators) bool {
if op == nil { if op == nil {

View File

@ -58,7 +58,7 @@ var DefaultOptions = &types.Options{
Templates: []string{}, Templates: []string{},
ExcludedTemplates: []string{}, ExcludedTemplates: []string{},
CustomHeaders: []string{}, CustomHeaders: []string{},
InteractshURL: "https://interactsh.com", InteractshURL: "https://interact.sh",
InteractionsCacheSize: 5000, InteractionsCacheSize: 5000,
InteractionsEviction: 60, InteractionsEviction: 60,
InteractionsCoolDownPeriod: 5, InteractionsCoolDownPeriod: 5,