Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add substr and aes_cbc DSL functions #2361

Merged
merged 8 commits into from
Aug 25, 2022
Merged

Add substr and aes_cbc DSL functions #2361

merged 8 commits into from
Aug 25, 2022

Conversation

hktalent
Copy link
Contributor

@hktalent hktalent commented Jul 28, 2022

  1. Added substr helper for Add substr DSL function #2304 By @hktalent
substr('xxtestxxx',2) ==  "testxxx"
substr('xxtestxxx',2,-2)  == "testx"
substr('xxtestxxx',2,6)  == "test"
  1. add DSL aes_cbc for helper function for aes_cbc encryption #2243 By @hktalent
aes_cbc("key111key111key111key111", "dataxxxxxxdataxxxxxxdataxxxxxxdataxxxxxxdataxxxxxx")

Proposed changes

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

substr('xxtestxxx',2)。   testxxx
substr('xxtestxxx',2,-2)  testx
substr('xxtestxxx',2,6)   test

2、add DSL aes_cbc for #2243 By @hktalent
aes_cbc("key111key111key111key111", "dataxxxxxxdataxxxxxxdataxxxxxxdataxxxxxxdataxxxxxx")

3、fixed An error occurs when running nuclei with multiple instances #2301 By @hktalent
@forgedhallpass forgedhallpass changed the title 1、add DSL substr for #2304 By @hktalent Add substr and aes_cbc DSL functions Jul 29, 2022
@forgedhallpass
Copy link
Contributor

Hello @hktalent,

Thank you for your work. Our team will review the changes.

Note: we can accept it this way now, but generally, it is recommended to create separate PRs for different tickets.
In order to achieve that, you might need to create separate branches on your fork.
That, together with test cases helps closing PRs faster.

Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary commented out TestGetPrintableDslFunctionSignatures (#2473)

@ehsandeep ehsandeep linked an issue Aug 22, 2022 that may be closed by this pull request
@ehsandeep ehsandeep merged commit 606c361 into projectdiscovery:dev Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add substr DSL function helper function for aes_cbc encryption
6 participants