yongboy / bindp Goto Github PK
View Code? Open in Web Editor NEWBinding specific IP and Port fro Linux Running Application
Binding specific IP and Port fro Linux Running Application
Bind wrapper assume AF_INET address family, here:
lsk_in = (struct sockaddr_in *)sk;
If given socket is something different (like AF_UNIX), this may lead to various errors, from bind syscall failures (invalid address value in sockaddr structure), to memory corruption (writing outside of structure), with potentially some security implications.
I have been testing a similar lib called libttu, but it's old and a little buggy with IPv6 and Unix Sockets together.
This is my suggestion.
ERROR: ld.so: object '/usr/lib/libindp.so' from LD_PRELOAD cannot be preloaded (cannot dynamically load position-independent executable): ignored.
This is happening since Debian bullseye
.
Found this, same error message for a different library:
gcc -nostartfiles -fpic -shared bindp.c -o libindp.so -ldl -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -fPIE -pie -Wl,-z,relro -Wl,-z,now
/usr/bin/ld.bfd.real: warning: cannot find entry symbol _start; defaulting to 0000000000000660
checksec --file libindp.so
RELRO STACK CANARY NX PIE RPATH RUNPATH FILE
Full RELRO No canary found NX enabled PIE enabled No RPATH No RUNPATH libindp.so
在readme中,应该是make all
编译
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.