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

Adding unixtime functionality with seconds offset #1132

Merged
merged 1 commit into from
Oct 17, 2021
Merged

Adding unixtime functionality with seconds offset #1132

merged 1 commit into from
Oct 17, 2021

Conversation

voidz0r
Copy link
Contributor

@voidz0r voidz0r commented Oct 16, 2021

Hi,
This is a simple functionality to generate epoch timestamps with dynamic offset.
I will upload, when the responsible disclosure procedure will end, the nuclei template of a vulnerability regarding an open source project that uses this feature.
Further features could be to extend to date and nano epoch formats.
Hope this helps, thanks in advance.

@ehsandeep ehsandeep added the Status: Review Needed The issue has a PR attached to it which needs to be reviewed label Oct 17, 2021
Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

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

Thank you @voidz0r for adding this helper function, it is definitely useful, I've added a basic example of this helper function, let me know if anything is missing.

id: test

info:
  name: test
  author: test
  severity: info

requests:
  - raw:
      - |
        POST /test HTTP/1.1
        Host: {{Hostname}}

        {{unixtime()}}
echo https://example.com | ./nuclei -t test.yaml -debug-req

POST /test HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36
Connection: close
Content-Length: 10
Accept-Encoding: gzip

1634429509

@voidz0r
Copy link
Contributor Author

voidz0r commented Oct 17, 2021

Hi @ehsandeep , everything correct. Thanks for the feedback!

@ehsandeep ehsandeep merged commit 904a833 into projectdiscovery:dev Oct 17, 2021
@ehsandeep ehsandeep added hacktoberfest-accepted and removed Status: Review Needed The issue has a PR attached to it which needs to be reviewed labels Oct 17, 2021
@ehsandeep ehsandeep removed the request for review from Mzack9999 October 17, 2021 15:12
@voidz0r voidz0r deleted the dev branch October 21, 2021 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants