示例#1
0
def main():
    global url
    global action_url
    global port
    global user_agent
    global html_file
    global start

    tests_pyver()
    tests_platform()
    parser = optparse.OptionParser()

    parser.add_option("-q",
                      "--quiet",
                      dest="quiet_mode_opt",
                      action="store_true",
                      default=False,
                      help="Runs without displaying the banner.")
    parser.add_option("-u",
                      "--url",
                      dest="url",
                      help="The webpage URL.",
                      default=None)
    parser.add_option("-a",
                      "--action-url",
                      dest="action_url",
                      help="The action_url for the data.",
                      default=None)
    parser.add_option("-p",
                      "--port",
                      dest="port",
                      help="The port weeman server will listen.",
                      default=8080)
    parser.add_option("-U",
                      "--user-agent",
                      dest="user_agent",
                      help="User-Agent for the HTTP request.",
                      default=usera)
    parser.add_option("-f",
                      "--html-file",
                      dest="html_file",
                      help="HTML file to load, instead of URL.",
                      default=None)
    parser.add_option("-s",
                      "--start",
                      dest="start",
                      action="store_true",
                      help="Start weeman server.")

    options, r = parser.parse_args()

    if options.start:
        from core.shell import shell_noint
        shell_noint(options)
    else:
        from core.shell import shell
        shell()
示例#2
0
文件: weeman.py 项目: ABMAM/WeemanV5
def main():
    tests_pyver()
    tests_platform()
    parser = optparse.OptionParser()
    parser.add_option("-q", "--quiet", dest="quiet_mode_opt", action="store_true", default=False, help="Runs without displaying the banner.")
    parser.add_option("-p", "--profile", dest="profile", help="Load weeman profile.")
    options,r = parser.parse_args()

    if options.profile:
        from core.shell import shell_noint
        shell_noint(options.profile)
    else:
        from core.shell import shell
        shell()
示例#3
0
文件: weeman.py 项目: 0xa-cc/weeman
def main():
    tests_pyver()
    tests_platform()
    parser = optparse.OptionParser()
    parser.add_option("-q", "--quiet", dest="quiet_mode_opt", action="store_true", default=False, help="Runs without displaying the banner.")
    parser.add_option("-p", "--profile", dest="profile", help="Load weeman profile.")
    options,r = parser.parse_args()

    if options.profile:
        from core.shell import shell_noint
        shell_noint(options.profile)
    else:
        from core.shell import shell
        shell()
示例#4
0
def main():
    tests_pyver()
    tests_platform()
    parser = optparse.OptionParser()
    parser.add_option("-q", "--quiet",      dest="quiet_mode_opt", action="store_true", default=False, help="Runs without displaying the banner.")
    parser.add_option("-u", "--url",        dest="url",        help="The webpage URL.", default=None)
    parser.add_option("-a", "--action-url", dest="action_url", help="The action_url for the data.", default=None)
    parser.add_option("-p", "--port",       dest="port",       help="The port weeman server will listen.", default=8080)
    parser.add_option("-U", "--user-agent", dest="user_agent", help="User-Agent for the HTTP request.", default=usera)
    parser.add_option("-f", "--html-file",  dest="html_file",  help="HTML file to load, instead of URL.", default=None)
    parser.add_option("-s", "--start",      dest="start",      action="store_true", help="Start weeman server.")
    options,r = parser.parse_args()

    if options.start:
        from core.shell import shell_noint
        shell_noint(options)
    else:
        from core.shell import shell
        shell()