DecoyMini 技术交流社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5252|回复: 0

[工具] 暗网开源情报工具 —— TorBot

[复制链接]

172

主题

34

回帖

30

荣誉

Rank: 9Rank: 9Rank: 9

UID
2
积分
339
精华
1
沃币
2 枚
注册时间
2021-6-24

论坛管理

发表于 2022-5-26 15:24:09 | 显示全部楼层 |阅读模式

特性


  • 洋葱蜘蛛 (.onion) (已完成)
  • 返回页面标题和地址以及关于站点的简短描述 (部分完成)
  • 保存到数据库的链接 (待审查的公关)
  • 从站点获取电子邮件 (已完成)
  • 将抓取到的信息保存到 JSON 文件 (已完成)
  • 抓取自定义域 (已完成)
  • 检查链接是否有效 (已完成)
  • 内置更新程序 (已完成)
  • TorBot GUI (进行中)
  • 社交媒体整合 (未开始) ... (将更新)

依赖


  • Tor
  • Python ^3.7
  • Golang 1.16
  • beautifulsoup4
  • pyinstaller
  • PySocks
  • termcolor
  • requests
  • requests_mock
  • yattag
  • numpy
  • https://github.com/KingAkeem/gotor (此服务需要与 TorBot 一起运行)

在运行 torBot 之前,请确保正确完成以下事项:

  • 运行 tor service -> sudo service tor start
  • 确保 torrc 配置为 SOCKS_PORT localhost:9050
  • 安装 Poetry
  • 禁用 Poetry virtualenvs (不需要) -> Poetry config settings.virtualenvs.create false
  • 安装 TorBot Python (需要) -> poetry install

在 Linux 平台上,可以使用 install.sh 脚本为 TorBot 制作可执行文件。需要使用 chmod +x install.sh 为脚本授予正确的权限,可以运行 ./install.sh 来创建 torBot 二进制文件,运行 ./torBot 以执行程序。

下面显示了运行 torBot 的另一种方法,以及帮助说明。

  1. python3 torBot.py or use the -h/--help argument

  2. usage: torBot.py [-h] [-v] [--update] [-q] [-u URL] [-s] [-m] [-e EXTENSION]
  3.                  [-i]

  4. optional arguments:
  5.   -h, --help            Show this help message and exit
  6.   -v, --version         Show current version of TorBot.
  7.   --update              Update TorBot to the latest stable version
  8.   -q, --quiet           Prevent header from displaying
  9.   -u URL, --url URL     Specifiy a website link to crawl, currently returns links on that page (if used alone e.g. python3 torBot.py -u https://www.github.com)
  10.   -s, --save            Save results to a file in json format
  11.   -m, --mail            Get e-mail addresses from the crawled sites
  12.   -e EXTENSION, --extension EXTENSION
  13.                         Specifiy additional website extensions to the
  14.                         list(.com or .org etc)
  15.   -i, --info            Info displays basic info of the scanned site (very
  16.                         slow)`
复制代码

注意:-u URL 下的所有标志,--url URL 也必须传递一个 -u 标志。

使用 Docker 来运行

  • 确保有一个在 9050 端口上运行的 Tor 容器。
  • 使用以下命令构建映像 (在根目录中):
  • docker build -f docker/Dockerfile -t dedsecinside/torbot
  • 运行容器 (确保将 tor 容器链接为 tor):
  • docker run --link tor:tor --rm -ti dedsecinside/torbot

准备要做的


  • 可视化模块
  • 为网络爬虫实现 BFS 搜索
  • 使用 Golang 服务进行并发网络爬虫
  • 提高稳定性 (优雅地处理错误,扩大测试覆盖率等)
  • 创建用户友好的 GUI
  • 随机化 Tor 连接 (随机标头和身份)
  • 关键字/短语搜索
  • 社交媒体整合
  • 增加匿名性
  • 提高效率

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|小黑屋|DecoyMini 技术交流社区 ( 京ICP备2021005070号 )

GMT+8, 2024-4-29 17:08 , Processed in 0.058044 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表