Skip to content

Commit

Permalink
Fixed #479, httpx input issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshojha committed Aug 29, 2021
1 parent 20cce14 commit c83c7f0
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 c83c7f0

Please sign in to comment.