my_bing_domains_v1_alone.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:MyToolKit 作者: 3xp10it 项目源码 文件源码
def main():    
    if len(sys.argv)!=2:
        usage()
        sys.exit(0)

    try:
        file=open(sys.argv[1],"r+")
        target_list=file.readlines()
        file.close()
        true_target_list=[]
        true_target_list=get_pure_list(target_list)
        for each in true_target_list:
            try:
                get_the_one_target_domains(each)
            except:
                print "getip or socket.gethostbyname_ex wrong,the site may break down,you can check it."
    except:
        sharedHost=sys.argv[1]
        get_the_one_target_domains(sharedHost)
        print "open file wrong coz this input is not a file but a domain or when you do put a file,then the script open file wrong"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号