DNSDumpster 项目使用教程

DNSDumpster 项目使用教程

dnsdumpsterA tool to perform DNS reconnaissance on target networks. Among the DNS information got from include subdomains, mx records, web application firewall detection and more fingerprinting and lookups项目地址:https://gitcode.com/gh_mirrors/dn/dnsdumpster

1. 项目的目录结构及介绍

DNSDumpster 项目的目录结构如下:

dnsdumpster/
├── docs/
├── emailfinder/
├── geolocator/
├── __init__.py
├── dnsdumpster.py
├── LICENSE
├── README.md
├── requirements.txt
├── searchparser.py
├── searchutils.py

目录介绍:

  • docs/: 存放项目文档的目录。
  • emailfinder/: 用于查找电子邮件的模块。
  • geolocator/: 用于地理位置定位的模块。
  • init.py: Python 包初始化文件。
  • dnsdumpster.py: 项目的主启动文件。
  • LICENSE: 项目的许可证文件。
  • README.md: 项目的说明文档。
  • requirements.txt: 项目依赖的 Python 包列表。
  • searchparser.py: 搜索解析模块。
  • searchutils.py: 搜索工具模块。

2. 项目的启动文件介绍

项目的启动文件是 dnsdumpster.py。该文件包含了项目的主要功能和启动逻辑。以下是 dnsdumpster.py 的部分代码示例:

import requests
from searchparser import SearchParser
from searchutils import add_protocol, get_user_agent

def get_server_type(host):
    """
    :param host: the server we want to get it's server
    @return str
    """
    try:
        ua = get_user_agent()
        headers = {
            'User-Agent': ua,
            'From': 'info@nmmapper.com'
        }
        res = requests.get(add_protocol(host), headers=headers)
        if res.headers:
            return res.headers.get("Server")
        else:
            return ""
    except Exception as e:
        return ""

功能介绍:

  • get_server_type(host): 用于检测指定主机的 Web 服务器类型。

3. 项目的配置文件介绍

项目的配置文件主要是 requirements.txt,该文件列出了项目运行所需的 Python 包及其版本。以下是 requirements.txt 的内容示例:

requests
dnspython
simplejson
ip2geotools
ipwhois

配置文件介绍:

  • requests: 用于发送 HTTP 请求。
  • dnspython: 用于 DNS 查询。
  • simplejson: 用于 JSON 处理。
  • ip2geotools: 用于 IP 地址地理位置查询。
  • ipwhois: 用于 IP 地址信息查询。

通过安装这些依赖包,可以确保项目正常运行。安装命令如下:

pip3 install -r requirements.txt

以上是 DNSDumpster 项目的使用教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。希望对您有所帮助!

dnsdumpsterA tool to perform DNS reconnaissance on target networks. Among the DNS information got from include subdomains, mx records, web application firewall detection and more fingerprinting and lookups项目地址:https://gitcode.com/gh_mirrors/dn/dnsdumpster

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

秋崧欣

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值