Tarun Koyalwar
bdf77005d6
resolve merge conflicts
2023-06-27 20:21:14 +05:30
GitHub Action
78cd4aa40f
Auto Generate Syntax Docs + JSONSchema [Mon Jun 26 17:28:19 UTC 2023] 🤖
2023-06-26 17:28:19 +00:00
GitHub Action
48b7d66765
Auto Generate Syntax Docs + JSONSchema [Mon Jun 19 14:54:55 UTC 2023] 🤖
2023-06-19 14:54:55 +00:00
Mzack9999
a7fb15d0bd
Adding support for code templates ( #2930 )
...
* Adding support for code templates
* adding support for python, powershell and echo (test)
* removing debug code
* introducing command + trivial trust store mechanism
* updating tests
* adding basic tests
* removing deprecated oracle
* mod tidy
* adding signature proto with debug prints
* removing debug code
* fixing test
* fixing param order
* improving test conditional build
* disable file+offlinehttp+code with cloud
* adding env vars
* removing debug code
* reorganizing test folders
* adding code template test prototype with dummy priv/pub keys
* bump go to 1.20
* fixing go version
* fixing lint errors
* adding fatal on pub-key test failure
* switching to ecdsa asn1
* removing unused signature
* fixing signature
* adding more tests
* extending core with engine args + powershell win test
* adding unsigned code test
* skip template signing in particular test case
* improving test coverage
* refactoring key names + adding already signed algo
* removing debug code
* fixing syntax
* fixing lint issues
* removing test template
* fixing dns tests path
* output fmt
* adding interact
* fixing lint issues
* adding -sign cli helper
* fixing nil pointer + parse inline keys
* making rsa default
* adding code prot. ref
* moving file to correct loc
* moving test
* Issue 3339 headless fuzz (#3790 )
* Basic headless fuzzing
* Remove debug statements
* Add integration tests
* Update template
* Fix recognize payload value in matcher
* Update tempalte
* use req.SetURL()
---------
Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
* Auto Generate Syntax Docs + JSONSchema [Fri Jun 9 00:23:32 UTC 2023] 🤖
* Add headless header and status matchers (#3794 )
* add headless header and status matchers
* rename headers as header
* add integration test for header+status
* fix typo
* add retry to py-interactsh integration test
---------
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: Shubham Rasal <shubham@projectdiscovery.io>
Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Dogan Can Bakir <65292895+dogancanbakir@users.noreply.github.com>
Co-authored-by: Tarun Koyalwar <45962551+tarunKoyalwar@users.noreply.github.com>
2023-06-09 20:54:24 +05:30
Tarun Koyalwar
e1d3f474a4
support for dynamic variables in template context (multi protocol execution) ( #3672 )
...
* multi proto request genesis
* adds template context dynamic vars
* feat: proto level resp variables
* remove proto prefix hacky logic
* implement template ctx args
* remove old var name logic
* improve AddTemplateVars func
* add multi proto comments+docs
* vardump with sorted keys
* fix race condition in ctx args
* default initialize ctx args
* use generic map
* index variables with multiple values
* fix nil cookies
* use synclock map
* fix build failure
* fix lint error
* resolve merge conflicts
* multi proto: add unit+ integration tests
* fix unit tests
* Issue 3339 headless fuzz (#3790 )
* Basic headless fuzzing
* Remove debug statements
* Add integration tests
* Update template
* Fix recognize payload value in matcher
* Update tempalte
* use req.SetURL()
---------
Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
* Auto Generate Syntax Docs + JSONSchema [Fri Jun 9 00:23:32 UTC 2023] 🤖
* Add headless header and status matchers (#3794 )
* add headless header and status matchers
* rename headers as header
* add integration test for header+status
* fix typo
---------
Co-authored-by: Shubham Rasal <shubham@projectdiscovery.io>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Dogan Can Bakir <65292895+dogancanbakir@users.noreply.github.com>
2023-06-09 19:52:56 +05:30
GitHub Action
6330dd910a
Auto Generate Syntax Docs + JSONSchema [Fri Jun 9 00:23:32 UTC 2023] 🤖
2023-06-09 00:23:32 +00:00
三米前有蕉皮
b4e4715d36
deprecatedProtocolNameTemplates concurrent map writes ( #3785 )
...
* deprecatedProtocolNameTemplates
* use syncLock
* fix lint error
* change version in deprecated warning msg
* comment asnmap expand unit test
---------
Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
Co-authored-by: Tarun Koyalwar <45962551+tarunKoyalwar@users.noreply.github.com>
2023-06-08 23:58:40 +05:30
Keith Chason
4d6080f3bc
"Executer" to "Executor" ( #3760 )
...
* Fix spelling of "executer" to "executor"
* minor change: use defer file.Close()
---------
Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
2023-06-01 02:28:10 +05:30
GitHub Action
eba34ad56c
Auto Generate Syntax Docs + JSONSchema [Thu May 25 16:34:47 UTC 2023] 🤖
2023-05-25 16:34:47 +00:00
Mzack9999
0d2d510689
Adding support for constants ( #3692 )
...
* adding support for constants
* fixing typo
* adding integration test
* fixing lint issues
* fixing template syntax
2023-05-25 22:02:35 +05:30
GitHub Action
9f07977411
Auto Generate Syntax Docs + JSONSchema [Mon May 15 13:47:53 UTC 2023] 🤖
2023-05-15 13:47:53 +00:00
GitHub Action
e995b0ce48
Auto Generate Syntax Docs + JSONSchema [Wed May 10 21:58:38 UTC 2023] 🤖
2023-05-10 21:58:38 +00:00
GitHub Action
5c62e7a296
Auto Generate Syntax Docs + JSONSchema [Thu May 4 11:28:35 UTC 2023] 🤖
2023-05-04 11:28:35 +00:00
Tarun Koyalwar
37aaa5ebaa
add support for resolving old template paths ( #3635 )
...
* add support for resolving old template paths
* skip resolving if new path is specified
* add debug statement
* show error if fallback failed
* remove debug statement
* remove fallback errors
* print warning for deprecated paths
* add warnings for deprecated paths/protocol names
* misc update
---------
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2023-05-04 01:43:41 +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
GitHub Action
c5086527df
Auto Generate Syntax Docs + JSONSchema [Sun Apr 2 07:54:23 UTC 2023] 🤖
2023-04-02 07:54:23 +00:00
mlec
ed31fc4449
fix(links): Replace Master to Main in links 🩹 ( #3485 )
...
Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
2023-03-31 16:27:15 +05:30
GitHub Action
aa4088339a
Auto Generate Syntax Docs + JSONSchema [Mon Mar 20 19:19:55 UTC 2023] 🤖
2023-03-20 19:19:55 +00:00
Shubham Rasal
a0ccc839bb
Issue 3055 protocol name ( #3425 )
...
* Add http and tcp variables support in templates
* Update protocol name from networks to tcp
* Check template to use only one variable(either old or new ones)
- you can use http or requests | network or tcp
- add template doc example
* remove debug statement
* Add comment on new variables,
- New variables are not used in lib code
---------
Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
2023-03-21 00:48:35 +05:30
GitHub Action
8db0276ba6
Auto Generate Syntax Docs + JSONSchema [Thu Mar 16 18:19:31 UTC 2023] 🤖
2023-03-16 18:19:31 +00:00
Mzack9999
c182434130
json templates support (load with flags, run & validate ) ( #3424 )
...
* extending template identification logic
* removing test code
* local debug
* json template loading support using flags
* blacklist meta json files
* minor changes
---------
Co-authored-by: Tarun Koyalwar <tarun@projectdiscovery.io>
2023-03-16 13:33:59 +05:30
Shubham Rasal
5e20c66215
Fix parseUrl test ( #3426 )
...
* Fix parseUrl test
* fix lint error
2023-03-15 19:43:10 +05:30
Mzack9999
d80cbef51d
Merge pull request #3333 from CodFrm/main
...
fix some json deserialization issues
2023-02-28 09:02:04 +01:00
王一之
46c0822ee4
add unit test
2023-02-27 17:55:37 +08:00
Mzack9999
62af038617
Add template sign/verify functionality ( #3029 )
...
* add template sign/verify functionality
* fixing syntax
2023-02-26 03:54:46 +05:30
Notealot
aeb5dbd293
feat: add RawStringSlice / fix: reference url case insensitive ( #3346 )
...
* feat: add RawStringSlice and refactor
* restored old logic + refactor
* restored files
---------
Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
2023-02-26 01:17:47 +05:30
Tarun Koyalwar
8cdc1338fc
adds missing json tags and unit test
2023-02-22 02:24:45 +05:30
王一之
85090b7531
fix some json deserialization issues
2023-02-17 14:21:25 +08:00
Ice3man
ecc1964ad9
Added optional doNotCache to protocols.ExecuterOptions
2023-02-13 18:00:25 +05:30
Mzack9999
454a883241
Using retryablehttp for templates loading ( #3291 )
...
* Using retryablehttp for templates loading
* Update compile_test.go
2023-02-09 19:15:44 +05:30
Tarun Koyalwar
a62e57f6c0
fix publish docs ( #3296 )
...
* add branch ref while checkout
* Auto Generate Syntax Docs + JSONSchema [Thu Feb 9 13:36:50 UTC 2023] 🤖
---------
Co-authored-by: GitHub Action <action@github.com>
2023-02-09 19:14:43 +05:30
xm1k3
1e5358b1fa
Improve passive templates error handling ( #3098 )
...
* fixes on passive templates
* Auto Generate Syntax Docs + JSONSchema [Thu Dec 29 08:47:22 UTC 2022] 🤖
* removed empty line
* warning management
When passive flag is provided we ignore all templates which are not compatible, without posting misleading errors
* removing redundant code
* skip offline errors with err var
* remove check on debug flag + used errors.Is() to check errors
important note for future refactoring: use errorsutil.Is() instead of errors.Is()
---------
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
2023-02-07 05:10:38 +05:30
GitHub Action
afe2114d58
Auto Generate Syntax Docs + JSONSchema [Mon Feb 6 23:25:05 UTC 2023] 🤖
2023-02-06 23:25:05 +00:00
Ice3man
78c4b9b7d2
Added clustering support for TLS templates ( #3209 )
...
* Added clustering support for DNS protocol templates
* Added clustering support for TLS templates
* Fixed randomly populated info block in ssl templates
* Moved to a switch-case + added tests for clustering
2023-01-17 18:20:05 +05:30
Ice3man
dbb4de028e
Added clustering support for DNS protocol templates ( #3204 )
2023-01-17 13:01:20 +05:30
Ice3man
67c094444e
Added cloud scan progress tracking using stats ( #3180 )
...
* Added cloud scan progress tracking using stats
* Changed log messsage
* Fixed linting error
* Fixed bug in progress calculation logic
* Changed requests to input with cloud flag
* Changed progress name + removed redundant fields
2023-01-13 13:41:05 +05:30
shubhamrasal
b03a90df50
fix template path bug, pass the filepath in executeroptions
2023-01-03 12:17:56 +05:30
Mzack9999
2c3453500c
Adding empty comparison for scan strategy ( #3100 )
...
* Adding empty edge case to scan strategy
* Auto Generate Syntax Docs + JSONSchema [Thu Dec 29 10:10:55 UTC 2022] 🤖
* adding test file
* removing test file
Co-authored-by: GitHub Action <action@github.com>
2022-12-29 20:12:52 +05:30
Shubham Rasal
91f6fdfb36
Merge pull request #3031 from projectdiscovery/parse_from_reader
...
Add ParseTemplateFromReader function
2022-12-27 20:47:49 +05:30
Tarun Koyalwar
aee0870617
scanallip handle edge cases ( #3080 )
...
* bug fix:remove port during dns resolution
* scanallip fix edge cases
* add scanallips testcases
* workflow fix
* removing pull cmd
* Auto Generate Syntax Docs + JSONSchema [Sat Dec 24 13:29:21 UTC 2022] 🤖
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
2022-12-24 19:03:23 +05:30
shubhamrasal
406d0c1873
Rename function from ParseFromReader to ParseTemplateFromReader
2022-12-22 11:04:16 +05:30
Sandeep Singh
96646c8f53
cloud templates targets sync ( #2959 )
...
* Add s3 bucket template provider
- Refactor the custom github template code
- add interface for template provider
* Validate if aws creds are passed if bucket flag
- refactor s3 provider struct to take client
- add function which returns the aws s3 client
- update error messages
* Add aws s3 bucket flags documentation in README.md
- Rename the github_test.go to customTemplate_test.go
* go mod update
* Move template provider code to pkg/external/customtemplates dir
* Added initial data_source sync to cloud
* Misc
* Add pagination to scan output and scan list (#2858 )
* Add pagination to scan output and scan list
* Use time based parameters instead of page numbers
* Fix linting errors
* Do not check limits at client, check at server
* Remove unused constant
* Misc update
* Removed unnecessary flags
* Misc
* Misc
* Misc endpoint additions
* Added more routes
* Typo fix
* Misc fixes
* Misc
* Misc fixes to cloud target logic + use int for IDs
* Misc
* Misc fixes
* Misc
* Misc fixes
* readme update
* Add JSON output support for list-scan option (#2876 )
* Add JSON output support for list-scan option
* Fix typo in cloud JSON output description
* Following changes
- Update status(finished, running) to be lower-case by default
- Convert status to upper-case in DisplayScanList()
* Update status to be lower-case by default
* Remove additional json flag, instead use existing
* Merge conflict
* Accomodate comment changes and restructure code
Co-authored-by: Jaideep K <jaideep@one2n.in>
* Use integer IDs for scan tasks
* Added get-templates-targets endpoint + JSON + validation
* Added target count list
* misc option / description updates
* Added changes as per code review
* duplicate options + typo updates
* Added tablewriter for tabular data writing by default
* Fixed list scan endpoint
* Review changes
* workflow fix
* Added cloud tags etc based filtering (#3070 )
* Added omitempty for filtering request
* go mod tidy
* misc format update
Co-authored-by: shubhamrasal <shubhamdharmarasal@gmail.com>
Co-authored-by: Ice3man <nizamulrana@gmail.com>
Co-authored-by: Jaideep Khandelwal <jdk2588@gmail.com>
Co-authored-by: Siddharth Shashikar <60960197+shashikarsiddharth@users.noreply.github.com>
Co-authored-by: Jaideep K <jaideep@one2n.in>
2022-12-21 22:48:43 +05:30
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