Skip to content

检测邮件发送的可行性,可用来红队作战中对目标邮箱账户测试。The feasibility sent by the detection mail can be used for the target mailbox account test in the Red Team battle.

License

Notifications You must be signed in to change notification settings

808Mak1r/CEmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CEmail

红队作战中钓鱼环节针对目标邮箱发送的可能性,可以用来枚举目标存在哪些邮箱。

安装使用免责声明
[中文] [English]

安装

二进制

可以通过 Github action编译的文件下载直接使用。

编译

  1. 参考 Rust官方教程 进行安装环境。
  2. 编译
$ cargo build --locked --release

编译文件存放在 target/release 目录下面

使用

根据检测结果,会返回 4 种不同的状态 状态:

  • Safe: 表示可送达
  • Risky: 表示存在风险不一定
  • Invalid: 表示不存在
  • Unknown: 未知原应(eg: 网络问题等)
$ ./cemail -h                                                                                         

cemail 0.1.0
808Mak1r <[email protected]>
A simple CLI to check if an email exists

USAGE:
    cemail [OPTIONS]

OPTIONS:
    -e, --email <EMAIL>      The email to check
    -f, --file <FILE>        The file containing the list of emails to check
    -h, --help               Print help information
    -o, --output <OUTPUT>    The output file [default: output.json]
    -V, --version            Print version information
  • -e 检测单个目标邮箱,默认保存到output.json
$ ./cemail -e [email protected]
2022-10-19 19:34:15.948  INFO 开始读取邮箱
2022-10-19 19:34:15.949  INFO 邮箱读取完毕
2022-10-19 19:34:18.478  INFO 邮箱: [email protected] 状态: Safe
2022-10-19 19:34:18.481  INFO 输出到文件: output.json

详细信息默认输出到 json 中查看,格式如下:

{
  "safe": [
    "[email protected]"
  ],
  "risky": [],
  "invalid": [],
  "unknown": [],
  "ce_output": [
    {
      "input": "[email protected]",
      "is_reachable": "safe",
      "misc": {
        "is_disposable": false,
        "is_role_account": false
      },
      "mx": {
        "accepts_mail": true,
        "records": [
          "alt2.gmail-smtp-in.l.google.com.",
          "alt4.gmail-smtp-in.l.google.com.",
          "gmail-smtp-in.l.google.com.",
          "alt3.gmail-smtp-in.l.google.com.",
          "alt1.gmail-smtp-in.l.google.com."
        ]
      },
      "smtp": {
        "can_connect_smtp": true,
        "has_full_inbox": false,
        "is_catch_all": false,
        "is_deliverable": true,
        "is_disabled": false
      },
      "syntax": {
        "address": "[email protected]",
        "domain": "gmail.com",
        "is_valid_syntax": true,
        "username": "808Mak1r"
      }
    }
  ]
}
  • -f 批量检测目标邮箱,并将详细结果保存到 test_out.json

可以通过-o指定输出文件名,不指定会默认保存为output.json,如果已经存在会按照顺序递归

$ ./cemail -f test.txt -o test_out.json

免责声明

本工具仅面向合法授权的企业安全建设行为,如您需要测试本工具的可用性,请自行搭建靶机环境。

为避免被恶意使用,本项目所有收录的poc均为漏洞的理论判断,不存在漏洞利用过程,不会对目标发起真实攻击和漏洞利用。

在使用本工具进行检测时,您应确保该行为符合当地的法律法规,并且已经取得了足够的授权。请勿对非授权目标进行扫描。

如您在使用本工具的过程中存在任何非法行为,您需自行承担相应后果,我们将不承担任何法律及连带责任。

在安装并使用本工具前,请您务必审慎阅读、充分理解各条款内容,限制、免责条款或者其他涉及您重大权益的条款可能会以加粗、加下划线等形式提示您重点注意。 除非您已充分阅读、完全理解并接受本协议所有条款,否则,请您不要安装并使用本工具。您的使用行为或者您以其他任何明示或者默示方式表示接受本协议的,即视为您已阅读并同意本协议的约束。

About

检测邮件发送的可行性,可用来红队作战中对目标邮箱账户测试。The feasibility sent by the detection mail can be used for the target mailbox account test in the Red Team battle.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages