{"id":13772423,"url":"https://github.com/jktr/arg-inject","last_synced_at":"2026-01-29T12:44:51.263Z","repository":{"id":144350017,"uuid":"182625671","full_name":"jktr/arg-inject","owner":"jktr","description":"add support for config files via LD_PRELOAD","archived":false,"fork":false,"pushed_at":"2019-04-22T05:00:24.000Z","size":4,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-17T07:34:36.709Z","etag":null,"topics":["command-line-arguments","ld-preload","shim"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jktr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-04-22T04:59:52.000Z","updated_at":"2022-08-09T11:01:01.000Z","dependencies_parsed_at":"2023-07-06T15:46:17.153Z","dependency_job_id":null,"html_url":"https://github.com/jktr/arg-inject","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jktr%2Farg-inject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jktr%2Farg-inject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jktr%2Farg-inject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jktr%2Farg-inject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jktr","download_url":"https://codeload.github.com/jktr/arg-inject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-arguments","ld-preload","shim"],"created_at":"2024-08-03T17:01:03.845Z","updated_at":"2026-01-29T12:44:51.231Z","avatar_url":"https://github.com/jktr.png","language":"C","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# Arg Inject\n\nHave you ever wanted to add config file support into\nbinary-only applications? Or maybe your application takes a password\nvia command line and you don't want it showing up in `ps`?\n\nEnter Arg Inject, a horrible bit of LD_PRELOAD trickery.\n\n## usage\n\nBuild the shared object via `$ make`.\n\nPlace a file named `inject.conf` (or set a filename via\nENV_INJECT_FILE) in your $PWD that contains your program's\narguments. Note that each argument should be on a new line.\n\nExample:\n```\n$ cat inject.conf\n-l\n-a\n```\n\nYou can then proceed to call your program as follows:\n\n```\n$ LD_PRELOAD=$PWD/arg_inject.so ls -these-are-ignored -in-favor-of -inject.conf\ntotal 44\ndrwx------ 1 jktr users   154 Apr 22 06:47 .\ndrwx------ 1 jktr users   126 Apr 22 06:36 ..\n-rw------- 1 jktr users  2030 Apr 22 06:44 arg_inject.c\n-rwx------ 1 jktr users 16576 Apr 22 06:46 arg_inject.so\n-rw------- 1 jktr users     6 Apr 22 06:46 inject.conf\n-rw------- 1 jktr users    82 Apr 22 06:46 Makefile\n-rw------- 1 jktr users   648 Apr 22 06:47 README.md\n```\n\n## license \n\nThis work is licensed (CC BY-SA 3.0); it's largely adapted from MvG's\nAnswer on Serverfault, which can be found\n[here](https://serverfault.com/questions/592744/how-to-hide-a-password-passed-as-command-line-argument/592941#592941).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjktr%2Farg-inject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjktr%2Farg-inject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjktr%2Farg-inject/lists"}