ramok / ld_preload_hacks Goto Github PK
View Code? Open in Web Editor NEWUsefull LD_PRELOAD hacks for binary-only programs
Usefull LD_PRELOAD hacks for binary-only programs
This is a tiny helpers-workarounds for fixing bugs and/or adding new feature to programs available only in binary form. By using system linker feature LD_PRELOAD, it's possible intercepts various system calls which programs use to, and fixing wrong parameters, and/or calling additional system functions. hack_fix_reuseaddr/ Useful for programs which do not use SO_REUSEADDR for tcp sockets. As usual such programs has problems with restarting, and fail with error "Address already in use". This helper intercepts socket() and call additional setsockopt(..SO_REUSEADDR); Usage: $ LD_PRELOAD=/path/to/hack_fix_reuseaddr.so program hack_shift_sys_ports/ Some programs has hardcoded system IP ports (from 0 to 1023), and usually can be used by programs with root permissions. If you want to run some tests, but without root permissions on unprivileged ports, this helper will shift all system IP ports opened by program to unprivileged ports. By default ports shifted by 60000. For example your program open port 111, with this helper it's will be moved to 60111. Usage: $ LD_PRELOAD=/path/to/hack_shift_sys_ports.so program (c) [email protected] 2018 GPL https://github.com/ramok/ld_preload_hacks
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.