Giter Site home page Giter Site logo

subdomain3's Introduction

Subdomain3

version stars forks language language

README.md in Chinese 中文

Description

Subdomain3 is a new generation of tool , It helps penetration testers to discover more information in a shorter time than other tools.The information includes subdomains, IP, CDN, and so on. Please enjoy it.

Screenshot

medium pattern for speed

Features

  • More quick

Three patterns for speed. User can modify the configuration(lib/config.py) file to speed-up.

  • CDN support

Determines whether the subdomain uses CDN storage automatically,even though the dict of CDN severs not contain the cname suffix.

  • RFC CIDR

Sorting ip and report CIDR(example 1.1.1.1/24) that it not use CDN storage;

  • Multi-level subdomain support

Discover more subdomains,example:admin.test.xx.com

  • Big dict support

Million of subs support

  • Less resource consumption

1 CPU/1GB Memory/1Mbps bandwidth

  • More intelligent

Discover the fastest nameserver;The strategy of dynamically adjusting of dict by importing subdomains from other sources;Prevent dns cache pollution;

Getting started

git clone https://github.com/yanxiu0614/subdomain3.git

pip install -r requirement.txt

python2/3 brutedns.py -d tagetdomain -s high -l 5

Usage

Short Form Long Form Description
-d --domain target domain,for example: baidu.com
-s         --speed speed,three patterns:fast,medium,low
-l --level example: 2:w.baidu.com; 3:w.w.baidu.com;
-f --file The list of target domain
-c --cname n or y,collect cnames
-ns --default_dns n or y
-f1 --sub_file sub dict
-f2 --next_sub_file next sub dict
-f3 --other_file subdomain log from search engine

License

The MIT License(http://opensource.org/licenses/MIT)

Please feel free to use and contribute to the development.

Thanks:

Changelog:

  • 2020-01-20: Optimize memory usage and strategy,Fixed bug e.g

  • 2019-09-22: New strategy to prevent dns cache pollution;Optimize the processes,Fixed bug e.g

  • 2019-09-17: Automatically discover the fastest nameserver support;Determines whether the subdomain uses CDN storage automatically support;Improve the speed;Optimize the processes,Fix bug e.g

  • 2018-11-6: Improve the speed;Optimize the processes;

  • 2018-10-6: Api support,import brutedns_api and you will get the number of results in the end;Optimized the deduplication strategy;

  • 2018-2-14: Fix issue(TypeError: argument of type 'NoneType' is not iterable)

  • 2018-1-9: CDN PLAN;Add opthon oc collecting cname (-c --cdn t/f)

  • 2017-11-11: Import subdomains from other sources support(You should create a new file of target_domain.log, and put it with 'brutedns.py' in the same directory),it will improve the accuracy;it is more convenient for use API;

  • 2017-10-26: Optimize the processes;Fix bug;

  • 2017-10-11:Rebuild part of the program; Api support; Result is more readable;Update cdn-severs;faster

  • 2017-6-17: Delete universal parse opthon(-p t/f);Add a file of config;Optimze strategy for universal parse

  • 2017-5-2: Add a module(validate the domain),please modify "result_name" in the validate_domain.py if you will use it;fix universal bug;update cdn-servers,etc

  • 2017-4-21: Optimze strategy for generating subname,Improve the speed

  • 2017-3-23: Add universal parse opthon(-p t/f)

  • 2017-3-17: Big dict support(for example: two million)

  • 2017-3-10: Read several domains from file support(-f domains) support;Update cdn-servers

  • 2017-2-26: Multilevel domain support(no upper limit);Big dict support;Take up about a third to a quarter as much memory;Faster

  • 2017-2-24: Mac support

©Monster Zero Team 2019

subdomain3's People

Contributors

daysdaysup avatar yanxiu0614 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

subdomain3's Issues

MAC 10.14.1 ulimit 错误

sh: line 0: ulimit: open files: cannot modify limit: Invalid argument
应该是默认设置的太大了。我尝试了一下最大是10240

字典太大的时候 扫描的时间会特别长

我把sub_full修改到了181w+的字典 然后现在跑的时间特别长。。。。
用的-s 只跑一层
+] Bruting subdomain process domain: vipjr.com |scaned: 24495000|found: 46 |speed:308.2 |spend: 1324.7 min

