Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Created December 20, 2022 14:37
Show Gist options
  • Save Alex4386/9771b8526bffc2b04cc0f5b2210183d2 to your computer and use it in GitHub Desktop.
Save Alex4386/9771b8526bffc2b04cc0f5b2210183d2 to your computer and use it in GitHub Desktop.
Enter debug mode of Huawei Modem
#!/bin/bash
[[ -z $TARGET_IP ]] && TARGET_IP="192.168.8.1"
curl -X POST http://$TARGET_IP/CGI \
-H "Content-Type: application/xml" \
-d '<?xml version="1.0" encoding="UTF-8" ?>
<api version="1.0">
<header>
<function>switchMode</function>
</header>
<body>
<request>
<switchType>1</switchType>
</request>
</body>
</api>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment