Commit Graph

74 Commits (cd3dba5a56c458a67d47079553477863a927066f)

Author SHA1 Message Date
Ice3man fea3fabdf2
Misc changes to update logic (#1212)
* Misc changes to update logic

* Misc adjustments to update logic

* update: build check

* update: revert test update

Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2021-12-16 13:59:19 +05:30
mzack9999 edc6e5f9b3 fix cross-os chunks calculation 2021-12-06 18:56:52 +01:00
Mzack9999 40d01412cb Fixing templates bundle unzip on windows 2021-12-06 18:12:39 +01: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 fdd22ab668 refactor: Wrap errors using %w in fmt.Errorf
see:
 * https://github.com/xxpxxxxp/intellij-plugin-golangci-lint/blob/master/explanation/goerr113.md
 * https://go.dev/blog/go1.13-errors#wrapping-errors-with-w
2021-11-25 16:24:37 +02:00
forgedhallpass f9c214a66f refactor: update logic refactor to make it more testable
Introduced logic to test for zip slip (path traversal)
2021-11-25 16:24:28 +02:00
forgedhallpass 4bccb6cf8a fix: File and directory creation permission changes
Directories: 0755 (5 - group and other can read cd into the directory and read it's content)
Files: 0644 (4 - group and other can only read the created files)
Tests files: 0777
2021-11-25 14:37:57 +02:00
forgedhallpass f96168fc2c [feature] Add coloring to debug information #999
* Reverted the bug introduced by mistake (checking file exists using os.IsExist vs !os.IsNotExist)
2021-10-08 20:17:37 +03:00
forgedhallpass 0a9704ebd8 [feature] Add coloring to debug information #999
* code-review fixes
2021-10-07 20:54:12 +03:00
forgedhallpass 8fdc9a7164 Minor optimization: short-circuit the updateTemplates logic if template update was not requested 2021-09-29 19:44:37 +03:00
forgedhallpass 2baf695709 Merge remote-tracking branch 'origin/dev' into code_smells 2021-09-16 20:00:21 +03:00
sandeep cefbd376ef misc update 2021-09-16 17:27:06 +05:30
Ice3man543 9bbcb57be0 Added disclaimer for auto update to comments 2021-09-16 16:49:09 +05:30
Ice3man543 4d52fb45e4 Misc changes to update and ignore handling 2021-09-15 04:01:40 +05:30
Ice3man543 6667f285d3 fix: consider missing templates directory in update check 2021-09-15 03:48:40 +05:30
Ice3man543 0f232bce25 Don't show message without -ut 2021-09-13 15:47:29 +05:30
Ice3man543 04a4159fa5 Misc changes to update mechanism 2021-09-13 15:45:24 +05:30
Ice3man543 be46cb2b32 Show not found new templates message 2021-09-13 15:32:40 +05:30
Ice3man543 638c7633cb Misc updates 2021-09-13 15:03:04 +05:30
Ice3man543 8a1a739355 Misc 2021-09-13 14:57:30 +05:30
Ice3man543 5cda839152 Fixed an issue with nuclei version for templates 2021-09-13 14:38:22 +05:30
Ice3man543 cb39fd9d13 Use separate nuclei version check infra 2021-09-11 18:40:07 +05:30
forgedhallpass 0ce33927c7 Typo fixes. 2021-09-07 17:31:46 +03:00
forgedhallpass 8b8c16dd8e Improve readability of some methods 2021-09-01 17:36:07 +03:00
forgedhallpass f9eb8ba8ac Changed/removed some documentation/comments 2021-09-01 17:34:51 +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 fb2ec8f5d2 Fixed problems with nuclei templates update logic 2021-08-25 18:52:51 +05:30
Ice3man543 0088893310 Fix for template directory location override 2021-08-25 18:24:10 +05:30
forgedhallpass 07ca97fdaf Efforts to make working with files OS-agnostic.
Replacing "path." methods to "filepath." in order to make the code OS independent.
2021-08-23 16:42:29 +03:00
forgedhallpass 71c0d217e2 Replacing "path." methods to "filepath." in order to make the code OS independent 2021-08-23 14:54:28 +03:00
Ice3man543 5b03d25743 Do no check for template updates with flag 2021-07-29 19:24:39 +05:30
Ice3man543 20e519ec04 Merge branch 'dev' of https://github.com/projectdiscovery/nuclei into dev 2021-07-25 16:06:35 +05:30
Ice3man543 8650fdbe5a Show message on no new update 2021-07-25 16:06:12 +05:30
sandeep 62a957d812 misc updates 2021-07-25 04:31:22 +05:30
Ice3man543 274dc490a4 Misc update 2021-07-25 04:25:31 +05:30
sandeep 1b00efc8e3 misc update 2021-07-25 03:45:10 +05:30
Ice3man d5b19c6723
Fixed bug with updates on windows test repo name 2021-07-25 03:37:05 +05:30
Ice3man543 d53c903517 Misc changes to auto-update mechanism 2021-07-25 03:13:46 +05:30
Ice3man543 ecf122c465 Added nuclei-engine auto-update mechanism 2021-07-25 03:07:19 +05:30
sandeep 18abd4866e minor updates 2021-07-08 00:37:58 +05:30
Ice3man543 aaf38a531e Fixed lint errors + misc 2021-07-05 17:29:45 +05:30
Ice3man543 0726acc3d1 Workflows restructured to work with filters + tag support 2021-07-05 04:35:53 +05:30
Ice3man543 56ff3a0554 Fixed update printing logic 2021-07-03 16:37:21 +05:30
Ice3man543 57f29c8136 Auto template download/update 2021-07-03 16:13:32 +05:30
Ice3man543 12deece54b Fixed bug with .nuclei-config check 2021-07-01 20:57:22 +05:30
Ice3man543 e440ab5cba Fixed nuclei/templates version check 2021-07-01 16:39:00 +05:30
Ice3man543 dff76e9cd2 Loader rewriter working poc 2021-07-01 14:36:40 +05:30
Ice3man543 8da933af53 Misc 2021-04-02 18:44:28 +05:30
Ice3man543 718e4505a6 Fixed nuclei ignore issues + made random agent default 2021-03-31 21:27:40 +05:30
Ice3man543 6f491b8c6c Bug fix 2021-03-22 17:30:49 +05:30