从Pastebin收集泄露的邮箱地址相关信息

该脚本解析Pastebin的邮箱:密码转储,并收集每个邮箱地址的相关信息。它支持Google、Trumail、Pipl、FullContact和HaveIBeenPwned。此外,它还允许您向相关人员发送通知邮件,告知其密码泄露,最后所有信息会存入Elasticsearch以便进一步分析。
仅支持一种格式 - 邮箱:密码。
其他格式将无法工作!
目前,当在FullContact中找到匹配项时,会触发通知,并将邮箱地址及关联的社交媒体账号发送给您。
pip install -r requirements
{"domains":
{ #用于白名单或黑名单的域名
"whitelist": [""],
"blacklist": ["yahoo.com"]
},
"keys":
{ #API密钥
"pushsafer": "API_KEY",
"fullcontact": "API_KEY",
"pipl": "API_KEY"
},
"gmail":
{ #Gmail凭据和将要发送的通知消息
"username": "[email protected]",
"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连接信息
"host": "127.0.0.1",
"port": 9200}
}
root@kali:~/PycharmProjects/pepe# python pepe.py -h
usage: 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 show this help message and exit
--file FILE Load file
--stream Stream Pastebin
--interactive Interactive mode
--modules MODULES [MODULES ...]
Modules to check in non-interactive mode
--elasticsearch Output to ElasticSearch
--whitelist Whitelist
--blacklist Blacklist
交互模式,逐个检查每个邮箱并执行指定模块。
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 old
Jobs:
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]
非交互模式,仅对邮箱地址执行所选模块。
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]



我不对任何损害负责。 你知道,这只是为了教育目的。