extractor.Main Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of extract-ssl-secrets Show documentation
Show all versions of extract-ssl-secrets Show documentation
Decrypt HTTPS/SSL/TLS connections on-the-fly with Wireshark.
Extracts the shared master key used in secure connections (SSL & TLS)
for use with Wireshark. Works with connections established with the
(Java provided) javax.net.ssl.SSLSocket API.
package extractor;
import java.lang.instrument.Instrumentation;
public class Main {
private static final String DEFAULT_SECRETS_FILE = "ssl-master-secrets.txt";
public static void premain(String agentArgs, Instrumentation inst) {
String secretsFile;
if (agentArgs != null && !agentArgs.isEmpty()) {
secretsFile = agentArgs;
} else {
secretsFile = DEFAULT_SECRETS_FILE;
}
MasterSecretCallback.setSecretsFileName(secretsFile);
inst.addTransformer(new Transformer());
}
public static void agentmain(String agentArgs, Instrumentation inst) {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy