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

Exposing embedded api for settings control in CLI modality #5030

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

Mzack9999
Copy link
Member

@Mzack9999 Mzack9999 commented Apr 11, 2024

Proposed changes

Exposing embedded http server allowing concurrency/speed control. Follow up of #4986

# start with nuclei .... -hae localhost:9000
# get speed
$ curl http://localhost:9000/api/concurrency | jq
{
  "bulk_size": 1,
  "threads": 1,
  "rate_limit": 1,
  "rate_limit_duration": "1s",
  "payload_concurrency": 25,
  "probe_concurrency": 50,
  "javascript_concurrency": 100
}

# update speed
$ curl -X PUT http://localhost:9000/api/concurrency -H "Content-Type: application/json" -d '{"threads": 25, "payload_concurrency": 25, "rate_limit":500, "bulk_size":25, "rate_limit_duration":"1s"}'

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)

@Mzack9999 Mzack9999 marked this pull request as ready for review April 11, 2024 14:44
@Mzack9999 Mzack9999 self-assigned this Apr 11, 2024
@Mzack9999 Mzack9999 added the Type: Enhancement Most issues will probably ask for additions or changes. label Apr 11, 2024
@Mzack9999 Mzack9999 linked an issue Apr 11, 2024 that may be closed by this pull request
@ehsandeep ehsandeep merged commit cbe7322 into dev Apr 24, 2024
12 checks passed
@ehsandeep ehsandeep deleted the feat-http-speed-control branch April 24, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add embedded http server for settings control
3 participants