简体   繁体   English

如何从Jmeter的Bean Shell中从RSA中提取密钥?

[英]How to Extract Key from RSA from Bean Shell in Jmeter?

Using the Bean Shell Sampler , i am getting the below output . 使用Bean Shell Sampler,我得到以下输出。

Sun RSA public key, 2048 bits modulus: Sun RSA公钥,2048位模数:

public exponent: 65537 公开指数:65537

I just need to extarct the Modulus value from the above ones. 我只需要从上面的值中提取Modulus值。 How can i achieve it using Regex Extractor in Jmeter ? 我如何在Jmeter中使用Regex Extractor实现它? Help is useful. 帮助很有用。

Consider upgrading to JMeter 4.0 , apart from many bug fixes and performance improvements you will have a brand new Boundary Extractor which makes extraction of everything between modulus: and public exponent easy as pie: 考虑升级到JMeter 4.0 ,除了许多错误修复和性能改进之外,您还将拥有一个全新的边界提取器 ,该提取可以轻松提取modulus:public exponent之间的所有内容:

JMeter边界提取器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM