Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shantur/b1a9d9de83b9bc2f6410b76a1831a033 to your computer and use it in GitHub Desktop.
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
<?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>&quot;0&quot;</matchValue>
<matchHeaderRegex>false</matchHeaderRegex>
<matchValueRegex>false</matchValueRegex>
<matchRequest>false</matchRequest>
<matchResponse>true</matchResponse>
<newValue>&quot;1&quot;</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>&quot;jump_to_wizard&quot;: &quot;0&quot;</matchValue>
<matchHeaderRegex>false</matchHeaderRegex>
<matchValueRegex>false</matchValueRegex>
<matchRequest>false</matchRequest>
<matchResponse>true</matchResponse>
<newValue>&quot;jump_to_wizard&quot;: &quot;1&quot;</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