def checks(sfile, logger):
 if (sfile['idkey'] == 'idkey'):
  logger.error('idkey has not been specified')
  return False
  if (os.pathi.isfile(sfile['idkey']) == False):
   logger.error('could not locate your IDKey')
   return False
 elif (sfile['lp'] == ''):
  logger.error('lp ip has not been specified')
  return False
 elif (sfile['implant'] == ''):
  logger.error('implant ip has not been specified')
  return False
 elif (sfile['sport'] == ''):
  logger.error('source port has not been specified')
  return False
 elif (sfile['dport'] == ''):
  logger.error('destination port had not been specified')
  return False
 elif (sfile['target'] == ''):
  logger.error('target ip has not been specified')
  return False
 elif (sfile['hostname'] == ''):
  logger.error('target hostname has not been specified')
  return False
 else:
  logger.debug('all checks have passed')
  return True

def checks ( sfile , logger ) : if ( sfile [ 'idkey' ] == 'idkey' ) : logger . error ( 'idkey has not been specified' ) return False if ( os . pathi . isfile ( sfile [ 'idkey' ] ) == False ) : logger . error ( 'could not locate your IDKey' ) return False elif ( sfile [ 'lp' ] == '' ) : logger . error ( 'lp ip has not been specified' ) return False elif ( sfile [ 'implant' ] == '' ) : logger . error ( 'implant ip has not been specified' ) return False elif ( sfile [ 'sport' ] == '' ) : logger . error ( 'source port has not been specified' ) return False elif ( sfile [ 'dport' ] == '' ) : logger . error ( 'destination port had not been specified' ) return False elif ( sfile [ 'target' ] == '' ) : logger . error ( 'target ip has not been specified' ) return False elif ( sfile [ 'hostname' ] == '' ) : logger . error ( 'target hostname has not been specified' ) return False else : logger . debug ( 'all checks have passed' ) return True
checks if pretty much everything is there .