zardus / preeny

Some helpful preload libraries for pwning stuff.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[PATCH][SUGGESTION] Would you like to add setstdin to this set of libs

nataraj-hates-MS-for-stealing-github opened this issue · comments

Hi!
I've written a small lib that I need to substitute an STDIN I need via LD_PRELOAD.

I guess it worth adding to the preeny library set.

If you like it, I can file it as a pull request.

setstdin.tar.gz

setstdin.c is the library to include.
out.c is a main file to test it.

You should set PREENY_STDIN or PREENY_STDIN_FILENAME environment variables to set your own data to be substituted as STDIN

I would recommend to send a pull request instead of a .tar.gz
(read on the Internet for how to do it, its easy, fork, make your changes, then click "create pull request" in your fork)

I know how to make pull request. I decided to check, if you like the idea of such lib first. Before doing job with editing readme, changing Makefile etc...

BTW I've figured out that I had to add fgetc to this lib to properly suit my purposes, so I guess here I should also add fread too. So I will provide improved version later, when I do all of it.

Actually it is already commit.

Commits: e317826 1a81fd5 c9f5e6e