之前无聊扫了点三字符的.de域名,于是写了这个域名扫描的流程做个备忘录
域名扫描程序
1.uselibrary/DomainCheck: Check the available domain of a TLD with dict, based on Python.
2.dynos01/DomainScanningTool: A bulk domain scanning tool
都是基于python
字典生成
1.全球Whois查询 - 天天hu,天天新米 (tian.hu)
2.写了个python脚本来生成aabb/abab类域名,可自行修改调整
import string import itertools letters = list(string.ascii_lowercase) def generate_aabb(): results = [] for a in letters: for b in letters: if a != b: results.append(a + a + b + b) return results aabbs = generate_aabb() with open('aabbs.txt', 'w') as f: for aabb in aabbs: f.write(aabb + '\n') print('结果已保存到aabbs.txt')
修改append就可以换生成的类型了,其他变量自行修改即可
扫描示例
root@seok:~/DomainScanningTool# python3 DomainScanningTool.py Domain scanning tool version 1.0.3 Author: dynos01 <[email protected]> Please input a list of DNS servers (IPv4 or IPv6), which will be used to check against: 8.8.8.8:53 Please input the suffixes to be scanned. If you want to scan multiple suffixes at once, please use commas to separate the list. de Please input the path for dictionary file. 3za.txt If you want to save the results to a file, input its path. Otherwise, press ENTER. Do you want to show unavailable domains? [y/N]: All data collected. Press ENTER to start scanning. [placeholder].de is available.
文章评论