Skip to content

Commit

Permalink
URL scope for mobile targets (#14)
Browse files Browse the repository at this point in the history
Added support to retrieve the URL scope for mobile targets.
  • Loading branch information
RedByte1337 authored Nov 13, 2022
1 parent 4337fb7 commit 86b8b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/synack/plugins/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_scope(self, **kwargs):
categories[category.id] = category.name
if categories[target.category].lower() == 'host':
return self.get_scope_host(target)
elif categories[target.category].lower() == 'web application':
elif categories[target.category].lower() in ['web application', 'mobile']:
return self.get_scope_web(target)

def get_scope_host(self, target=None, **kwargs):
Expand All @@ -200,7 +200,7 @@ def get_scope_host(self, target=None, **kwargs):
return scope

def get_scope_web(self, target=None, **kwargs):
"""Get the scope of a Web target"""
"""Get the web scpope of a Web or Mobile target"""
if target is None:
target = self.db.find_targets(**kwargs)
if target:
Expand Down

0 comments on commit 86b8b86

Please sign in to comment.