45 Commits

Author SHA1 Message Date
Ice3man
ea4e8cc265
Added version comparison helpers (#1783)
* Added version comparison helpers

* Added multiple condition example

* Added variadic version of compare_versions

* Fixed failing DSL integration test
2022-04-07 00:48:34 +05:30
Ice3man
159d84465d Fixed failing DSL tests 2022-03-29 17:51:40 +05:30
Xavier Stevens
4a65097194 Squashed commit of the following:
commit b590de2de14923e4cb35dd19845e12833a4ccbfa
Author: Xavier Stevens <xstevens@users.noreply.github.com>
Date:   Wed Mar 23 08:29:37 2022 -0700

    Updated rand_ip to use variadic args

commit ea883be8c0aa56174a1301252129289334659f3f
Author: Xavier Stevens <xstevens@users.noreply.github.com>
Date:   Tue Mar 22 16:59:19 2022 -0700

    Updated rand_ip function to handle multiple CIDRs
2022-03-23 08:37:05 -07:00
mzack
6213454cb3 small code refactor 2022-03-22 15:16:22 +01:00
skhalsa-sigsci
63eccc85ba random ip helper function 2022-03-21 17:39:10 -07:00
Ice3man
be0e4b227c Pad date and time helper strings with double digits 2022-03-21 16:32:21 +05:30
Ice3man
bebdb29706 Added time + zlib dsl functions + misc 2022-03-16 14:12:26 +05:30
mzack
f7c2226c39 Adding number/string conversion helpers 2022-03-10 10:57:59 +01:00
Ice3man
ca7e30b3fb Added tests for DSL function + misc 2022-03-10 11:56:11 +05:30
Ice3man
deca1095ed Added gzip_decode helper function 2022-02-25 22:37:50 +05:30
forgedhallpass
7f6c72853f feat: introduce 'concat' DSL function #1502 2022-01-17 13:32:15 +02:00
mzack
256c1f411e fixing mmh3 signed int32 calculation 2022-01-04 18:10:20 +01:00
mzack
357916a6e2 Replacing murmur3 with internal safe-pointer version 2022-01-02 09:09:10 +01:00
forgedhallpass
85e0b96d51
bug: fixed couple of bugs in the DSL functions (#1372)
* feat: Improve DSL function UX #1295

Sort the output signatures

* feat: Improve DSL function UX #1295

Sort the output signatures.
Lint: simplified the sorting.

* bug: fixed couple of bugs in the DSL functions

Input number parameters are stored as float64 types, hence the type conversion should happen accordingly. Affected functions:
* rand_int
* wait_for
* unix_time
* rand_text_numeric

Added tests for all functions.
Related: #1261

* bug: fixed couple of bugs in the DSL functions

Handle cases when the optional input character set is an empty string. Affected methods:
* rand_char
* rand_base

* bug: fixed couple of bugs in the DSL functions

Change rand_char to return a one character string, instead of the character code

* refactor: Minor integration test changes to show the actual and expected result numbers

* test: Added integration test for all existing DSL functions

* test: Added integration test for all existing DSL functions

Fixing linter issues.

* feat: Add "repeat" DSL function

* test: Add "repeat" DSL function
2021-12-15 19:33:57 +05:30
forgedhallpass
10cf1053f8
feat: Improve DSL function UX #1295 (#1351)
* feat: Improve DSL function UX #1295

Sort the output signatures

* feat: Improve DSL function UX #1295

Sort the output signatures.
Lint: simplified the sorting.
2021-12-09 14:02:01 +05:30
forgedhallpass
79aed22d46 feat: Improve DSL function UX #1295
Added support for letting people know if:
* the DSL expression does not return a boolean value
* an invalid custom function signature was provided and then display all available function signatures
* an invalid function was provided and then display the correct signature

Unified the DSL function names to use snake case. The old signatures are also kept for backward compatibility.
2021-12-07 17:34:36 +02:00
forgedhallpass
c61ec5f673 feat: Improve DSL function UX #1295 2021-11-26 17:14:25 +02:00
Ice3man543
7d0529aaf7 Fixed gzip encoding bug + added test case 2021-11-08 17:39:08 +05:30
Ice3man543
88a296c9a7 Adding gzip encoding helpers 2021-11-08 16:24:47 +05:30
Ice3man543
8ad3ebcd05 Made code changes as per review comments 2021-11-05 03:01:41 +05:30
Ice3man
f25c7c3a1d
Merge branch 'dev' into more-protocols 2021-10-20 21:29:28 +05:30
voidz0r
fc905ccccc Adding unixtime functionality with seconds offset 2021-10-17 01:02:37 +02:00
Ice3man543
0b11b80d8a Fixed some bugs with ssl protocols + misc enhancements 2021-09-24 19:35:00 +05:30
Ice3man543
5c31b75ac7 Added ssl protocol to nuclei 2021-09-22 22:41:07 +05:30
forgedhallpass
0cabce518f Merge branch 'dev' into code_smells 2021-09-02 12:30:43 +03:00
Sandeep Singh
5525b0f404
Merge pull request #928 from yabeow/master
Add helper function `print_debug` for debug purposes
2021-08-31 22:50:48 +05:30
forgedhallpass
f36ed8df64 Removed unused parameter 2021-08-31 13:21:15 +03:00
forgedhallpass
40d88d2304 In-lined error checks, reduced scope of error variables, introduced new error variables instead of re-using them 2021-08-31 12:55:52 +03:00
Ice3man543
004ed31fdc Fixed urlencode/decode with queryescape 2021-08-27 02:38:15 +05:30
Bùi Đại Gia
350d347388
fix mistake 2021-08-23 19:25:11 +07:00
Bùi Đại Gia
986a4981fb
rename print_stdout to print_debug 2021-08-23 19:18:07 +07:00
mzack
ea9b700bf0 more fixes 2021-08-17 14:14:47 +02:00
mzack
2e816bf514 Fixing some DSL helpers logic 2021-08-17 14:06:49 +02:00
mzack
dd6874edde Fixing wrong type conversion in DSL helper 2021-08-16 17:16:42 +02:00
Bùi Đại Gia
5aad51045c
Add helper function print_stdout for debug purposes 2021-08-12 13:54:50 +07:00
Ice3man543
2f05a8c42d gofmt file 2021-07-24 19:27:09 +05:30
Ice3man
b78780cd96
Merge branch 'dev' into deserialization-helpers 2021-07-24 19:20:36 +05:30
Zachary Schulze
7ebab7875b update
- Added AddHelperFunction comment/usage
- AddHelperFunction returns err on duplicate key definitions
2021-07-23 11:39:30 -07:00
TheSecEng
40f2c562dc
implemente custom helper logic 2021-07-20 23:27:12 -07:00
Ice3man543
0fd65e2bf2 Integrated deserialization helpers to nuclei + Misc bug fixes 2021-07-18 05:35:06 +05:30
Ice3man543
f903187df3 Started work on java deserialization helpers 2021-07-18 04:34:39 +05:30
Ice3man543
f5b9bed40a Removed leftover collaborator integration 2021-06-14 19:48:27 +05:30
Ice3man543
5153647e0f Misc work on extractors + compat 2020-12-24 12:13:18 +05:30
Ice3man543
2317e1ba1b Data modelling, work on executor started 2020-12-23 16:16:16 +05:30
Ice3man543
5cbfa8eaba Misc modifications, cleaning up things 2020-12-22 03:54:55 +05:30