示例#1
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']
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']
示例#3
0
文件: laZagne.py 项目: xl7dev/LaZagne
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"]