Skip to content

Instantly share code, notes, and snippets.

@cicloid
Last active November 12, 2025 19:39
Show Gist options
  • Select an option

  • Save cicloid/86e88bdb858fae82790f8e42c82ed565 to your computer and use it in GitHub Desktop.

Select an option

Save cicloid/86e88bdb858fae82790f8e42c82ed565 to your computer and use it in GitHub Desktop.

I have an encrypted modem configuration file (config.xml) and need to extract my PPPoE credentials.

Modem Model: ATW-622G (firmware V4.0.0.200690)

ISP/Provider: Telmex/Prodigy (Mexico)

PPPoE Username: [email protected]

Tasks:

  1. Analyze the config.xml file to identify encryption method
  2. Create a Python script using known plaintext attack (XOR encryption)
    • Use my PPPoE username as known plaintext
    • Try key lengths: 2, 4, 8, 16, 32 bytes
    • Test single-byte and multi-byte repeating keys
  3. Extract and save:
    • PPPoE credentials
    • WiFi password
    • Admin credentials
    • Network settings (VLAN, MTU, etc.)
  4. Document the script with:
    • Full explanation of XOR encryption and plaintext attacks
    • Usage instructions for others
    • Anonymize all PII (use placeholders like [email protected])
  5. Create README with setup/usage/troubleshooting instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment