def main(): if output: handler = logging.FileHandler(output) handler.setLevel(logging.INFO) logger.addHandler(handler) logger.info('-----Start-----') if target: if extensive: logger.info('[*] Starting extensive ip lookup on '+target) else: logger.info('[*] Starting ip lookup on '+target) actions.host_inspect(target, extensive) logger.info('[*] Ip Lookup completed') if reverse and not extensive: logger.info('[*] Starting reverse ip lookup on '+target) actions.reverse(target, False) logger.info('[*] Reverse ip lookup completed') if reverse and extensive: logger.info('[*] Starting Extensive reverse ip lookup on '+target) logger.warning('[*] This feature shows all domains pointing on same server but with different ip') actions.reverse(target, True) logger.info('[*] Extensive reverse ip lookup completed') if google: logger.info('[*] Starting search on '+target) actions.search(target) logger.info('[*] Search completed') if output: logger.info('[+] File log written: ' + output) logger.info('-----End-----\n')
def main(): if output: handler = logging.FileHandler(output) handler.setLevel(logging.INFO) logger.addHandler(handler) logger.info('-----Start-----') if target and wordlist: if os.path.isfile(wordlist): msg = "File exist" logger.debug(msg) logger.info('[*] Starting dork scanner from'+ wordlist +' on '+ target) actions.scan_wordlist(target, wordlist) logger.info('[*] Scan completed') else: msg = "[-] ERROR: File not exist." logger.error(msg) sys.exit(1) else: logger.info('[*] Starting dork scanner on '+ target) actions.scan(target) logger.info('[*] Scan completed') if output: logger.info('[+] File log written: ' + output) logger.info('-----End-----\n')
def main(): if output: handler = logging.FileHandler(output) handler.setLevel(logging.INFO) logger.addHandler(handler) if name: logger.info('[*] Trying to resolve name: ' + name) actions.resolve(name) if output: logger.info('[+] File log written: ' + output)
def main(): if output: handler = logging.FileHandler(output) handler.setLevel(logging.INFO) logger.addHandler(handler) if name: logger.info('[*] Trying to resolve name: '+ name) actions.resolve(name) if output: logger.info('[+] File log written: ' + output)
try: ping.ping(_ip) except ping.PingException as _exc: logger.error(_exc) else: yield dlink.Dlink(_ip, **settings.__dict__) if __name__ == '__main__': logger.setLevel(settings.log_level) formatter = ColoredFormatter( fmt='%(asctime)s %(levelname)-8s %(message)s', datefmt='%Y-%m-%d %H:%M:%S' ) stdout_log = logging.StreamHandler(sys.stdout) stdout_log.setFormatter(formatter) logger.addHandler(stdout_log) args = docopt(__doc__) ip_addrs = args['<ip>'] if args['--input-file']: try: with open(args['--input-file'], 'r') as _f: ip_addrs = [ip.strip() for ip in _f.readlines()] except IOError as exc: logger.critical(exc) sys.exit(0) # проверка ip адресов not_valid_ip = False
try: ping.ping(_ip) except ping.PingException as _exc: logger.error(_exc) else: yield dlink.Dlink(_ip, **settings.__dict__) if __name__ == '__main__': logger.setLevel(settings.log_level) formatter = ColoredFormatter( fmt='%(asctime)s %(levelname)-8s %(message)s', datefmt='%Y-%m-%d %H:%M:%S') stdout_log = logging.StreamHandler(sys.stdout) stdout_log.setFormatter(formatter) logger.addHandler(stdout_log) args = docopt(__doc__) ip_addrs = args['<ip>'] if args['--input-file']: try: with open(args['--input-file'], 'r') as _f: ip_addrs = [ip.strip() for ip in _f.readlines()] except IOError as exc: logger.critical(exc) sys.exit(0) # проверка ip адресов not_valid_ip = False