Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR in getModemStatus(): Probably because of an invalid or expired session token, router returned garbage HTML instead of JSON. Grab a new session token first. #1

Open
romain1985 opened this issue Sep 18, 2021 · 1 comment

Comments

@romain1985
Copy link

Hello,
My router versions are :

Model Name B2338-168
Hardware Version V01
Software Version B2338-168 (02/14/2020)
Modem Version 11.620.40.00.00

I tried the status_example.php script and I got this error :

We got a PUB key and OTP for login:
{"pubkey":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkmnaaXY/ImaH0qpl3+qm\nEUEEB8bqOU+8c3oVgn7mvnULmJMHRpvjNtHjZTt1DfMUEBTjrqV3pmccoLpIXjma\nvdJRKa7Am854aZCOV8yDxsJcm5Z4C9isU8mcbJQ54sT9/lQbC5LxzCtXhNq4SH7V\nD0uy6tHbsaXJ4Iho+ce1AssNWNJPZ2w4xFBfAMhz3blbJ+Np1hHfAL8aJJfb9XFE\n2XbEouSiBBNHlmOChQLpxoYZzVA3/prafiODlcWxfHVRAIkVTzl0QZmPb4zPnZ7O\nAXeFUpPkvkb+KI4ep8qfTHaJUIwQCS/l5IV44IMSPyo3+xbFJXRsnbXIRTfOHmNj\nqwIDAQAB\n-----END PUBLIC KEY-----\n","otp":"be8548a8"}
We got a CSRF token for login:
C9CdLlzj2sH8RrekF7hgVpxEV7Pchp5IJmKw02ht78AgthLOy6c3S5pV1jYsSGJp
PREPARING POST REQUEST:
Array
(
[action] => login
[page] => login.asp
[csrftoken] => C9CdLlzj2sH8RrekF7hgVpxEV7Pchp5IJmKw02ht78AgthLOy6c3S5pV1jYsSGJp
[user_lang] => en
[user_name] => aF6E67M0hEvXUorJQZNfitqjdY7nVB1w3R+VCe5sILyuqv1BFE2Ay5EaGieVvzAdzpcJUORXlRbOE4K5qrditNr+D/IVhkuK70GrmKwuIixwRlC+TrNSacsySo6yf8A++pll64qnb76LMQIHtiuBB6RuXIYD5X/g/PFyhwQd6ZOA9qgv4+Iu/gCuz4lOrzbhG3RzDN6/D53RL4KemGsrvYvDNh+/hkI97iX+hAMr15orR0hcgcw4SUdn7PJ0I9XvVuZhzCgHFGgpfvEkmbaaasBpIQ9w6mVheSef3eQrbJTGZMB7YzVCc3ynepdS9ka6xpmdqovjcHys5PQiiXmKwA==
[user_name_plaintext] =>
[user_passwd] => j0M5CrATrJDEm/SmJnoRuAnFipthzYt3xzsmWnot6CUiXtagkuDHnStCehZatExL3mCjwGWO712xXPrGohNjLXnjhBFOiCWJlsNaodaQJxpnpR5UuMge1t8pZPx9XJeCidXAmlMvJzJm3P0H1mUvxyM269KMPDCxLniKDPhaG7vFXebAlpRcV8c4Ro9c9IAPBVyw7D50Do+A60ezH2OJmhvaNM1qFDmqo4JmO0joEk+gF1cbYZ1W4jWF4qLHqOYKXXlHg7bBQagK71B/34B3yEMcbu8hWhiAW6T0KAFlE9g8WSjeVwzc5T8Irdd29ANR0XQfRy9YuHFsJGAj3Fkm6g==
[user_passwd_plaintext] =>
)
ERROR in getModemStatus(): Probably because of an invalid or expired session token, router returned garbage HTML instead of JSON. Grab a new session token first.

Can you help me to resolve this ?

Regards,
Romain

@romain1985
Copy link
Author

Hello,
I have the same problem after downgraded firmware from V100R001C00SPC230 to V100R001C00SPC134 :'(

Model Name B2338-168
Hardware Version V01
Software Version B2338-168 (08/22/2017)
Modem Version (Between 11.620.26.00.00 and 11.620.38.00.00, don't know exactly due to display bug)

Please help!

Regards,
Romain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant