Closed stepen closed 4 years ago
UPDATE My Bad. I think this is not an issue after all. Looks like my compiling is wrong. The problem is caused by a pre-installed version (4.0) of libtins (obtained with 'apt-get install libtins-dev'). I have the v/4.0 include files in my path. Unfortunately, they are being used instead of the one in the 4.1/4.3 release. The compile will work, but something wicked will be built for versions 4.2, and 4.3.
My compile command should have been (if .h files are in '/home/pi/libtins_4.X/include')
g++ -I. -I/home/pi/libtins_4.X/include -std=c++11 -Wall -O3 -g3 -c -fmessage-length=0 ip_decryptor_test1.cpp
Also, I should probably have baked the lib-path (rpath) into the ELF during linking:
g++ -o ip_decryptor_test1 -Wl,-rpath,/home/pi/libtins_4.X /home/pi/libtins_4.X/libtins.so ip_decryptor_test1.o -lpthread -ldl -lssl -lcrypto
First, thanks for a very useful library. However, I do experience a crash similar to what was explained in 'crash application #329', but not on windows. I'm running Linux on RaspberryPi4B / 4GB, OS ver 'buster'.
When I run the following code (essentially the example-code for a WPA2 decryptor).
I get:
It starts fine, but immediately crashes/seg-faults when the
pdu.rfind_pdu<Dot11Data>()
is executed. Strangely this only occurs when linking with LIBTINS 4.3, 4.2, but it works just fine when linking with 4.1 ??Notes:
I build the LIBTINS w: cmake ../ -DLIBTINS_ENABLE_CXX11=1 NB! The build did contain warnings, but all tests passed.
I compile and link the application like this:
I run the application like:
su root -c "export LD_LIBRARY_PATH=/home/pi/libtins_4.3; /home/pi/git/sectool-prototype/box/build/ip_decryptor_test1"
A gdb backtrace gives me:
Does this mean anything to you? Is it a bug or am I doing something wrong here? (wouldn't be the first - and probably not the last).
Thanks in advance stepen