azorult_sploit.py:错误:需要以下参数:target

时间:2020-04-02 19:17:14

标签: python parsing

这是我的代码

def get_args():
    parser = argparse.ArgumentParser(
        prog="azorult_sploit.py",
        add_help=False,
        formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=50),
        epilog= '''
        This script will exploit the SQL vulnerability in Azorult 3.3.1 Dashboard.
        ''')
    parser.add_argument("target", help="URL of index.php (ex: http://target.com/index.php)")
    parser.add_argument("-n", "--id_record", default="1", help="id of record to dump")
    parser.add_argument("-p", "--proxy", default="http://localhost:8080", help="Configure a proxy in the format http://127.0.0.1:8080/ (default = tor)")
    args = parser.parse_args()
    return args

这是错误:

usage: azorult_sploit.py [-n ID_RECORD] [-p PROXY] target
azorult_sploit.py: error: the following arguments are required: target

0 个答案:

没有答案