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

[Feature] Add {{Random String}} option to templates #923

Closed
hazanasec opened this issue Feb 23, 2021 · 5 comments
Closed

[Feature] Add {{Random String}} option to templates #923

hazanasec opened this issue Feb 23, 2021 · 5 comments
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed.

Comments

@hazanasec
Copy link
Contributor

Hi team,

I want to contribute a template which requires sending a request to a non existent S3 bucket. Of course this is possible by having a random bucket name in the template, however if it's made public the request will fail the moment someone registers the bucket name (which I'm sure they will).

Would be possible to have a random string option (maybe chose a length also)?

Thank you,
Hazana

@dwisiswant0
Copy link
Member

Hi @hazanasec, I think it already exists (related to nuclei#234) but there is no documentation for it (yet).

@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Feb 26, 2021
@ehsandeep
Copy link
Member

@hazanasec as dwisiswant0 pointed out, this is already supported, we will update the guide document soon with syntax.

@ehsandeep
Copy link
Member

New helper functions details updated here https://nuclei.projectdiscovery.io/templating-guide/helper-functions/

@hazanasec
Copy link
Contributor Author

@ehsandeep the helper functions aren't available for HTTP Base Requests?

@ehsandeep
Copy link
Member

@hazanasec it's limited for RAW requests for now, we have an open GH issue to support this in the coming months projectdiscovery/nuclei#554 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed.
Projects
None yet
Development

No branches or pull requests

3 participants