前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >pepe:从Pastebin收集邮件地址的信息

pepe:从Pastebin收集邮件地址的信息

作者头像
C4rpeDime
发布2020-01-20 15:14:30
1.5K0
发布2020-01-20 15:14:30
举报
文章被收录于专栏:黑白安全黑白安全

pepe是一个基于python的用于从Pastebin收集有关泄露电子邮件地址信息的脚本工具。

pepe:从Pastebin收集邮件地址的信息
pepe:从Pastebin收集邮件地址的信息

它会解析Pastebin email:password转储并收集有关每个电子邮件地址的信息。pepe目前支持Google,Trumail,Pipl,FullContact和HaveIBeenPwned。此外,它还允许你向人发送有关其泄露密码的信息邮件,最后每个信息都会在Elasticsearch中进行进一步的探索。

它只支持一种格式 – email:password。

目前,通知(notification)仅在FullContact上找到匹配时才会工作,然后会向你发送电子邮件地址和关联的社交媒体帐户。

安装条件

Python 3 FullContact API https://www.fullcontact.com/developer/ Google Pipl API https://pipl.com/api/ HaveIBeenPwned SafePush (通知 – 可选 – 正在进行中) https://www.pushsafer.com/ Trumail https://trumail.io/ Gmail account (发送电子邮件) Elasticsearch (可选)

代码语言:javascript
复制
pip install -r requirements

Config

代码语言:javascript
复制
{"domains": 
  { #domains to whitelist or blacklist
  "whitelist": [""],  "blacklist": ["yahoo.com"]
},"keys": 
  { #API KEYS
  "pushsafer": "API_KEY",  "fullcontact": "API_KEY",  "pipl": "API_KEY"},"gmail": 
  { #GMAIL credentials and informational message that will be send
  "username": "your_username@gmail.com",  "password": "password",  "message": "Hey,\n\nI am a security researcher and I want to inform you that your password !PASSWORD! has been leaked and you should change it immediately.\nThis email is part of the research, you can find more about it on https://medium.com/@wojciech\n\nStay safe!"},"elasticsearch":
  { #ElasticSearch connection info
  "host": "127.0.0.1",  "port": 9200}
}

使用

