More pythonic and clean way to apply function to url_list

This commit is contained in:
Vakaris 2018-08-23 14:37:31 +03:00
parent ef4eadf64a
commit 1c5c010028
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class Struts2Exploiter(WebRCE):
:return: Array of url's to try and attack
"""
url_list = super(Struts2Exploiter, self).build_potential_urls(ports)
url_list = list(map(self.get_redirected, url_list))
url_list = [self.get_redirected(url) for url in url_list]
return url_list
@staticmethod