AutOSINT.py
def check_arguments(self):
        """check local dirs for reports, apikey and database"""
        #require at least one argument
        if not (self.args.domain):
            print('[-] No OSINT reference provided, add domain(s) with -d\n')
            parser.print_help()
            sys.exit(0)

        #check to see if an ip or domain name was entered
        if self.args.domain is not None:
            for d in self.args.domain:
                self.lookup_list = self.args.domain
                for l in self.lookup_list:
                    if not os.path.exists(self.report_directory+l):
                        os.makedirs(self.report_directory+l)

        if self.args.verbose is True:
            print ('[+] Lookup Values: '+', '.join(self.lookup_list))

        #check for a supplied client name and exit if none provided
        if self.args.client is None:
            print('\n[!] Client name required, please provide with -c <Clientname>\n')
            parser.print_help()
            sys.exit(0)
        else:
            #strip out specials in client name
            self.client_name = re.sub('\W+', ' ', self.args.client).lower()
check local dirs for reports, apikey and database
check local dirs for reports, apikey and database
check local dirs for reports apikey and database
def check_arguments(self):
        if not (self.args.domain):
            print('[-] No OSINT reference provided, add domain(s) with -d\n')
            parser.print_help()
            sys.exit(0)
        if self.args.domain is not None:
            for d in self.args.domain:
                self.lookup_list = self.args.domain
                for l in self.lookup_list:
                    if not os.path.exists(self.report_directory+l):
                        os.makedirs(self.report_directory+l)
        if self.args.verbose is True:
            print ('[+] Lookup Values: '+', '.join(self.lookup_list))
        if self.args.client is None:
            print('\n[!] Client name required, please provide with -c <Clientname>\n')
            parser.print_help()
            sys.exit(0)
        else:
            self.client_name = re.sub('\W+', ' ', self.args.client).lower()
def check_arguments ( self ) : if not ( self . args . domain ) : print ( '[-] No OSINT reference provided, add domain(s) with -d\n' ) parser . print_help ( ) sys . exit ( 0 ) if self . args . domain is not None : for d in self . args . domain : self . lookup_list = self . args . domain for l in self . lookup_list : if not os . path . exists ( self . report_directory + l ) : os . makedirs ( self . report_directory + l ) if self . args . verbose is True : print ( '[+] Lookup Values: ' + ', ' . join ( self . lookup_list ) ) if self . args . client is None : print ( '\n[!] Client name required, please provide with -c <Clientname>\n' ) parser . print_help ( ) sys . exit ( 0 ) else : self . client_name = re . sub ( '\W+' , ' ' , self . args . client ) . lower ( )
check local dirs for reports, apikey and database
check local dirs for reports apikey and database
"""check local dirs for reports, apikey and database""" #require at least one argument #check to see if an ip or domain name was entered #check for a supplied client name and exit if none provided #strip out specials in client name
self