No more nonsense!
- Tools used
1.ie browser (version 9 or above)
2.httpwatch (both Chinese and English are available)
3.js debugging tools
Target website: http://xz.189.cn/sso/LoginServlet Telecom 189 login
-
Packet capture:
-
Clear the website’s cookies and cache before capturing packets.

-
Turn on the packet capture tool before opening the page (otherwise the encrypted js will not be captured)
-
Analyze packet capture data:
-
IE’s F12 developer tools are used here.
-
Continue to trace the function called encryptedString for encryption

4.encryptedString We also need to know what the two parameters of this function are and continue to look for the key.
-
Then I have enough parameters for encryption. The next step is debugging. Someone here will ask, aren’t there two parameters? What about the other s? Through the function, we know that s is the pwd that encrypts the password. By calling the function if, we can know that pwd is our password passWord.
-
Next, copy the calling function and debug it in the developer tools first. It requires two parameters: key and s.

-
There is no problem debugging in IE, then debug it in the js debugging tool.
-
Copy the secret js and key of 3 RSAs and call the bodyRSA() function. The parameter is the password. We found that it is an object and there is no way to call it directly. If you continue to call it, the tool will hang.

-
Here is the difficulty of RSA. It needs to be rewritten, otherwise our Yi language will not be able to call it.
-
Copy the rewritten function to the debugging tool as before, or call the bodyrsa() function

Finally found that we succeeded

Because I don’t have a telecommunications phone number, I can’t write a complete cookie operation login. Looking forward to the next issue!





