Skip to content

Commit

Permalink
Merge pull request #481 from yogeshojha/fix/479-bug---scanning-issues…
Browse files Browse the repository at this point in the history
…-after-recent-m

Fixed #479, httpx input issue
  • Loading branch information
yogeshojha committed Aug 29, 2021
2 parents 20cce14 + c83c7f0 commit 7a76ad4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,13 @@ def http_crawler(task, domain, results_dir, activity_id):
for line in lines:
json_st = json.loads(line.strip())
try:
subdomain = Subdomain.objects.get(
scan_history=task, name=json_st['url'].split("//")[-1])
# fallback for older versions of httpx
if 'url' in json_st:
subdomain = Subdomain.objects.get(
scan_history=task, name=json_st['input'])
else:
subdomain = Subdomain.objects.get(
scan_history=task, name=json_st['url'].split("//")[-1])
'''
Saving Default http urls to EndPoint
'''
Expand Down

0 comments on commit 7a76ad4

Please sign in to comment.