Shubham Rasal
449afc0c5c
Issue 3564 var override ( #3599 )
...
* Check if the variables are override by other means
- you can override the template variable value using command line flags
* Update lazy eval logic
- previously, we were checking any function/expression in variable
- now, update the logic, lazy eval only if variable contains any
protocol variable(global)
* add integration tests
* Add test to check the dsl function working in variable
* gather all generate variables logic in utils
* go mod update
* Refactor the generate variables function
* go mod update+ fix typo
---------
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
2023-05-02 23:49:56 +05:30
Tarun Koyalwar
bf08913cd0
update logic + config management refactor ( #3567 )
...
* adds template manager
* refactor: checkpoint
* centrailized config & template download logic
* refactor removed unused code
* use global template directory
* update related bug fixes
* bug fix create cfg dir if missing
* fix lint error
* bug fix skip writing template dir in callback
* misc update
* remove unused code
* use strings.equalfold for comparison
---------
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2023-04-19 21:58:48 +05:30
Shubham Rasal
45cc676f96
Evaluate payload variables ( #3503 )
...
* Evaluate payload variables
* Add variables evaluation
* Extend variables test
- to check evaluation of global variables in variables
- to check evaluation of golbal variables in payload
* Add default and cli variables to websocket, whois and dns proto
- use url.Parse with urlutil.Parse
2023-04-12 01:50:58 +05:30
Tarun Koyalwar
d9e953acfa
fix file input in custom vars for self contained http template ( #3385 )
...
* fix file input in variables(-V)
* fix lint error
* fix nuclei-ignore file failures
2023-03-04 04:57:27 +05:30
王一之
27fefe59d3
fix json deserialization issues
2023-02-27 14:29:49 +08:00
王一之
85090b7531
fix some json deserialization issues
2023-02-17 14:21:25 +08:00
Mzack9999
7556416e5b
adding interactsh support to sni ( #3276 )
2023-02-07 14:02:10 +05:30
Mzack9999
093d691c16
Issue 3033 deny list ( #3037 )
...
* fixing file deny list + refactoring
* err variable renaming
* removing redundant function
* removing unused code
* adding check on empty operator
* updating tests
2022-12-21 02:29:28 +05:30
Ice3man
e7fb40a413
Added sandboxing for payload files and requests
2022-11-16 13:49:24 +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
Ice3man
b9472cf7e1
Added fuzzing support for query params + var dump feature ( #2679 )
...
* Added fuzzing support for query params + var dump feature
* Added query-fuzz integration test
* Fixed payloads + added keys-regex fuzz parameter
* Fixed interactsh not working + misc
* Fixed evaluation + added global variables/dsl support to payloads
* Misc fixes related to variables evaluations
* Added http variables support to fuzz
* misc
* Misc
* Added testing playground + misc renaming
* Added support for path and raw request to fuzzing
* Fixed fuzz integration test
* Fixed variable unresolved issue
* Add multiple parameter support with same name
* Added parameter value as 'value' dsl variable for parts
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
2022-11-01 20:28:50 +05:30
Ice3man
d956f08cb9
Added attack-type option to override template attack-type ( #2724 )
...
* Added attack-type option to override template attack-type
* Added docs + integration tests
2022-10-19 03:51:45 +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
Ice3man
0be596efb4
Added variable debug support with debug mode ( #2442 )
...
* Added variable debug support with debug mode
* Added changes as per review comments
* Fixed debug request condition
2022-08-25 15:37:03 +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
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
Mzack9999
72c5c399ec
adding support for dsl extractors
2022-04-20 11:32:13 +02:00
Ice3man
aea79638c6
Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into variables-introduction
2022-04-06 19:04:27 +05:30
Ice3man
d0d65f8d6b
Added integration tests for variables + misc changes
2022-04-02 02:14:00 +05:30
Sami
301307bb77
Issue 1705 save responses on disk ( #1727 )
...
* save response on disk
* lint error check
* store raw request/response
* lint error fix
* file path
* mock test fix
* readme update
* .txt extension
Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2022-04-02 00:59:02 +05:30
Ice3man
a0ece302d1
Moved variables to template level + misc
2022-03-31 00:54:35 +05:30
Ice3man
d09e71accf
Added variables to http and network
2022-03-30 20:35:46 +05:30
Ice3man
4a9000d22e
Fixed network response error + timeout handling
2022-03-01 16:24:02 +05:30
Ice3man
2ae66ff530
Fixed unncessary hostname addition in payloads and output in network
2022-02-25 22:53:51 +05:30
forgedhallpass
72af50155d
Typo fixes
2022-02-07 16:41:55 +02:00
Ice3man
6e71313d2b
Misc changes to description
2022-01-17 15:35:27 +05:30
Ice3man
24326389a4
Added interactsh additional variables support ( #1468 )
...
* Added interactsh additional variables support
* Added support for interact server rotation
* Misc fixes to interact related modules
* Fixed a crash with interactsh
* Perform deduplication of output extract data before printing
2022-01-13 13:22:43 +05:30
Sajad Parra
0edb4274b1
add matchedTemplates to support template wise stop at first match
2021-12-22 21:42:21 +05:30
Sajad Parra
c0f9c1da70
interactsh stopAtFirstMatch intergration test
2021-12-21 15:24:16 +05:30
Sajad Parra
911045ae9a
add stop at first match for interactsh matchers
2021-12-21 14:20:03 +05:30
Sajad Parra
7a96a7c931
Merge branch 'dev' into dsl-variable-support
2021-12-02 16:50:50 +05:30
Sajad Parra
10e5595980
Merge branch 'dev' into dsl-variable-support
2021-11-30 18:41:18 +05:30
Ice3man543
eb7c704d36
Merging from dev
2021-11-30 16:23:39 +05:30
Sandeep Singh
be66166b9d
Merge pull request #1282 from projectdiscovery/network-vars
...
Added additional variables for network + simplified logic
2021-11-30 12:10:26 +05:30
sandeep
684f332599
fix: {{Hostname}} to {{Host}} in test
2021-11-30 12:04:47 +05:30
Sajad Parra
d97aee01c3
Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dsl-variable-support
2021-11-29 13:36:09 +05:30
Sajad Parra
5deb454a81
merge Hostname variable to payloads in network request
2021-11-29 13:26:03 +05:30
sandeep
5a1c7a62b2
missing goimports
2021-11-28 04:55:18 +05:30
Sandeep Singh
670f0d6775
Merge branch 'dev' into network-vars
2021-11-28 04:42:08 +05:30
Ice3man543
c720354be2
Added part definition information to docs + misc
2021-11-26 16:23:54 +05:30
forgedhallpass
7e22d70ded
refactor/documentation: typos and grammatical errors
2021-11-25 18:54:16 +02:00
forgedhallpass
ec6889931d
refactor: linter driven fixes
...
* x = x + "" => x += ""
* pre-allocating slice with known size
* added t.Helper() methods in test helpers
* complex if-else conditions replaced by switches
* errors should be checked using error.Is() instead of ==
* function parameter should start with lower case letter
* removed unnecessary type definition
* variable/label naming convention: camelCase instead of snake_case
2021-11-25 17:57:22 +02:00
forgedhallpass
3fd1f57b96
refactor: godoc and comment uniformization
...
Adding space after // and before the godoc/comment
2021-11-25 17:03:56 +02:00
Ice3man543
caaa5c6594
Automatically generate docs for enum values
2021-11-25 19:34:01 +05:30
Sajad Parra
7e9272776d
add variable support to dsl, remove dynamicValues from request struct
2021-11-25 16:19:42 +05:30
Ice3man543
6c819d7917
Added additional variables for network + simplified logic
2021-11-23 10:44:31 +05:30
Ice3man
1581c96e4e
Added matched-status flag + template-path and url to output ( #1272 )
...
* Added matched-status flag + template-path and url to output
2021-11-22 17:53:25 +05:30
LuitelSamikshya
4b8ec29d8d
struct to enums changes for Matchers ( #1246 )
...
* struct to enums changes for Matchers
2021-11-19 16:24:09 +05:30
LuitelSamikshya
2856e7e247
Extractor + Headless Actions structures to enums ( #1217 )
...
* enum support for extractor
2021-11-19 01:41:10 +05:30