{"id":27290766,"url":"https://github.com/hellman/fixenv","last_synced_at":"2025-04-11T21:38:54.688Z","repository":{"id":2458488,"uuid":"3430313","full_name":"hellman/fixenv","owner":"hellman","description":"Fix stack addresses (when no ASLR) with and without debugging","archived":false,"fork":false,"pushed_at":"2015-01-23T08:26:50.000Z","size":121,"stargazers_count":180,"open_issues_count":2,"forks_count":31,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-04T11:05:52.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/hellman.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}},"created_at":"2012-02-13T13:47:52.000Z","updated_at":"2025-02-22T21:11:48.000Z","dependencies_parsed_at":"2022-09-09T01:00:41.128Z","dependency_job_id":null,"html_url":"https://github.com/hellman/fixenv","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/hellman%2Ffixenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellman%2Ffixenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellman%2Ffixenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellman%2Ffixenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellman","download_url":"https://codeload.github.com/hellman/fixenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248485380,"owners_count":21111845,"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":[],"created_at":"2025-04-11T21:38:54.271Z","updated_at":"2025-04-11T21:38:54.674Z","avatar_url":"https://github.com/hellman.png","language":"Shell","readme":"fixenv\n====================\n\nA script to make stack addresses the same when running a program under gdb,ltrace,strace or without debugging (without ASLR of course).\nEnv variables order is saved too.\n\nUsage\n---------------------\n\n\u003cpre\u003e\nUsage:\n  ./r.sh getvar [var_name] - get address of envvar's value\n  ./r.sh dump [start_addr [size]] - dump the end of the stack\n\nRunning programs:\n  ./r.sh ./program - run program\n  ./r.sh strace ./program - run program in strace\n  ./r.sh ltrace ./program - run program in ltrace\n  ./r.sh gdb ./program [arg1 [arg2 [ ... ]]] - run program in gdb\n\u003c/pre\u003e\n\nExample\n---------------------\n\n\u003cpre\u003e\n$ ./r.sh gdb test/test\n...\nLocal var: 0xbffffa5c\nEnv vars:\n0xbffffc5f SHELL=/bin/bash\n...\n\n$ ./r.sh strace test/test 2\u003e/dev/null\nLocal var: 0xbffffa5c\nEnv vars:\n0xbffffc5f SHELL=/bin/bash\n...\n\n$ ./r.sh test/test \nLocal var: 0xbffffa5c\nEnv vars:\n0xbffffc5f SHELL=/bin/bash\n\n$ export XYZ=SOMEDATA\n$ ./r.sh getvar XYZ\n0xbffffcb8  \\xb8\\xfc\\xff\\xbf  (XYZ)\n$ ./r.sh test/test | grep XYZ\n0xbffffcb4 XYZ=SOMEDATA\n\u003c/pre\u003e\n\nAuthor: hellman ( hellman1908@gmail.com )\n\nLicense: GNU General Public License v2 (http://opensource.org/licenses/gpl-2.0.php)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellman%2Ffixenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellman%2Ffixenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellman%2Ffixenv/lists"}