Beispiel #1
0
    def clean_artifacts(self, interactive=True):
        """
        Cleans out the payload source/compiled/handler folders.
        """

        # prompt for confirmation if we're in the interactive menu
        if interactive:
            choice = input("\n [>] Are you sure you want to clean payload folders? [y/N] ").strip().lower()

            if choice.startswith('y'):
                helpers.clean_payloads()

                choice = input("\n [>] Folders cleaned, press any enter to return to the main menu.")

            else:
                print(helpers.color("[*] You did not enter yes, not cleaning payloads!", warning=True))

        else:
            print("\n [*] Cleaning %s" % (settings.PAYLOAD_SOURCE_PATH))
            os.system('rm -f %s/*.*' % (settings.PAYLOAD_SOURCE_PATH))

            print(" [*] Cleaning %s" % (settings.PAYLOAD_COMPILED_PATH))
            os.system('rm -f %s/*.exe' % (settings.PAYLOAD_COMPILED_PATH))

            print(" [*] Cleaning %s" % (settings.HANDLER_PATH))
            os.system('rm -f %s/*.rc' % (settings.HANDLER_PATH))

            print(" [*] cleaning %s" % (settings.HASH_LIST))
            os.system('rm -f %s' % (settings.HASH_LIST))
            os.system('touch ' + settings.HASH_LIST)

            print("\n [*] Folders cleaned\n")
        return
Beispiel #2
0
    def clean_artifacts(self, interactive=True):
        """
        Cleans out the payload source/compiled/handler folders.
        """

        # prompt for confirmation if we're in the interactive menu
        if interactive:
            choice = input("\n [>] Are you sure you want to clean payload folders? [y/N] ").strip().lower()

            if choice.startswith('y'):
                helpers.clean_payloads()

                choice = input("\n [>] Folders cleaned, press any enter to return to the main menu.")

            else:
                print(helpers.color("[*] You did not enter yes, not cleaning payloads!", warning=True))

        else:
            print("\n [*] Cleaning %s" % (settings.PAYLOAD_SOURCE_PATH))
            os.system('rm -f %s/*.*' % (settings.PAYLOAD_SOURCE_PATH))

            print(" [*] Cleaning %s" % (settings.PAYLOAD_COMPILED_PATH))
            os.system('rm -f %s/*.exe' % (settings.PAYLOAD_COMPILED_PATH))

            print(" [*] Cleaning %s" % (settings.HANDLER_PATH))
            os.system('rm -f %s/*.rc' % (settings.HANDLER_PATH))

            print(" [*] cleaning %s" % (settings.HASH_LIST))
            os.system('rm -f %s' % (settings.HASH_LIST))
            os.system('touch ' + settings.HASH_LIST)

            print("\n [*] Folders cleaned\n")
        return
Beispiel #3
0
        messages.title_screen()
        sys.exit()

    if args.update:
        the_conductor.update_veil()
        sys.exit()

    if args.setup:
        the_conductor.setup_veil()
        sys.exit()

    if args.config:
        the_conductor.config_veil()
        sys.exit()

    if args.list_tools:
        the_conductor.list_tools()
        sys.exit()

    if args.clean:
        helpers.clean_payloads()
        sys.exit()

    if not args.tool:
        the_conductor.main_menu()
        sys.exit()

    # This should hit if trying to use the CLI
    else:
        the_conductor.command_line_use()
Beispiel #4
0
        sys.exit()

    # --setup
    if args.setup:
        the_conductor.setup_veil()
        sys.exit()

    # --config
    if args.config:
        the_conductor.config_veil()
        sys.exit()

    # --list-tools
    if args.list_tools:
        the_conductor.list_tools()
        sys.exit()

    # --clean
    if args.clean:
        helpers.clean_payloads()
        sys.exit()

    # Anything else that isn't defined
    if not args.tool:
        the_conductor.main_menu()
        sys.exit()

    # This should hit if trying to use the CLI
    else:
        the_conductor.command_line_use()