def get_exploitable_vulns(exploit):
 try:
  vulns = exploit.get_exploitable_vulns()
 except BaseFrameworkException:
  print ('WARNING: The %r exploit has no get_exploitable_vulns method!' % exploit)
  vulns = []
 return vulns

def get_exploitable_vulns ( exploit ) : try : vulns = exploit . get_exploitable_vulns ( ) except BaseFrameworkException : print ( 'WARNING: The %r exploit has no get_exploitable_vulns method!' % exploit ) vulns = [ ] return vulns
returns the exploitable vulnerabilities .