Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add regex support for -eh #4437

Merged
merged 1 commit into from
Nov 28, 2023
Merged

add regex support for -eh #4437

merged 1 commit into from
Nov 28, 2023

Conversation

dogancanbakir
Copy link
Member

@dogancanbakir dogancanbakir commented Nov 28, 2023

Proposed changes

$ cat scan_list.txt 
1.1.1.1
status.example.com
docs.example.com
api.example.com
1.1.1.1/24
*.gov
admin*.gov

$ go run . -list scan_list.txt -eh example

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.1.0-dev

                projectdiscovery.io

[INF] Number of hosts excluded from input: 3
[INF] Supplied input was automatically deduplicated (1 removed).
[INF] Current nuclei version: v3.1.0-dev (development)
[INF] Current nuclei-templates version: v9.6.9 (latest)
[WRN] Scan results upload to cloud is disabled.
[INF] New templates added in latest release: 73
[INF] Templates loaded for current scan: 7278
[INF] Executing 5266 signed templates from projectdiscovery/nuclei-templates
[WRN] Executing 2027 unsigned templates. Use with caution.
[INF] Targets loaded for current scan: 258
[INF] Running httpx on input host
[INF] Found 255 URL from httpx
[INF] Templates clustered: 1253 (Reduced 314760 Requests)
[ptr-fingerprint] [dns] [info] 1.1.1.1.in-addr.arpa [one.one.one.one.]
[caa-fingerprint] [dns] [info] *.gov
[caa-fingerprint] [dns] [info] admin*.gov
[INF] Using Interactsh Server: oast.me
^C[INF] CTRL+C pressed: Exiting
[INF] Creating resume file: /home/vscode/.cache/nuclei/resume-cliqjsst08rodd1t1h00.cfg
[ERR] Couldn't create resume file: open /home/vscode/.cache/nuclei/resume-cliqjsst08rodd1t1h00.cfg: no such file or directory
exit status 1

Closes #4412.

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@ehsandeep ehsandeep merged commit 7cd340b into dev Nov 28, 2023
12 checks passed
@ehsandeep ehsandeep deleted the eh_regex_support branch November 28, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

regex support for -eh, -exclude-host
2 participants