酷帥王子'blog-

土司大佬写的python识别甲方资产方便awvs扫描

2022-1-29 0:54 作者:酷帥王子 | python网络安全 |

def ifHttps(domain):
    http_url = "http://" + domain
    https_url = "https://" + domain
    try:
        rg = requests.get(https_url, verify=False, timeout=8)
        return https_url
    except:
        try:
            rg = requests.get(http_url, verify=False, timeout=8)
            return http_url
        except:
            return 0

文章作者:酷帥王子
文章地址:https://www.2k8.org:443/post-314.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!

发表评论:



Powered by 酷帥王子

CopyRight © 2009-2016 酷帥王子'blog.  All rights reserved.