DatajackProxy icon indicating copy to clipboard operation
DatajackProxy copied to clipboard

Linux - OpenSSL_SSL_write undefined

Open decidedlygray opened this issue 5 years ago • 1 comments

Hello,

I am trying to test out the DatajackProxy.py on a a Debian box. I have the frida installed, and even tried it with the version of frida that would have been relevant around the time this was pushed to GitHub 10 months ago (sudo pip3 install frida==12.6.11).

In one terminal I have a long-running wget process:

wget https://speed.hetzner.de/1GB.bin

Then in my other terminal I get this:

streetmeat@kali:/opt/DatajackProxy$ sudo python3 DatajackProxy.py -n wget
[*] Attaching to wget
[injectable-linuxOpenSSLAndSocketWrite] Could not find function 'SSL_write'
{'type': 'error', 'description': "ReferenceError: identifier 'functionPointer_OpenSSL_SSL_write' undefined", 'stack': "ReferenceError: identifier 'functionPointer_OpenSSL_SSL_write' undefined\n    at [anon] (../../../frida-gum/bindings/gumjs/duktape.c:81049)\n    at /script1.js:166", 'fileName': '/script1.js', 'lineNumber': 166, 'columnNumber': 1}

And no data is collected. Any idea why frida can't find the function pointer it needs? Using libssl version 1.1.1g-1

Thanks!

decidedlygray avatar May 21 '20 00:05 decidedlygray

I had the same problem. Fix for me:

  1. use this project instead: https://github.com/google/ssl_logger (shared the code base, unfortunately python2 code)
  2. then you still have an old version of frida: pip install frida==12.4.1
  3. works for me on Debian Jessie and an update-to-date Arch Linux

UPDATE: you can use this project too with frida==12.4.1

kmille avatar Nov 16 '20 18:11 kmille