1337ings

[Python] IsMyEmailHacked

Feb 13th, 2017
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. # Is my email hacked?
  2. import os
  3. import json
  4. import simplejson
  5. import requests
  6.  
  7. a = raw_input("Enter the email:")
  8. b = {'q':a}
  9. r = requests.get('https://hacked-emails.com/api', params=b)
  10. res = simplejson.loads(r.text)
  11. a = range(int(res['results']))
  12. if r.status_code == 200:
  13. print "Email:" , res['query']
  14. print "Status:" , res['status']
  15. print "No.of.leaks:", res['results']
  16. for i in a:
  17. print "Leaked Data : Part-",i+1
  18. print "Title of leak :" , res['data'][i]['title']
  19. print "Author :" , res['data'][i]['author']
  20. print "Verified leak :" , res['data'][i]['verified']
  21. print "Date leaked :" , res['data'][i]['date_leaked']
  22. print "Date published :" , res['data'][i]['date_created']
  23. print "Network :" , res['data'][i]['source_network']
  24. print "Site:" , res['data'][i]['source_provider']
  25. print "File size :" , res['data'][i]['source_size'] % 1024
  26. print "Emails found :" , res['data'][i]['emails_count']
  27. print "Details:" , res['data'][i]['details']
  28. print "Source URL:" , res['data'][i]['source_url']
  29. print "No. of lines :" , res['data'][i]['source_lines']
  30. print "------------xxxxxxxxxxxxx----------------"
  31. # print "Leak:" , res['data'][0]['title']
  32. # print "Source Network:", res['data'][0]['']
  33. else:
  34. print "Email:" , res['query']
  35. print "Status:" , res['status']
Add Comment
Please, Sign In to add comment