Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for ONYPHE's On-demand scope API, letting users actively scan an IP, CIDR or domain (single or bulk) instead of only reading previously collected data.
ondemand_scope_ip,ondemand_scope_domain,ondemand_scope_ip_bulk,ondemand_scope_domain_bulkandondemand_scope_resultto bothOnypheandAsyncOnyphe, sharing optionalimport_results,vulnscan,urlscan,portsandmaxscantimetuning/dev/prefix, and the domain single endpoint as an undocumented, by-analogy path, each isolated behind a single constant so a future fix is a one-line changesend()gains aretry: boolflag so launches (POST) are never retried on 429/5xx/transport errors, while result retrieval (GET) keeps the usual retry behaviourScanInProgressError(subclassingAPIError, carrying.scan_id) to distinguish a still-running scan (ONYPHE codes 103/111) from an actual failure, regardless of the HTTP status carrying itpyonyphe ondemand ip|domain|ip-bulk|domain-bulk|resultCLI commands, with bulk commands reading targets from a file andondemand resultexiting with code 3 while the scan is still in progress