skip420

Deeds_2_Your_Mobile

Nov 22nd, 2020
658
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import argparse
  2. import sys
  3. from scanners.fraud import *
  4. from scanners.basicScan import libphonenumbers
  5. from scanners.numVerifyscan import numverifyScan
  6. import scanners.dork as dork
  7. import osint.fb as fb
  8. import osint.linkedin as linkedin
  9. import osint.twitter as twitter
  10. from logos import banner
  11. import time
  12.  
  13. __version__ = 'v1.0.2'
  14.  
  15. scanners = ["spider", "dork"]
  16.  
  17. yellow =  '\033[1;33m'
  18. blue =  '\033[1;32m'
  19. red =   '\033[1;31m'
  20. magenta = '\033[1;35m'
  21. darkwhite = '\033[0;37m'
  22.  
  23.  
  24. def get_parser():
  25.    
  26.     parser = argparse.ArgumentParser(description="DEADTRAP {}".format(__version__))
  27.    
  28.     parser.add_argument('-n', '--number', metavar='number', type=str,
  29.                     help='The phone number to scan (E164 or international format)')
  30.  
  31.     parser.add_argument('-i', '--input', metavar="input_file", type=argparse.FileType('r'),
  32.                     help='Phone number list to scan (one per line)')
  33.  
  34.     parser.add_argument('-v', '--verbose', action="store_true", help='Shows how the work is done in each step of the scanning process')
  35.  
  36.     parser.add_argument('-s', '--scanner', metavar="scanner", type=str,
  37.                     help='''The scanner to use [spider, dork]
  38.                    spider - scans each disposable number providing website's source code available on the dukduckgo frontpage to see if the number is available there (no proxy required)
  39.                    dork - uses google dork search results to find out if the number is there in a disposable number providing website available on the front page of duckduckgo (requires proxy)''')
  40.  
  41.     parser.add_argument('-o', '--osint', action='store_true',
  42.                     help='Use OSINT reconnaissance')
  43.  
  44.     parser.add_argument('-rep', '--reputation', action='store_true',
  45.                     help='Scan reputation of the phone number')
  46.  
  47.     parser.add_argument('-q', '--quite', action='store_true',
  48.                     help='Update the project')
  49.  
  50.     args = parser.parse_args()
  51.  
  52.     return parser
  53.  
  54.  
  55.  
  56. def main():
  57.  
  58.     parser = get_parser()
  59.     args = parser.parse_args()
  60.  
  61.     if not args.quite:
  62.         banner.main()
  63.  
  64.     if args.number:
  65.         libphonenumbers(args.number)
  66.         numverifyScan(args.number.replace("+", ""))
  67.  
  68.  
  69.     elif args.input:
  70.         for line in args.input.readlines():
  71.             libphonenumbers(line)
  72.             numverifyScan(line.replcae("+", ""))
  73.    
  74.     if args.verbose:
  75.         if args.scanner:
  76.             if args.scanner not in scanners:
  77.                 print(red + "[!] No such scanner found" + red)
  78.  
  79.             elif args.scanner == "dork":
  80.                 print(blue + "\n[*] Scanning for disposable numbers...\n" + blue)
  81.                 for i in dork.sites():
  82.                     dork.dorkv(args.number, i)
  83.             else:
  84.                 print(blue +"\n [*] Scanning for disposable numbers.... \n" + blue)
  85.                 for i in dork.sites():
  86.                     dork.spiderv(args.number, i)
  87.     elif args.scanner:
  88.         if args.scanner not in scanners:
  89.             print("[!] No such scanner found")
  90.  
  91.         elif args.scanner == "dork":
  92.             print(blue +"[*] Scanning for disposable numbers..."+ blue)
  93.             for i in dork.sites():
  94.                 dork.dork(args.number, i)
  95.             if len(dork.foundnumbers) > 0:
  96.                 print(blue +"[+] Found matching numbers on the following sites :" , ",".join(dork.foundnumbers) + blue)
  97.             else:
  98.                 print(red + "[!] No number was found on top disposable number providing websites" + red)
  99.         else:
  100.             print(blue + "\n[*] Scanning for disposable numbers..."+ blue)
  101.             for i in dork.sites():
  102.                 dork.spider(args.number, i)
  103.             if len(dork.foundnumbers) > 0:
  104.                 print(blue +"[+] Found matching numbers on the following sites :" , ",".join(dork.foundnumbers) + blue)
  105.             else:
  106.                 print("[!] No number was found on top disposable number providing websites")
  107.  
  108.     if args.osint:
  109.         print(blue + "\n[*] Scanning social media footprints....\n" + blue)
  110.         twitter.twitter(args.number)
  111.         time.sleep(5)
  112.         linkedin.linkedin(libphonenumbers.timezoneResult.split("/")[1])
  113.         time.sleep(5)
  114.         fb.is_valid(args.number)
  115.    
  116.     if args.reputation:
  117.         print(blue + "\n[*] Scanning for Reputations of the phonenumber...\n"+ blue)
  118.         spamcalls(args.number)
  119.         scamcallfighters(args.number)
  120.         urls(args.number, numverifyScan.data["country_code"].lower(), numverifyScan.data["local_format"])
  121.    
  122.     else:
  123.         parser.print_help()
  124.  
  125.  
  126. if __name__ == "__main__":
  127.     main()  
  128.  
  129.    
RAW Paste Data