查询域名注册商

#!/bin/bash

# 从文件中读取域名列表
for i in `cat domain.txt`
do
registrar_url=$(whois $i | grep "Registrar WHOIS Server" |awk '{print $NF}')
if [ "$registrar_url" = "whois.jumi.com" ];then
# 使用 grep 命令搜索匹配的域名
#matching_domains=$(grep -iw "$registrar_url" domains.txt)

# 如果有匹配的域名,则输出
echo "Domains registered jumi.com $i" >> jumi.com.txt
else
echo "Domain not jumi.com"
fi

 

done

 

 

import boto3

# 创建一个新的会话对象
session = boto3.Session(
aws_access_key_id='',
aws_secret_access_key='',
region_name='us-west-2'
)

# 使用会话对象调用S3服务
s3 = session.resource('s3')
bucket = s3.Bucket('heixiushe-decrypt-storage')
for obj in bucket.objects.all():
print(obj,key)

posted @ 2023-04-27 09:18  人生信条~~  阅读(42)  评论(0编辑  收藏  举报