Skip to content

Commit

Permalink
master: Change securityfocus url to https
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasAubry committed Jan 22, 2018
1 parent e790dff commit 8aba13c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwebvulndb/common/securityfocus/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def get_vulnerability_list(self, vuln_pages_to_fetch=1, file=None):
vuln_index = 0
while vuln_pages_to_fetch is None or vuln_index < vuln_pages_to_fetch * vulnerabilities_per_page:
post_data = {'op': 'display_list', 'o': vuln_index, 'c': 12, 'vendor': 'WordPress'}
async with self.aiohttp_session.post("http://www.securityfocus.com/bid", data=post_data) as response:
async with self.aiohttp_session.post("https://www.securityfocus.com/bid", data=post_data) as response:
assert response.status == 200
vuln_index += vulnerabilities_per_page
html_page = await response.text()
Expand All @@ -78,7 +78,7 @@ async def get_vulnerability_entry(self, bugtraq_id=None, url=None, dest_folder=N
solution_parser: A SolutionTabParser object containing the info tab html page of the vulnerability.
"""
if url is None:
url = "http://www.securityfocus.com/bid/" + bugtraq_id
url = "https://www.securityfocus.com/bid/" + bugtraq_id
if bugtraq_id is None:
bugtraq_id = re.search("\d+", url).group()
pages_to_fetch = ["info", "references", "discuss", "solution", "exploit"]
Expand Down

0 comments on commit 8aba13c

Please sign in to comment.