Projects STRLCPY mosint Commits 843e2ac2
🤬
  • ■ ■ ■ ■ ■ ■
    modules/Psbdmp.py
    skipped 4 lines
    5 5  def Psbdmp(mail,_verbose=None):
    6 6   if _verbose != None:
    7 7   try:
    8  - headers = {
    9  - "Accept": "application/json"
    10  - }
    11  - print(f"{bcolors.WARNING} -- Scanning Pastebin Dumps...{bcolors.ENDC}")
    12  - print("")
    13  - psbdmpurl = "https://psbdmp.ws/api/search/"
    14  - u = (psbdmpurl+mail)
    15  - response = requests.get(u,headers=headers)
    16  - html = response.content
    17  - lp = json.loads(html)
    18  - for i in lp['data']:
    19  - print(f"{bcolors.OKGREEN}|-- {bcolors.ENDC}"+"https://pastebin.com/"+i['id'])
     8 + print(f"{bcolors.WARNING} -- Scanning Pastebin Dumps...{bcolors.ENDC}\n")
     9 + res = requests.get(f"https://psbdmp.ws/api/search/{mail}",headers={ "Accept": "application/json" }).json().get('data') or []
     10 + if len(res):
     11 + for i in res:
     12 + print(f"{bcolors.OKGREEN}|-- {bcolors.ENDC}"+"https://pastebin.com/"+i['id'])
     13 + else:
     14 + print(f"{bcolors.FAIL}No psbdump records found!{bcolors.ENDC}")
    20 15   except:
    21  - print(f"{bcolors.FAIL}Dump not found!{bcolors.ENDC}")
     16 + print(f"{bcolors.FAIL}Psbdump Error!{bcolors.ENDC}")
    22 17   
Please wait...
Page is in error, reload to recover