forked from alpkeskin/mosint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
from bs4 import BeautifulSoup | ||
import json, requests | ||
import requests | ||
from insides.bcolors import bcolors | ||
from prettytable import PrettyTable | ||
|
||
def LeakedDB(mail,_verbose=None): | ||
if _verbose != None: | ||
try: | ||
headers = { | ||
"Accept": "application/json" | ||
} | ||
leakedpassurl = "https://scylla.sh/search?q=email:" | ||
u = (leakedpassurl+mail) | ||
response = requests.get(u,timeout=5,headers=headers) | ||
html = response.content | ||
lp = json.loads(html) | ||
res = requests.get(f"https://scylla.sh/search?q=email:{mail}&size=50&start=0", headers={'Accept': 'application/json'}).json() | ||
table = PrettyTable(["Domain","Email",f"{bcolors.FAIL}Password{bcolors.ENDC}"]) | ||
for s in range(len(lp)): | ||
table.add_row([lp[s]["fields"]["domain"],lp[s]["fields"]["email"],lp[s]["fields"]["password"]]) | ||
print(table) | ||
except: | ||
if len(res): | ||
for s in res: | ||
table.add_row([s["fields"]["domain"],s["fields"]["email"],s["fields"].get("password") or s["fields"].get("passhash") or "No Pass Data"]) | ||
print(table) | ||
else: | ||
print(f"{bcolors.FAIL}No leaked accounts found!{bcolors.ENDC}") | ||
except Exception as e: | ||
print(e) | ||
print(f"{bcolors.FAIL}Leaked DB Connection Error!{bcolors.ENDC}") |