python - azorult_sploit.py:错误:需要以下参数:目标
问题描述
这是我的代码
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
解决方案
推荐阅读
- swift - 如何使用 Google Maps API 计算 ETA 时间 - Swift
- flutter - 响应式填充颤动
- npm - “npm install -g newman”命令不适用于在 Windows 中安装 newman
- shopify - 如何将 3PL 沙盒与 Shopify 沙盒连接
- mongodb - 如何在 mongodb 中使用 $lookup 和 $regex 搜索
- jmeter - 如何在 jmeter 中处理转义字符(反斜杠)
- php - 如何从我的服务器打印到客户端 Web 浏览器?ESCPOS-PHP
- android - 无法使用 editor.clear().commit() 清除我的 sharedPreferences;
- jquery - Mysql 表记录未使用更新查询更新
- java - 如何从 Jmeter 中的 json 文件准备多行