diff --git a/lib/utils/search.py b/lib/utils/search.py index 35b315552..7ffc86d04 100644 --- a/lib/utils/search.py +++ b/lib/utils/search.py @@ -142,8 +142,16 @@ def _search(dork): try: r = requests.get(baidu_link, timeout=10) if r and r.status_code == 200: - logger.info(r.url) - retVal.append(r.url) + # baidu will just use Javascript to redirect the page rather than responding a 302 HTTP code. + if r.history: + logger.info(r.url) + retVal.append(r.url) + else: + m = re.search('