spotify-analyze icon indicating copy to clipboard operation
spotify-analyze copied to clipboard

Issue on Sierra

Open hdzidic opened this issue 7 years ago • 6 comments

Hi!

Getting this error when running the dump.sh command:

+ DYLD_INSERT_LIBRARIES=dump.dylib
+ /Applications/Spotify.app/Contents/MacOS/Spotify
dyld: could not load inserted library 'dump.dylib' because image not found

./dump.sh: line 3:  1242 Abort trap: 6           DYLD_INSERT_LIBRARIES=dump.dylib "$@"

Any ideas?

hdzidic avatar Sep 27 '17 13:09 hdzidic

Looks like you have to build the dylib first, but it's giving me an error. I'm on High Sierra btw.

Larrys-MacBook-Pro:dump chendragon$ gcc -shared dump.c -o dump.dylib Undefined symbols for architecture x86_64: "_pcap_write_header", referenced from: _patch_shn in dump-c1760b.o "_pcap_write_packet_header", referenced from: _my_shn_encrypt in dump-c1760b.o _my_shn_decrypt in dump-c1760b.o "_shn_decrypt", referenced from: _my_shn_decrypt in dump-c1760b.o "_shn_encrypt", referenced from: _my_shn_encrypt in dump-c1760b.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

larryqiann avatar Dec 08 '17 01:12 larryqiann

+1 for both of the comments above.

goodwordalchemy avatar Nov 12 '18 17:11 goodwordalchemy

@goodwordalchemy did you get this working?

This is what I get gcc -shared dump.c -o dump.dylib Undefined symbols for architecture x86_64: "_pcap_write_header", referenced from: _patch_shn in dump-5720e5.o "_pcap_write_packet_header", referenced from: _my_shn_encrypt in dump-5720e5.o _my_shn_decrypt in dump-5720e5.o "_shn_decrypt", referenced from: _my_shn_decrypt in dump-5720e5.o "_shn_encrypt", referenced from: _my_shn_encrypt in dump-5720e5.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Crypt-iQ avatar Nov 18 '18 13:11 Crypt-iQ

@Crypt-iQ I didn't get it working. I did find this though: https://github.com/mologie/macos-disable-library-validation. I didn't use it, because I don't want to screw up my computer, but at least it gives a hint as to why this tool doesn't work for me on a mac.

goodwordalchemy avatar Nov 20 '18 13:11 goodwordalchemy

I removed the code signature from the Spotify binary using codesign --remove-signature /Applications/Spotify.app/Contents/MacOS/Spotify. You should backup the binary in beforehand. I also signed dump.dylib, but I am not sure if this is necessary.

jannschu avatar Nov 21 '18 22:11 jannschu

if someone want to use this tool you need to run this to compile the lib gcc -Wall -Wextra -Wmissing-declarations -ldl -dynamiclib -o dump.dylib dump.c shn.c pcap.c

louis-genestier avatar Mar 17 '20 20:03 louis-genestier