Example #1
0
def output():
    if args['write'] == True:
        constant.output = 'txt'
        if not os.path.exists(constant.folder_name):
            os.makedirs(constant.folder_name)
            write_header()
    del args['write']
Example #2
0
def output():
    if args["write"] == True:
        constant.output = "txt"
        if not os.path.exists(constant.folder_name):
            os.makedirs(constant.folder_name)
            write_header()
    del args["write"]
Example #3
0
def output():
	if args['write']:
		constant.output = 'txt'

		if not os.path.exists(constant.folder_name):
			os.makedirs(constant.folder_name)

			write_header()
	del args['write']
Example #4
0
def output():
	if args['write_normal']:
		constant.output = 'txt'
	
	if args['write_json']:
		constant.output = 'json'

	if args['write_all']:
		constant.output = 'all'

	if constant.output:
		if not os.path.exists(constant.folder_name):
			os.makedirs(constant.folder_name)
			# constant.file_name_results = 'credentials' # let the choice of the name to the user
		
		if constant.output != 'json':
			write_header()

	# Remove all unecessary variables
	del args['write_normal']
	del args['write_json']
	del args['write_all']