extract-tls-secrets icon indicating copy to clipboard operation
extract-tls-secrets copied to clipboard

Cannot attach to the process

Open gresm opened this issue 3 years ago • 4 comments
trafficstars

When I try to run the command: java -jar extract-tls-secrets-4.0.0.jar <pid> /tmp/secrets.log I get the error: Failed to attach to java process <pid>. Cause: Agent JAR loaded but agent failed to initialize

gresm avatar May 16 '22 13:05 gresm

@gresm can you make sure you are using the same java distributions for both the target process and the extract-tls-secrets process. Also can you try with a JDK installation.

What OS and Java version are you using?

neykov avatar May 17 '22 14:05 neykov

Operationg system:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.10
Release:	21.10
Codename:	impish

Java version:

$ java --version
openjdk 11.0.15 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.21.10.1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.21.10.1, mixed mode, sharing)
$ java -version
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.21.10.1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.21.10.1, mixed mode, sharing)

gresm avatar May 18 '22 12:05 gresm

Version of the java used by the process

openjdk 11.0.14.1 2022-02-08
OpenJDK Runtime Environment JBR-11.0.14.1.1-2043.45-jcef (build 11.0.14.1+1-b2043.45)
OpenJDK 64-Bit Server VM JBR-11.0.14.1.1-2043.45-jcef (build 11.0.14.1+1-b2043.45, mixed mode)
openjdk version "11.0.14.1" 2022-02-08
OpenJDK Runtime Environment JBR-11.0.14.1.1-2043.45-jcef (build 11.0.14.1+1-b2043.45)
OpenJDK 64-Bit Server VM JBR-11.0.14.1.1-2043.45-jcef (build 11.0.14.1+1-b2043.45, mixed mode)

gresm avatar May 18 '22 12:05 gresm

It seems like the version that program uses is different, but after using the same version still failed...

gresm avatar May 18 '22 12:05 gresm