Created
December 20, 2022 14:37
-
-
Save Alex4386/9771b8526bffc2b04cc0f5b2210183d2 to your computer and use it in GitHub Desktop.
Enter debug mode of Huawei Modem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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