-
Notifications
You must be signed in to change notification settings - Fork 36
Conversation
Codecov Report
@@ Coverage Diff @@
## master #275 +/- ##
==========================================
+ Coverage 74.56% 74.57% +0.01%
==========================================
Files 21 21
Lines 2335 2332 -3
==========================================
- Hits 1741 1739 -2
+ Misses 594 593 -1
Continue to review full report at Codecov.
|
ospd/scan.py
Outdated
@@ -378,6 +378,10 @@ def get_target_options(self, scan_id: str): | |||
""" | |||
return self.scans_table[scan_id]['target'].get('options') | |||
|
|||
def get_target(self, scan_id: str) -> Dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to add the concrete Dict type here like Dict[str, str]
. Not sure what key and value types are used here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw. same for the other methods like get_vts below
674bc2c
to
4eb3089
Compare
Also, improve typing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
ospd/scan.py
Outdated
def get_vts(self, scan_id: str) -> Dict: | ||
def get_target( | ||
self, scan_id: str | ||
) -> Dict[str, Union[str, Dict[str, Union[str, Dict[str, str]]]]]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Holy crap 😳
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All target information is there. Credentials (for different services), target options (alive tests method and reverse_lookup options), port list, hosts (to be scanned, finished and excluded).
I removed this method, because is not necessary anymore. I have just simplified the start_scan() method.
No description provided.