Skip to content

Commit 58825f8

Browse files
author
bit4
committed
Teemo
A domain collection tool
1 parent c425279 commit 58825f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+216171
-0
lines changed

Diff for: .idea/Sublist3r.iml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/Teemo.iml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/encodings.xml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/misc.xml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/scopes/scope_settings.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/workspace.xml

+478
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: README.md

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
##About teemo
2+
3+
域名爆破工具
4+
5+
提莫(teemo)是个侦察兵,域名的收集如同渗透和漏洞挖掘的侦察,故命名为提莫(Teemo)!
6+
7+
8+
该工具主要有三大模块:
9+
10+
11+
利用搜索引擎:
12+
13+
- baidu
14+
- google (需要代理,可能被block)
15+
- bing (使用cn.bing.com)
16+
- yahoo
17+
- yandex (可能被block,替代方案xml.yandex.com)
18+
- dogpile
19+
- exaland (可能被block)
20+
- ask (需要代理)
21+
- googleCSE (需要API)
22+
23+
利用第三方站点:
24+
25+
- Alex
26+
- Chaxunla (图形验证码)
27+
- netcraft
28+
- DNSDumpster
29+
- Virustotal
30+
- ThreatCrowd
31+
- CrtSearch
32+
- PassiveDNS
33+
- GooglCT
34+
- ILink
35+
- sitedossier
36+
- threatminer
37+
- Pgpsearch
38+
39+
利用暴力破解
40+
41+
- subbrute [https://github.com/TheRook/subbrute](https://github.com/TheRook/subbrute)
42+
43+
44+
##参考
45+
46+
参考以下优秀的工具修改而来:
47+
48+
- [https://github.com/ring04h/wydomain](https://github.com/ring04h/wydomain)
49+
- [https://github.com/aboul3la/Sublist3r](https://github.com/aboul3la/Sublist3r)
50+
- [https://github.com/laramies/theHarvester](https://github.com/laramies/theHarvester)
51+
52+
Thanks for their sharing.
53+
54+
##优缺点
55+
56+
为什么要修改,相对以上优秀工具有什么优缺点?
57+
58+
优点:
59+
60+
1. 使用的搜索引擎和第三方站点更全面,经过实际测试,发现收集的域名会更多。
61+
1. 添加了代理的支持,像google,ask等可以通过指定代理地址去访问,个人使用google较多,所以这个对我很重要。
62+
2. 使用搜索引擎的模块,会收集邮箱地址。
63+
64+
缺点:
65+
66+
1. 初始版本,单线程,速度慢,bug很多。但后续会持续更新改进。
67+

Diff for: config.py

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# encoding: utf-8
2+
# 全局配置文件
3+
4+
import sys
5+
import random
6+
7+
GoogleCSE_API_Key = ""
8+
9+
default_proxies = {
10+
"http": "http://127.0.0.1:9999/",
11+
"https": "http://127.0.0.1:9999/",
12+
}
13+
14+
default_ports = [21,22,443,3389,1433,8080]
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
# 是否开启https服务器的证书校验
26+
allow_ssl_verify = False
27+
28+
# 线程数
29+
threads_count = 16
30+
31+
# -------------------------------------------------
32+
# requests 配置项
33+
# -------------------------------------------------
34+
35+
# 超时时间
36+
timeout = 5
37+
38+
# 是否允许URL重定向
39+
allow_redirects = True
40+
41+
# 是否允许继承http Request类的Session支持,在发出的所有请求之间保持cookies。
42+
allow_http_session = True
43+
44+
# 是否允许随机User-Agent
45+
allow_random_useragent = False
46+
47+
# 是否允许随机X-Forwarded-For
48+
allow_random_x_forward = False
49+
50+
# 代理配置
51+
proxies = {
52+
# "http": "http://user:[email protected]:3128/",
53+
# "https": "http://10.10.1.10:1080",
54+
# "http": "http://127.0.0.1:8118", # TOR 洋葱路由器
55+
}
56+
57+
# 随机HTTP头
58+
USER_AGENTS = [
59+
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.20 (KHTML, like Gecko) Chrome/19.0.1036.7 Safari/535.20",
60+
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AcooBrowser; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
61+
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)",
62+
"Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.5; AOLBuild 4337.35; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
63+
"Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)",
64+
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 2.0.50727; Media Center PC 6.0)",
65+
"Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322)",
66+
"Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)",
67+
"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN) AppleWebKit/523.15 (KHTML, like Gecko, Safari/419.3) Arora/0.3 (Change: 287 c9dfb30)",
68+
"Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/527+ (KHTML, like Gecko, Safari/419.3) Arora/0.6",
69+
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070215 K-Ninja/2.1.1",
70+
"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/20080705 Firefox/3.0 Kapiko/3.0",
71+
"Mozilla/5.0 (X11; Linux i686; U;) Gecko/20070322 Kazehakase/0.4.5",
72+
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Fedora/1.9.0.8-1.fc10 Kazehakase/0.5.6",
73+
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11",
74+
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.20 (KHTML, like Gecko) Chrome/19.0.1036.7 Safari/535.20",
75+
"Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52",
76+
]
77+
78+
# 随机生成User-Agent
79+
def random_useragent(condition=False):
80+
if condition:
81+
return random.choice(USER_AGENTS)
82+
else:
83+
return USER_AGENTS[0]
84+
85+
# 随机X-Forwarded-For,动态IP
86+
def random_x_forwarded_for(condition=False):
87+
if condition:
88+
return '%d.%d.%d.%d' % (random.randint(1, 254),random.randint(1, 254),random.randint(1, 254),random.randint(1, 254))
89+
else:
90+
return '8.8.8.8'
91+
92+
# HTTP 头设置
93+
headers = {
94+
'User-Agent': random_useragent(allow_random_useragent),
95+
'X_FORWARDED_FOR': random_x_forwarded_for(allow_random_x_forward),
96+
'Referer' : 'http://www.baidu.com',
97+
'Cookie': "",
98+
}

Diff for: config.pyc

3.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)