Sunday, January 11, 2015

PathTest for Kali Linux

You can read about how to use PathTest in the "PathTest on Windows" blog post. Here I explain how to get it working on Kali.

Download Pathtest to the tmp folder.
unzip Linux_32-bit.zip

root@kali-32:/tmp# unzip Linux_32-bit.zip
Archive:  Linux_32-bit.zip
   creating: Linux_32-bit/
  inflating: Linux_32-bit/pathtest
root@kali-32:/tmp# ls
Linux_32-bit

Run PathTest
root@kali-32:~/Linux_32-bit# ./pathtest -c 192.168.10.138

If you get an error:
"./pathtest: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory" 

it's because Kali's crypto lib is named libcrypto.so.1.0.0 but Pathtest is expecting libcrypto.so.4 so we need to create a link between them.

First run "locate" to find libcrypto:
root@kali-32:/tmp/Linux_32-bit# locate libcrypto
/usr/lib/libcrypto++.so.9
/usr/lib/libcrypto++.so.9.0.0
/usr/lib/libcryptopp.so.9
/usr/lib/i386-linux-gnu/libcrypto.so.1.0.0

Now we can create the Link:

root@kali-32:/tmp/Linux_32-bit# cd /usr/lib/i386-linux-gnu/
root@kali-32:/usr/lib/i386-linux-gnu# ln -s libcrypto.so.1.0.0 libssl.so.4
root@kali-32:/usr/lib/i386-linux-gnu# ln -s libcrypto.so.1.0.0 libcrypto.so.4
root@kali-32:/usr/lib/i386-linux-gnu# cd /
root@kali-32:/# cd /tmp
root@kali-32:/tmp# cd Linux_32-bit/
root@kali-32:/tmp/Linux_32-bit# ./pathtest -s
PathTest (TM) v.4.6.0 build 4639
Copyright (c) 2011, AppNeta Inc. All Rights Reserved.

Success!

No comments:

Post a Comment