fix:key漏洞
This commit is contained in:
@@ -58,7 +58,7 @@ public class Test4Jemter extends AbstractJavaSamplerClient {
|
||||
Arguments arguments = new Arguments();
|
||||
arguments.addArgument("SM2dn", "C=CN,ST=zz,L=zz,O=zzz,CN=zzzzz");
|
||||
arguments.addArgument("RSAdn", "C=cn,O=CFCA TEST CA,OU=NCS2,OU=Enterprises,CN=041@Z402451000010@ShanDong@00000001");
|
||||
arguments.addArgument("orgData", "12345678");
|
||||
arguments.addArgument("orgData", "null");
|
||||
arguments.addArgument("ip", "172.1.41.139");
|
||||
arguments.addArgument("ip2", "172.1.41.96");
|
||||
arguments.addArgument("port", "8889");
|
||||
@@ -135,7 +135,11 @@ public class Test4Jemter extends AbstractJavaSamplerClient {
|
||||
sr.sampleStart();
|
||||
SydUtils sydUtils = null;
|
||||
try {
|
||||
orgData = oData.getBytes(); //SM2裸签
|
||||
if ("null".equals(oData)) {
|
||||
orgData = null;
|
||||
} else {
|
||||
orgData = oData.getBytes(); //SM2裸签
|
||||
}
|
||||
sydUtils = new SydUtils(ip, ip2, port, timeout);
|
||||
// orgData = new byte[dataLength];
|
||||
//执行业务逻辑
|
||||
|
||||
@@ -9,7 +9,7 @@ import racal.sunyard.main.SydApi4j;
|
||||
|
||||
public class SYMEnDeLongData {
|
||||
private SydApi4j api;
|
||||
private String key = "";
|
||||
private String sykey = "";
|
||||
private String keyValue = "";
|
||||
private int keyType = 0;
|
||||
private int inType = 0;
|
||||
@@ -95,11 +95,11 @@ public class SYMEnDeLongData {
|
||||
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
return sykey;
|
||||
}
|
||||
|
||||
public SYMEnDeLongData setKey(String key) {
|
||||
this.key = key;
|
||||
public SYMEnDeLongData setKey(String sykey) {
|
||||
this.sykey = sykey;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user