Skip to content

Commit

Permalink
Merge pull request #337 from 13ph03nix/fix/url_redirect
Browse files Browse the repository at this point in the history
fix: url redirect problem in _check method
  • Loading branch information
13ph03nix authored Nov 16, 2022
2 parents cb758d9 + 30c4867 commit 098e355
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pocsuite3/lib/core/poc.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ def _check(self, dork='', allow_redirects=False, return_obj=False, is_http=True,
return False

self.url = res.request.url.rstrip('/')
if res.history:
self.url = res.history[0].request.url.rstrip('/')

if self.url.split('://')[0] != self.scheme:
logger.warn(f'auto correct url: {mosaic(origin_url)} -> {mosaic(self.url)}')
Expand Down

0 comments on commit 098e355

Please sign in to comment.