From 86b8b86cc344d84cfd7317013b03b0b1edbb1153 Mon Sep 17 00:00:00 2001 From: Keanu Date: Sun, 13 Nov 2022 18:16:19 +0100 Subject: [PATCH] URL scope for mobile targets (#14) Added support to retrieve the URL scope for mobile targets. --- src/synack/plugins/targets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/synack/plugins/targets.py b/src/synack/plugins/targets.py index b4adf9b..bf41101 100644 --- a/src/synack/plugins/targets.py +++ b/src/synack/plugins/targets.py @@ -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): @@ -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: