Libsdf 0.1 review
DownloadLibsdf library is a shared library which, when preloaded, will intercept calls to a GNU libc functions open() and open64(), and if th
|
|
Libsdf library is a shared library which, when preloaded, will intercept calls to a GNU libc functions open() and open64(), and if the first argoment of these functions is a remote file (http:// or ftp://), it will copy this file in a local path (< user >/.sdf) and it will runs the functions top of it.
With the /.sdfrc file, you can use the libsdf with a proxy.
The syntax for .sdfrc file, is:
---/home/bakunin/.sdfrc ---
# Important: proxy string MUST is PROTOCOL://...
proxy = "http://localhost"
# Port is optional. Default = 8080.
port = 8080
# Socks5 is optional. Default is false (http proxy).
socks5 = false
Requirements:
libconfuse
libcurl
Installation:
1. Run "make"
2. Run, as root, "make install"
3. echo "/usr/local/lib/libsdf.so" >> /etc/ld.so.preload
or
echo "export LD_PRELOAD=/usr/local/lib/libsdf.so" >> $home/.bash_profile
4. Logout && login.
Hacking:
compile the lib with -DDEBUG (CFLAGS inside the Makefile).
Libsdf 0.1 search tags