代码语言:javascript
复制
root@kali:~/PycharmProjects/pepe# python pepe.py -husage: pepe.py [-h] [--file FILE] [--stream] [--interactive]
                 [--modules MODULES [MODULES ...]] [--elasticsearch]
                 [--whitelist] [--blacklist]

                            ,=.
              ,=''''==.__.="  o".___
        ,=.=="                  ___/
  ,==.,"    ,          , \,===""
 <     ,==)  "'"=._.==)    `==''    `"           `

  clover/snark^

http://ascii.co.uk/art/platypus

  Post Exploitation Pastebin Emails
  github.com/woj-ciech
  medium.com/@woj_ciech
  
  Example:
  python pepe.py --file <dump.txt> --interactive --whitelist
  python pepe.py --file <dump.txt> --modules hibp google trumail --elasticsearch --blacklist

optional arguments:
  -h, --help            显示帮助信息并退出
  --file FILE           加载文件
  --stream              Stream Pastebin
  --interactive         交互模式
  --modules MODULES [MODULES ...]
                        用于检查非交互模式的模块
  --elasticsearch       输出到ElasticSearch
  --whitelist           白名单列表
  --blacklist           黑名单列表

示例

交互模式,单独检查每个电子邮件并执行特定模块。

代码语言:javascript
复制
root@kali:~/PycharmProjects/pepe# python pepe.py --file paste.txt --interactive --blacklist-----------------------Found email [REDACTED]@hotmail.com with password [REDACTED]-----------------------
[A] Add domain hotmail.com to blacklist
[T] Test
[G] Google search
[H] HaveIBeenPwned
[P] Pipl
[F] FullContact
[I] Inform
[N] Next
> G
---Google Search---http://[REDACTED]http://[REDACTED]http://[REDACTED][A] Add domain gmail.com to blacklist
[T] Test
[G] Google search
[H] HaveIBeenPwned
[P] Pipl
[F] FullContact
[I] Inform
[N] Next
> N
-----------------------Found email [REDACTED].[REDACTED]@gmail.com with password [REDACTED]-----------------------
[A] Add domain gmail.com to blacklist
[T] Test
[G] Google search
[H] HaveIBeenPwned
[P] Pipl
[F] FullContact
[I] Inform
[N] Next
> F
---FullContact---
[REDACTED] [REDACTED]https://twitter.com/[REDACTED]https://facebook.com/[REDACTED]https:/linkedin.com/[REDACTED]
[A] Add domain gmail.com to blacklist
[T] Test
[G] Google search
[H] HaveIBeenPwned
[P] Pipl
[F] FullContact
[I] Inform
[N] Next
> P
---Pipl---Name: [REDACTED]
[REDACTED] years oldJobs:Quality Control [REDACTED] (since 2018)
[REDACTED] Review [REDACTED] (2017-2018)
[REDACTED] Attorney [REDACTED] (2017-2018)
[REDACTED] Attorney at [REDACTED] (2017-2017)
...
[REDACTED] (2012-2012)
[REDACTED] Assistant at [REDACTED] (2012-2012)
Author/Founder at [REDACTED] (2009-2011)https://www.linkedin.com/in/[REDACTED]http://www.facebook.com/people/[REDACTED]http://twitter.com/[REDACTED]http://pinterest.com/[REDACTED]https://plus.google.com/[REDACTED]...
[REDACTED]

非交互模式,仅针对电子邮件地址执行所选模块。

代码语言:javascript
复制
root@kali:~/PycharmProjects/# python pepe.py --file pastetest.txt --blacklist --modules hibp google fullcontact trumail --elasticsearch-----------------------Found email [REDACTED]@hotmail.com with password [REDACTED]-----------------------
---Google Search---https://pastebin.com/[REDACTED]---Have I Been Pwned---
LinkedIn
---FullContact---
No results
---Trumail---
Email test passed
-----------------------Found email charlie.[REDACTED]@live.com with password [REDACTED]-----------------------
---Google Search---https://justpaste.it/[REDACTED]https://pastebin.com/[REDACTED]---Have I Been Pwned---
MyHeritage
RiverCityMedia
Tumblr
YouveBeenScraped
---FullContact---
Charlie [REDACTED]https://twitter.com/[REDACTED][REDACTED]
---Trumail---
Email test passed
-----------------------Found email [REDACTED].[REDACTED]@gmail.com with password [REDACTED]-----------------------
---Google Search---http://[REDACTED]http://[REDACTED]http://[REDACTED]https://pastebin.com/[REDACTED]---Have I Been Pwned---
BTSec
Exactis
HauteLook
Houzz
LinkedIn
---FullContact---
[REDACTED] [REDACTED]https://www.facebook.com/[REDACTED][REDACTED]
---Trumail---
Email test passed
-----------------------Found email [REDACTED].[REDACTED]@gmail.com with password [REDACTED]-----------------------
---Google Search---https://[REDACTED]https://[REDACTED]https://[REDACTED]https://pastebin.com/[REDACTED]---Have I Been Pwned---
Lastfm
LinkedIn
MySpace
Trillian
Tumblr
---FullContact---
[REDACTED] [REDACTED] [REDACTED].https://www.facebook.com/[REDACTED]https://plus.google.com/[REDACTED]https://www.linkedin.com/in/[REDACTED]http://www.pinterest.com/[REDACTED]https://twitter.com/[REDACTED]https://youtube.com/user/[REDACTED][REDACTED]

相关截图

pepe:从Pastebin收集邮件地址的信息
pepe:从Pastebin收集邮件地址的信息
pepe:从Pastebin收集邮件地址的信息
pepe:从Pastebin收集邮件地址的信息
pepe:从Pastebin收集邮件地址的信息
pepe:从Pastebin收集邮件地址的信息
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-05-176,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 安装条件
  • Config
  • 使用
  • 示例
  • 相关截图
相关产品与服务
Elasticsearch Service
腾讯云 Elasticsearch Service(ES)是云端全托管海量数据检索分析服务,拥有高性能自研内核,集成X-Pack。ES 支持通过自治索引、存算分离、集群巡检等特性轻松管理集群,也支持免运维、自动弹性、按需使用的 Serverless 模式。使用 ES 您可以高效构建信息检索、日志分析、运维监控等服务,它独特的向量检索还可助您构建基于语义、图像的AI深度应用。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档