示例#1
0
                            action="store_true",
                            help='Displays version and quits.')

        args = parser.parse_args()

        # Print version
        if args.version:
            messages.title()
            sys.exit()

        # Print main title
        messages.title()

        # instantiate the main controller object
        controller = controller.Controller(oneRun=False)

        # call the update functionality for Veil and then exit
        if args.update:
            controller.UpdateVeil(interactive=False)
            sys.exit()

        # use interactive menu if not arguments
        controller.MainMenu(args=args)

    # Catch ctrl + c interrupts from the user
    except KeyboardInterrupt:
        print helpers.color("\n\n [!] Exiting...\n", warning=True)

    except EOFError:
        print helpers.color("\n\n [!] Exiting...\n", warning=True)
示例#2
0
文件: Veil.py 项目: sigmaseven/Veil
            nargs='*',
            help='Options for the specified metasploit payload.')
        parser.add_argument('--custshell',
                            metavar="\\x00...",
                            help='Custom shellcode string to use.')
        args = parser.parse_args()

        # Print main title
        messages.title()

        # instantiate the main controller object
        controller = controller.Controller()

        # use interactive menu if a language isn't specified
        if not args.l:
            controller.MainMenu()
            sys.exit()

        # list languages available if "-l" is present but no language specified
        elif args.l == "list":
            controller.ListLangs()
            sys.exit()

        # if a language is specified but a payload isn't, list available
        # payload for that language
        elif args.p == "list" or not args.p:
            controller.ListPayloads(args.l)
            sys.exit()

        # pull out any required options from the command line and
        # build the proper dictionary so we can set the payload manually