All Downloads are FREE. Search and download functionalities are using the official Maven repository.

extractor.Main Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.0.0
Show newest version
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