Azure CLI 中的命令使用以下模式结构: az <service> <action> <parameters>
调试 | MitM az cli
使用参数 --debug 可以查看工具 az 发送的所有请求:
azaccountmanagement-grouplist--outputtable--debug
为了对工具进行MitM并手动检查所有发送的请求,您可以执行:
export ADAL_PYTHON_SSL_NO_VERIFY=1export AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1export HTTPS_PROXY="http://127.0.0.1:8080"export HTTP_PROXY="http://127.0.0.1:8080"# If this is not enough# Download the certificate from Burp and convert it into .pem format# And export the following env variableopensslx509-in~/Downloads/cacert.der-informDER-out~/Downloads/cacert.pem-outformPEMexport REQUESTS_CA_BUNDLE=/Users/user/Downloads/cacert.pem