예제 #1
0
파일: cis-esp.py 프로젝트: ccgcyber/CIS-ESP
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
예제 #2
0
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
예제 #3
0
파일: cis-esp.py 프로젝트: s4n7h0/CIS-ESP
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
예제 #4
0
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