Created
May 3, 2023 06:26
-
-
Save shantur/b1a9d9de83b9bc2f6410b76a1831a033 to your computer and use it in GitHub Desktop.
Charles ReWrite rules for hacking and enabling admin mode on Three 4G+ Hub
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
<?xml version='1.0' encoding='UTF-8' ?> | |
<?charles serialisation-version='2.0' ?> | |
<rewriteSet-array> | |
<rewriteSet> | |
<active>true</active> | |
<name>Three 4G+ Hub - Admin Mode</name> | |
<hosts> | |
<locationPatterns> | |
<locationMatch> | |
<location> | |
<protocol>http</protocol> | |
<host>192.168.1.254</host> | |
<port>80</port> | |
<path>data/user_data.json</path> | |
<query>*</query> | |
</location> | |
<enabled>true</enabled> | |
</locationMatch> | |
</locationPatterns> | |
</hosts> | |
<rules> | |
<rewriteRule> | |
<active>true</active> | |
<ruleType>7</ruleType> | |
<matchValue>enduser</matchValue> | |
<matchHeaderRegex>false</matchHeaderRegex> | |
<matchValueRegex>false</matchValueRegex> | |
<matchRequest>false</matchRequest> | |
<matchResponse>true</matchResponse> | |
<newValue>admin</newValue> | |
<newHeaderRegex>false</newHeaderRegex> | |
<newValueRegex>false</newValueRegex> | |
<matchWholeValue>false</matchWholeValue> | |
<caseSensitive>false</caseSensitive> | |
<replaceType>2</replaceType> | |
</rewriteRule> | |
<rewriteRule> | |
<active>true</active> | |
<ruleType>7</ruleType> | |
<matchValue>"0"</matchValue> | |
<matchHeaderRegex>false</matchHeaderRegex> | |
<matchValueRegex>false</matchValueRegex> | |
<matchRequest>false</matchRequest> | |
<matchResponse>true</matchResponse> | |
<newValue>"1"</newValue> | |
<newHeaderRegex>false</newHeaderRegex> | |
<newValueRegex>false</newValueRegex> | |
<matchWholeValue>false</matchWholeValue> | |
<caseSensitive>false</caseSensitive> | |
<replaceType>2</replaceType> | |
</rewriteRule> | |
</rules> | |
</rewriteSet> | |
<rewriteSet> | |
<active>true</active> | |
<name>Three 4G+ Hub - Disable Wizard</name> | |
<hosts> | |
<locationPatterns> | |
<locationMatch> | |
<location> | |
<protocol>http</protocol> | |
<host>192.168.1.254</host> | |
<port>80</port> | |
<path>data/user_lang.json</path> | |
<query>*</query> | |
</location> | |
<enabled>true</enabled> | |
</locationMatch> | |
</locationPatterns> | |
</hosts> | |
<rules> | |
<rewriteRule> | |
<active>true</active> | |
<ruleType>7</ruleType> | |
<matchValue>"jump_to_wizard": "0"</matchValue> | |
<matchHeaderRegex>false</matchHeaderRegex> | |
<matchValueRegex>false</matchValueRegex> | |
<matchRequest>false</matchRequest> | |
<matchResponse>true</matchResponse> | |
<newValue>"jump_to_wizard": "1"</newValue> | |
<newHeaderRegex>false</newHeaderRegex> | |
<newValueRegex>false</newValueRegex> | |
<matchWholeValue>false</matchWholeValue> | |
<caseSensitive>false</caseSensitive> | |
<replaceType>2</replaceType> | |
</rewriteRule> | |
</rules> | |
</rewriteSet> | |
</rewriteSet-array> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment