-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathemail_hacked.py
37 lines (35 loc) · 1.33 KB
/
email_hacked.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
__author__ = "Santhosh Baswa"
__copyright__ = "Copyright 2016, Independent Security Researcher"
import os
import json
import simplejson
import requests
a = raw_input("Enter the email:")
b = {'q':a}
r = requests.get('https://hacked-emails.com/api', params=b)
res = simplejson.loads(r.text)
a = range(int(res['results']))
if r.status_code == 200:
print "Email:" , res['query']
print "Status:" , res['status']
print "No.of.leaks:", res['results']
for i in a:
print "Leaked Data : Part-",i+1
print "Title of leak :" , res['data'][i]['title']
print "Author :" , res['data'][i]['author']
print "Verified leak :" , res['data'][i]['verified']
print "Date leaked :" , res['data'][i]['date_leaked']
print "Date published :" , res['data'][i]['date_created']
print "Network :" , res['data'][i]['source_network']
print "Site:" , res['data'][i]['source_provider']
print "File size :" , res['data'][i]['source_size'] % 1024
print "Emails found :" , res['data'][i]['emails_count']
print "Details:" , res['data'][i]['details']
print "Source URL:" , res['data'][i]['source_url']
print "No. of lines :" , res['data'][i]['source_lines']
print "------------xxxxxxxxxxxxx----------------"
# print "Leak:" , res['data'][0]['title']
# print "Source Network:", res['data'][0]['']
else:
print "Email:" , res['query']
print "Status:" , res['status']