-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Adding a TimeTravel improver for nginx
---------------------NOT READY FOR REVIEW YET-------------------- This is not the best way. Maybe we want a generic time travel improver which could run on multiple data source. This is highly experimental and is meant to serve as proof of work for current model. Currently, this is incomplete and doesn't work. The classes and functions used in time travel have not been ported properly. This commit might need a full rewrite Signed-off-by: Hritik Vijay <[email protected]>
- Loading branch information
Showing
3 changed files
with
79 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
from vulnerabilities.importers.nginx import NginxTimeTravel | ||
from . import default | ||
|
||
IMPROVER_REGISTRY = [default.DefaultImprover] | ||
IMPROVER_REGISTRY = [ | ||
default.DefaultImprover, | ||
NginxTimeTravel, | ||
] | ||
|
||
improver_mapping = {f"{x.__module__}.{x.__name__}": x for x in IMPROVER_REGISTRY} |