inputHosts = args.hosts inputOUs = args.ous scanName = args.name tests = args.tests threads = args.threads run = args.run norun = args.norun currentPath = os.path.abspath(".") numThreads = 1 isStandalone = False #check if there are arguments #if no arguments, prompt gui if len(sys.argv) < 2: scanName, workPath, ldapPath, tests, numThreads = rasGUI.showGUI() #ldap path is required for domain version #if no ldap path, use standalone #if ldap path, use domain if not ldapPath and not inputHosts and not inputOUs: isStandalone = True #use user input for scan name if available, otherwise set to default if not scanName: scanName = "scan" #use user input for output directory if available, otherwise set to directory from which script is running if not workPath: workPath = currentPath
inputHosts = args.hosts inputOUs = args.ous scanName = args.name tests = args.tests threads = args.threads run = args.run norun = args.norun currentPath = os.path.abspath(".") numThreads = 1 isStandalone = False #check if there are arguments #if no arguments, prompt gui if len(sys.argv) < 2: scanName,workPath,ldapPath,tests,numThreads = rasGUI.showGUI() #ldap path is required for domain version #if no ldap path, use standalone #if ldap path, use domain if not ldapPath and not inputHosts and not inputOUs: isStandalone = True #use user input for scan name if available, otherwise set to default if not scanName: scanName = "scan" #use user input for output directory if available, otherwise set to directory from which script is running if not workPath: workPath = currentPath
threads = args.threads run = args.run norun = args.norun compressRes = 0 if args.compress: compressRes = 1 defPaths = [ ] currentPath = os.path.abspath(".") numThreads = 1 isStandalone = False #check if there are arguments #if no arguments, prompt gui if len(sys.argv) < 2: scanName,workPath,ldapPath,tests,numThreads,compressRes = rasGUI.showGUI() #ldap path is required for domain version #if no ldap path, use standalone #if ldap path, use domain if not ldapPath and not inputHosts and not inputOUs: isStandalone = True #use user input for scan name if available, otherwise set to default if not scanName: scanName = "scan" #use user input for output directory if available, otherwise set to directory from which script is running if not workPath: workPath = currentPath
threads = args.threads run = args.run norun = args.norun compressRes = 0 if args.compress: compressRes = 1 defPaths = [] currentPath = os.path.abspath(".") numThreads = 1 isStandalone = False #check if there are arguments #if no arguments, prompt gui if len(sys.argv) < 2: scanName, workPath, ldapPath, tests, numThreads, compressRes = rasGUI.showGUI( ) #ldap path is required for domain version #if no ldap path, use standalone #if ldap path, use domain if not ldapPath and not inputHosts and not inputOUs: isStandalone = True #use user input for scan name if available, otherwise set to default if not scanName: scanName = "scan" #use user input for output directory if available, otherwise set to directory from which script is running if not workPath: workPath = currentPath