brutedns.py syntaxwarning

here is what i got while trying to run the program.
brutedns.py:53: SyntaxWarning: "is" with a literal. Did you mean "=="?
self.default_dns = True if args.default_dns is "y" else False
Traceback (most recent call last):
File "brutedns.py", line 16, in
import gevent
ModuleNotFoundError: No module named 'gevent'

this could be due some variables not working with the newest version of python or that there's a variable issue.

Not Working !

** In Terminal Getting this Eror **

[Errno 2] No such file or directory: 'result/in.pinterest.com/'

请问找不到路劲是怎么回事?

py -3 brutedns.py -d jd.com -s high -l 2

                      _         _                       _       ____
                     | |       | |                     (_)     |___ \
            ___ _   _| |__   __| | ___  _ __ ___   __ _ _ _ __   __) |
           / __| | | | '_ \ / _` |/ _ \| '_ ` _ \ / _` | | '_ \ |__ <
           \__ \ |_| | |_) | (_| | (_) | | | | | | (_| | | | | |___) |
           |___/\__,_|_.__/ \__,_|\___/|_| |_| |_|\__,_|_|_| |_|____/
            Coded By yanxiu (V3.0 RELEASE) email:[email protected]

[WinError 3] 系统找不到指定的路径。: 'result/jd.com'

not working

Its not working:
python brutedns.py -d gooogle.com -s high -l 5

                      _         _                       _       ____  
                     | |       | |                     (_)     |___ \ 
            ___ _   _| |__   __| | ___  _ __ ___   __ _ _ _ __   __) |
           / __| | | | '_ \ / _` |/ _ \| '_ ` _ \ / _` | | '_ \ |__ < 
           \__ \ |_| | |_) | (_| | (_) | | | | | | (_| | | | | |___) |
           |___/\__,_|_.__/ \__,_|\___/|_| |_| |_|\__,_|_|_| |_|____/ 
            Coded By yanxiu (V3.0 RELEASE) email:[email protected]

[Errno 2] No such file or directory: 'result/gooogle.com'

when i execute pip3 install -r requirement.txt on ubuntu20.04,i met the questions below.can anyone give me some suggestion?

pip3 install -r requirement.txt
Collecting dnspython
Using cached dnspython-2.0.0-py3-none-any.whl (208 kB)
Collecting gevent
Downloading gevent-20.6.2-cp38-cp38-manylinux2010_x86_64.whl (6.1 MB)
|█████████▌ | 1.8 MB 6.2 kB/s eta 0:11:38ERROR: Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 425, in _error_catcher
yield
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 507, in read
data = self._fp.read(amt) if not fp_closed else b""
File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "/usr/lib/python3.8/http/client.py", line 454, in read
n = self.readinto(b)
File "/usr/lib/python3.8/http/client.py", line 498, in readinto
n = self.fp.readinto(b)
File "/usr/lib/python3.8/socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.8/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 357, in run
resolver.resolve(requirement_set)
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
local_path = unpack_url(
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 282, in unpack_url
return unpack_http_url(
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 158, in unpack_http_url
from_path, content_type = _download_http_url(
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 303, in _download_http_url
for chunk in download.chunks:
File "/usr/lib/python3/dist-packages/pip/_internal/utils/ui.py", line 160, in iter
for x in it:
File "/usr/lib/python3/dist-packages/pip/_internal/network/utils.py", line 15, in response_chunks
for chunk in response.raw.stream(
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 564, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 529, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/usr/lib/python3.8/contextlib.py", line 131, in exit
self.gen.throw(type, value, traceback)
File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 430, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.