30 Commits

Author SHA1 Message Date
Dogan Can Bakir
9bd4db3f74
introduce disable-unsigned-templates flag (#4820)
* introduce `disable-unsigned-templates` flag

* minor

* skip instead of exit

* remove duplicate imports

* use stats package + misc enhancements

* force display warning + adjust skipped stats in unsigned count

* include unsigned skipped templates without -dut flag

---------

Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
2024-03-11 02:01:17 +05:30
Tarun Koyalwar
b1b4f0fe76
fix nuclei loading ignored templates (#4849)
* fix tag include logic

* fix unit test

* remove quoting in extractor output

* remove quote in debug code command
2024-03-09 21:20:54 +05:30
Tarun Koyalwar
2cbc21e228
fix stop-at-first-match issue in http protocol (#4752)
* fix stop-at-first-match issue in http protocol

* spm: synchronize callback exec

* bump nuclei version to v3.2.0-dev

* add spm support for race & pipelined http requests

* support stop-at-first-match in race request

* update spm logic in parallel http & pipeline requests

* fix duplicated event issue

* spm: exit early + threads value override issue
2024-02-13 01:20:19 +05:30
sandeep
ee68de6ea8 version update 2024-02-02 22:19:07 +05:30
Tarun Koyalwar
29e8e4e5a3
fix concurrent map writes in tmplexec package (#4718)
* fix concurrent map writes

* catch any possible panics
2024-02-02 21:36:48 +05:30
sandeep
e2effc33c1 version update 2024-02-02 03:08:56 +05:30
sandeep
b23e176ee9 version update 2024-01-31 04:10:00 +05:30
Tarun Koyalwar
5bd9d9ee68
memory leak fixes and optimizations (#4680)
* feat http response memory optimization + reuse buffers

* update nuclei version

* feat: reuse js vm's and compile to programs

* fix failing http integration test

* remove dead code + add -jsc

* feat reuse js vms in pool with concurrency

* update comments as per review

* bug fix+ update interactsh test to look for dns interaction

* try enabling all interactsh integration tests

---------

Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
2024-01-31 01:59:49 +05:30
sandeep
b9e2665e9e version update 2024-01-23 03:12:50 +05:30
sandeep
f7ba2390bf dev version update 2024-01-19 02:02:58 +05:30
sandeep
4dca9a1959 version update 2024-01-18 05:55:34 +05:30
Tarun Koyalwar
c7c35ffb94
fix multiple mem leaks + optimizations (#4630)
* fix mem leak

* bump version tag

* http: add  global resp body read limit of 4MB

* skip creating templateCtx in normal templates

* fix mem leak via retryablehttp , fastdialer

* go mod tidy

* remove unused var

* dep update

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2024-01-18 05:53:42 +05:30
sandeep
99775e0392 version update 2024-01-10 18:53:02 +05:30
sandeep
018aecfbae version update 2024-01-08 05:25:58 +05:30
sandeep
c60b7f02f2 version update 2023-12-21 18:18:58 +05:30
sandeep
0cc37a9eeb version update 2023-12-17 23:10:43 +05:30
sandeep
4413716f58 version update 2023-12-09 18:45:35 +05:30
sandeep
9e9a4a82da version update 2023-11-30 22:25:58 +05:30
sandeep
7fb729898c removed deprecated host 2023-11-30 16:05:24 +05:30
Sandeep Singh
1d6890ca2f
cloud template url update (#4439) 2023-11-28 22:05:58 +05:30
sandeep
dbba3074d8 version update 2023-11-18 14:58:54 +05:30
sandeep
8d9b127c08 version update 2023-11-18 13:21:15 +05:30
Tarun Koyalwar
775c7f762b
add -code flag to run code proto templates (#4376) 2023-11-16 17:56:07 +05:30
Dogan Can Bakir
7c2db9c394
introduce template-encoded field (#4315)
* introduce `template-encoded` field

* remove IsCustomTemplate func

* refactor and move encoding to `MakeResultEventItem` func

* encode template in case of no results were found

* commit to last commit

* don't encode templates when`-ms` is used
2023-11-11 04:42:27 +05:30
sandeep
4db5756fd0 go mod tidy 2023-11-02 20:01:13 +05:30
sandeep
7aab84eae7 version update 2023-10-26 21:27:51 +05:30
Tarun Koyalwar
5c9af62037
fix relative path issue + remove residual code (#4284)
* fix relative path issue + remove residual code

* use template dir in templateFS

* fix dir relative path issue

* print metrics server address in verbose mode

* add timeout for downloading binary & templates

* update stats & metrics docs

* add template-id loader integration test
2023-10-26 19:07:04 +05:30
sandeep
7522895ca8 version update 2023-10-20 17:55:23 +05:30
sandeep
990cec0de1 version update 2023-10-19 19:10:29 +05:30
Tarun Koyalwar
dc44105baf
nuclei v3 : misc updates (#4247)
* use parsed options while signing

* update project layout to v3

* fix .gitignore

* remove example template

* misc updates

* bump tlsx version

* hide template sig warning with env

* js: retain value while using log

* fix nil pointer derefernce

* misc doc update

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2023-10-17 17:44:13 +05:30