251 Commits

Author SHA1 Message Date
shubhamrasal
b51aac290e Add tests folder 2022-12-19 19:15:04 +05:30
shubhamrasal
cff0d88742 Add tests for parse function
- update the ioutils to io.ReadAll
- remove extra line
2022-12-19 18:51:20 +05:30
shubhamrasal
de3dda0030 Update the Parse function to use ParseFromReader 2022-12-15 17:41:07 +05:30
shubhamrasal
198d84ec25 Add ParseFromReader function 2022-12-13 12:57:47 +05:30
Ice3man
3904d541be
Added http probing to clustering + add disable-clustering flag (#3019)
* Added http probing to clustering + add disable-clustering flag

* misc update

* Commented out failing test

* Fixed lint error

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2022-12-11 18:06:21 +05:30
Víctor
b77787e9bd
OfflineHTTPProtocol mapping (#2993)
* OfflineHTTPProtocol mapping, fixes #2988

* Reject not mapped protocols

Co-authored-by: Víctor Zamanillo <victor.zamanillo@cifraeducacion.com>
2022-12-11 17:34:25 +05:30
GitHub Action
bf1fb7bcb7 Auto Generate Syntax Docs + JSONSchema [Sun Dec 4 17:58:29 UTC 2022] 🤖 2022-12-04 17:58:29 +00:00
Sandeep Singh
6ae9eee8d3
README + misc updates (#2961)
* readme update

* version + banner update

* misc option update

* go fmt'ed code

* misc update
2022-12-04 20:51:33 +05:30
Mzack9999
1fbbca66f9
Adding support to scan all v4/v6 IPs (#2709)
* Adding support to scan all v4/v6 IPs

* adding tests

* metainput prototype

* using new signature

* fixing nil pointer

* adding request context with metadata

* removing log instruction

* fixing merge conflicts

* adding clone helpers

* attempting to fix ipv6 square parenthesis wrap

* fixing dialed ip info

* fixing syntax

* fixing output ip selection

* adding integration tests

* disabling test due to gh ipv6 issue

* using ipv4 only due to GH limited networking

* extending metainput marshaling

* fixing hmap key

* adding test for httpx integration

* fixing lint error

* reworking marshaling/id-calculation

* adding ip version validation

* improving handling non url targets

* fixing condition check
2022-11-09 18:48:56 +05:30
vrenzolaverace
2aaf2a2158
Use utils helpers libraries (#2809) (#2810)
* Use utils helpers libraries (#2809)

* Use utils helpers libraries (#2809)
2022-11-07 01:54:23 +05:30
GitHub Action
411e39c40b Auto Generate Syntax Docs + JSONSchema [Tue Nov 1 15:01:38 UTC 2022] 🤖 2022-11-01 15:01:38 +00:00
Ice3man
363ffb75db
Added probing for URL + input based on protocol (#2614)
* Added workflow names based condition

* Added conditional filtering to workflow executor

* Replaced names with single name stringslice

* Added probing for URL + input based on protocol

* Remove debug comments

* Fixed typo

* Fixed failing tests

* Fixed workflow matcher condition + tests

* Fixed workflow item name

* Switch to if-else

* Fixed review comment strict

* Increase bulk size

* Added default port for SSL protocol + misc changes

* Fixed failing tests

* Fixed misc changes to executer

* Fixed failing self-contained and offlinehttp tests

* Fixed atomic increment operation

* misc update

* Fixed failing builds

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2022-10-20 17:23:00 +05:30
Mzack9999
781e4e6105
Shared Execution Context Prototype (#2576)
* renaming var

* Introducing shared execution context prototype

* fixing field name

* adding shared values propagation

* adding shared context lock

* add slice values normalization

* adding integration tests

* adding metadata support for dns

* adding multi-protocol context sharing test

* removing debug test files

* moving contextargs around

* adding comments

* refactoring code

- getter/setter for complex types
- using pointers to avoid heap allocations
2022-10-03 15:42:20 +05:30
GitHub Action
935dd68355 Auto Generate Syntax Docs + JSONSchema [Wed Sep 28 22:44:26 UTC 2022] 🤖 2022-09-28 22:44:26 +00:00
GitHub Action
3ad1fec1d2 Auto Generate Syntax Docs + JSONSchema [Tue Sep 20 21:37:56 UTC 2022] 🤖 2022-09-20 21:37:56 +00:00
Ice3man
03c7e89d9e
Added workflow names based condition (#2594)
* Added workflow names based condition

* Added conditional filtering to workflow executor

* Replaced names with single name stringslice

* Fixed workflow matcher condition + tests

* Fixed workflow item name
2022-09-19 16:49:30 +05:30
Ice3man
7e209dad01
Added multi-protocol requests support for templates (#2611) 2022-09-16 23:10:39 +05:30
Ice3man
8892250583 Updated goflags to latest + misc 2022-08-27 19:35:17 +05:30
Ice3man
67d5769cd9
Added initial catalog interface implementation (#2318)
* Added initial catalog interface implementation

* Added OpenFile to Catalog + disk catalog implementation

* Fixed merge issues

Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2022-08-10 11:05:58 -07:00
Mike Rheinheimer
9efba05e0c
expose hosterrorscache.Cache as an interface (#2291)
* expose hosterrorscache as an interface, change signature to capture the error reason

* use the hosterrorscache.CacheInterface as struct field so users of Nuclei embedded can provide their own cache implementation

Co-authored-by: Mike Rheinheimer <mrheinheimer@atlassian.com>
2022-07-19 02:05:53 +05:30
Mzack9999
3c945f6ae9
Adding stricter check on offline templates list (#2213) 2022-07-11 22:38:07 +05:30
Ice3man
7875b06fc8
Added exclude-matchers support for template & matchers (#2218)
* Added exclude-matchers support for template & matchers

* Fixed panics due to typo

* Added support for only template ID + misc cleanup
2022-06-24 23:09:27 +05:30
Sajad
b715a601e8
Adding nil operator check on clustering (#2173)
* add nil operator check

* move nil pointer check
2022-06-16 14:41:05 +05:30
tanimdiucse123
e575f53be7
Empty string test can be improved (#2115)
It is not recommended to use len for empty string test.

A string can be tested for its emptiness either by treating it as a slice and calculating the length of the slice, or by treating it as a string and directly comparing the value. While both produce identical code when compiled, it makes more sense to treat a string as itself, than a slice, for the sake of comparison of values.

Examples

Bad practice

len(s) == 0

Recommended

s == ""

The recommended practice is considered more idiomatic in Go.

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
2022-06-11 14:11:43 +05:30
GitHub Action
737132bc88 Auto Generate Syntax Docs + JSONSchema [Mon Apr 25 08:40:12 UTC 2022] 🤖 2022-04-25 08:40:12 +00:00
Sandeep Singh
d3b4a86d2a
Merge pull request #1785 from projectdiscovery/variables-introduction
Added variables for nuclei + refactor variable handling
2022-04-21 17:59:01 +05:30
GitHub Action
a734b9d6c1 Auto Generate Syntax Docs + JSONSchema [Thu Apr 21 11:19:39 UTC 2022] 🤖 2022-04-21 11:19:39 +00:00
GitHub Action
ef18886d39 Auto Generate Syntax Docs + JSONSchema [Fri Apr 15 13:31:14 UTC 2022] 🤖 2022-04-15 13:31:14 +00:00
Ice3man
aea79638c6 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into variables-introduction 2022-04-06 19:04:27 +05:30
Ice3man
a0ece302d1 Moved variables to template level + misc 2022-03-31 00:54:35 +05:30
Sandeep Singh
6ede70116d
Merge pull request #1762 from projectdiscovery/clustering-improvements
Added comments to clustering + misc improvements
2022-03-30 12:54:33 +05:30
GitHub Action
924b615a6c Auto Generate Syntax Docs + JSONSchema [Tue Mar 29 12:22:43 UTC 2022] 🤖 2022-03-29 12:22:43 +00:00
GitHub Action
f4e6e892e0 Auto Generate Syntax Docs + JSONSchema [Mon Mar 21 10:22:10 UTC 2022] 🤖 2022-03-21 10:22:10 +00:00
Ice3man
32bc6c1718 Misc changes, moving things around as per review 2022-03-14 12:32:05 +05:30
Ice3man
9da8c0593b Added comments to clustering + misc improvements 2022-03-11 22:08:30 +05:30
GitHub Action
165c9e7013 Auto Generate Syntax Docs + JSONSchema [Tue Mar 1 17:21:24 UTC 2022] 🤖 2022-03-01 17:21:24 +00:00
GitHub Action
8026042456 Auto Generate Syntax Docs + JSONSchema [Mon Feb 28 18:52:47 UTC 2022] 🤖 2022-02-28 18:52:47 +00:00
GitHub Action
d3f06ec68f Auto Generate Syntax Docs + JSONSchema [Mon Feb 28 07:41:00 UTC 2022] 🤖 2022-02-28 07:41:00 +00:00
GitHub Action
cf2f7b612b Auto Generate Syntax Docs + JSONSchema [Sat Feb 26 12:12:56 UTC 2022] 🤖 2022-02-26 12:12:56 +00:00
GitHub Action
d7d896b75a Auto Generate Syntax Docs + JSONSchema [Thu Feb 10 10:30:58 UTC 2022] 🤖 2022-02-10 10:30:58 +00:00
Mzack9999
0732406a68
Uniform behavior for input CLI flags (#1569)
* Adding file normalized string slice support

* updating goflags
2022-02-09 10:16:17 +05:30
forgedhallpass
72af50155d Typo fixes 2022-02-07 16:41:55 +02:00
GitHub Action
845bae5c32 Auto Generate Syntax Docs + JSONSchema [Sat Feb 5 15:00:13 UTC 2022] 🤖 2022-02-05 15:00:13 +00:00
GitHub Action
a06e1c59ab Auto Generate Syntax Docs + JSONSchema [Sat Feb 5 06:56:19 UTC 2022] 🤖 2022-02-05 06:56:19 +00:00
GitHub Action
ddd652c3ed Auto Generate Syntax Docs + JSONSchema [Thu Feb 3 05:55:07 UTC 2022] 🤖 2022-02-03 05:55:07 +00:00
Sandeep Singh
8566bc0374
Merge pull request #1472 from projectdiscovery/remote-templates
Add support to run remote template
2022-01-27 18:02:52 +05:30
Sajad Parra
c6de2ca406 rename few vars, extract duplicate functions to utils 2022-01-24 16:48:12 +05:30
GitHub Action
72e842885d Auto Generate Syntax Docs + JSONSchema [Sun Jan 16 11:36:33 UTC 2022] 🤖 2022-01-16 11:36:33 +00:00
mzack
11df6da209 Excluding non yaml file from new additions loading 2022-01-14 11:20:19 +01:00
Sajad Parra
d1303797c0 * Add support to run remote template
* Add remote-template-domain config only flag to specify allowed domain list to load remote templates from
2022-01-12 18:33:17 +05:30