Exemplo n.º 1
0
def DOWNLOAD_TEST(domain,method,usecase):
        download_file = open(usecase)
        file_content_lines = download_file.readlines()
        download_file.close()
        i = 0
	logging_file = logging("result/download_result.txt")
        for line in file_content_lines:
                info = line.strip()
                i+=1
                if info != "":
                        check_download_usecase(info,domain,method,i,logging_file)
                #        time.sleep(5)
	logging_file.close()
Exemplo n.º 2
0
def COMMANDI_TEST(domain, method, usecase):
    commandi_file = open(usecase)
    file_content_lines = commandi_file.readlines()
    commandi_file.close()
    i = 0
    logging_file = logging("result/commandi_result.txt")
    for line in file_content_lines:
        info = line.strip()
        i += 1
        if info != "":
            check_commandi_usecase(info, domain, method, i, logging_file)
            #time.sleep(5)
    logging_file.close()
Exemplo n.º 3
0
def UPLOAD_EXT_TEST(domain,method,usecase):
	upload_file = open(usecase)
	file_content_lines = upload_file.readlines()
	upload_file.close()
	i = 0
	logging_file = logging("result/upload_ext_result.txt")
	for line in file_content_lines:
		info = line.strip()
		i+=1
		if info != "":
			check_upload_usecase(info,domain,method,i,logging_file)
			#time.sleep(5)
	logging_file.close()
Exemplo n.º 4
0
def XSS_TEST(domain, method, usecase):
    xss_file = open(usecase)
    file_content_lines = xss_file.readlines()
    xss_file.close()
    i = 0
    logging_file = logging("result/xss_result.txt")
    for line in file_content_lines:
        info = line.strip()
        i += 1
        if info != "":
            check_xss_usecase(info, domain, method, i, logging_file)
#time.sleep(5)
    logging_file.close()
Exemplo n.º 5
0
def SPIDER_TEST(domain,method,usecase):
	spider_file = open(usecase)
	file_content_lines = spider_file.readlines()
	spider_file.close()
	i = 0
	logging_file = logging("result/spider_result.txt")
	for line in file_content_lines:
		info = line.strip()
		i+=1
		if info != "":
			check_spider_usecase(info,domain,method,i,logging_file)
		#	time.sleep(5)
	logging_file.close()
Exemplo n.º 6
0
def SQLI_TEST(domain, method, usecase):
    sqli_file = open(usecase)
    file_content_lines = sqli_file.readlines()
    sqli_file.close()
    i = 0
    method = method
    logging_file = logging("result/sqli_result.txt")
    for line in file_content_lines:
        info = line.strip()
        i += 1
        if info != "":
            check_sqli_usecase(info, domain, method, i, logging_file)
            #time.sleep(5)
    logging_file.close()
Exemplo n.º 7
0
def UPLOAD_CONTENT_TEST(domain,method,usecase):
#	upload_file = open(usecase)
#	file_content_lines = upload_file.readlines()
#	upload_file.close()
	global i
	oldpath = usecase
	filelist = os.listdir(oldpath)
	logging_file = logging("result/upload_content_result.txt")
	for name in filelist:
		newpath = os.path.join(oldpath,name)
		if os.path.isdir(newpath):
			usecase = newpath
			UPLOAD_CONTENT_TEST(domain,method,usecase)
			usecase = oldpath
		else:
			i = i + 1
			check_upload_usecase(newpath,domain,method,i,logging_file)
			#time.sleep(5)
	logging_file.close()