Git Product home page Git Product logo

tig's Introduction

TIG 威胁情报收集 🪓

GitHub stars GitHub issues GitHub release

0x00 介绍

解决问题

TIG Threat Intelligence Gathering ,即威胁情报收集。

在蓝队进行溯源工作时,通常有以下场景:

  1. 需要对 IP 的威胁情报信息、域名反查备案、IP 存活等信息进行查询

  2. 需要对多个攻击 IP 进行查询

为了提高蓝队在进行这项工作时的效率,为此简单编写了一个威胁情报收集的小工具。

求 start ⭐️ ~~~~

工具介绍

工具代码完全开源,放心使用,XDM 有问题可以在 GitHub 提 issue 或者关注底部公众号加入团队官方交流群~

我们也会根据大家反馈的内容持续完善!

项目地址:

国外:https://github.com/wgpsec/tig

国内:https://gitee.com/wgpsec/tig

当前该工具获取 IP 的信息有以下几个角度:

  1. 微步情报信息:获取到 IP 的标签信息、是否恶意 IP、地理位置等等

  2. IP 域名反查:获取到 IP 对应的域名,从而根据域名查询到备案信息和 Whois 信息

  3. Fofa 信息:获取到 IP 可能开放的端口和 IP 对应的域名信息

  4. Ping 存活检测:判断 IP 是否存活

假设在获取到的信息最大化情况下,通过 TIG 可以一键发现 IP 对应的情报标签、域名、域名注册人、备案邮箱、备案号、备案单位、域名注册商、IP 开放端口、地理位置等等信息。

后续将集成更多模块,如有好的建议或遇到 Bug 欢迎提 issue

0x01 安装

需要 python3.6 或更高版本支持

国外

git clone https://github.com/wgpsec/tig.git
cd  tig
pip3 install -r requirements.txt
python3 tig.py

国内

git clone https://gitee.com/wgpsec/tig.git
cd tig
pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
python3 tig.py

0x02 使用

帮助信息

工具命令如下:

 -h, --help  show this help message and exit
 -c CONFIG   指定配置文件,默认 ./config.ini
 -f FILE     指定 IP 文本,一行一个
 -i IP       指定目标 IP
 -p PROXY    指定代理,比如:http://127.0.0.1:1080 或者 socks5://127.0.0.1:1080
 -o OUTPUT   导出为 excel 表格,例如 output.xlsx

配置文件

如果是第一次使用本工具,在启动时会提示输入您的微步 API 和 Fofa API

查看自己微步 API Key 的地址为:https://x.threatbook.cn/nodev4/vb4/myAPI,免费账户有每天 50 次的限额。

查看自己 Fofa API Key 的地址为:https://fofa.so/personalData,普通会员每次免费前 100 条,高级会员每次免费前 10000 条。

如果之前使用过历史版本,程序会自动根据原来的配置文件生成当前的配置文件,无需手动更改。

示例

例如这里要获取某个 IP 的信息,直接使用 -i 命令即可,结果会默认保存到 output 文件夹内,或者 -o 指定导出文件位置。

或者直接指定一个 IP 列表,结果导出到 result.xlsx 文件里。

导出表格文件信息如下

0x03 最后

如果各位师傅在使用工具的过程中发现存在 bug 或者有好的建议,欢迎多多提 issue。

如果感觉使用起来还不错,欢迎师傅赏个 star !!!!

Stargazers over time

tig's People

Contributors

teamssix avatar keac avatar

Watchers

 avatar

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.