In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "how to use the pre-processor to encrypt data transmission in Jmeter", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use the pre-processor to encrypt data transmission in Jmeter" this article.
In the actual website test, the frontend encrypts the user name and password, as shown below:
Here is the encrypted transmission of the login password. So what is our way of solving the problem?
First, how is this parameter encrypted? Which file do you rely on?
Second, how is it called and which method is used?
Third, is it solved that I use the same encryption method to encrypt the parameters and pass them to the parameters?
Let's first solve the first two problems and find ways to encrypt and rely on packages. We use F12 to find the login request event:
Then at this time, we need to go through the registration process at the front end and check it through F12 Health. Obviously, the login event is in login.js, and we open this file.
Search for the login method and locate it, as shown below:
This piece of code is the method of encryption.
Which encryption dependent package is found? When we read the following encryption method, we will find that:
Let's go to souse to see the dependency package:
Isn't that a coincidence? Click to view, the file is encrypted, we put it into the tool to beautify, all string loops, and so on, this is obviously the encrypted JS file. OK, click download, or copy it directly through the file view, save the file and put it in the bin directory of jmeter. As shown in the figure:
Here is the encrypted js file I downloaded through my browser:
We then copy out the encrypted method code and put it on the preprocessor of jmeter. As shown in the figure:
Note here that usually our preprocessor runs java code, but now it's JS code, which requires us to use JSR223 preprocessor. At the same time, choose JS language and pass the encrypted string to a variable. As shown in the figure:
The above is all the contents of the article "how to use the pre-processor to encrypt data transfer in Jmeter". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.