{"id":21028214,"url":"https://github.com/exyi/anyexec2c","last_synced_at":"2026-02-25T14:39:53.628Z","repository":{"id":55899813,"uuid":"109398790","full_name":"exyi/anyexec2C","owner":"exyi","description":"converts anything executable to C, C# or Python code","archived":false,"fork":false,"pushed_at":"2022-10-15T11:22:54.000Z","size":57,"stargazers_count":19,"open_issues_count":3,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T08:03:22.137Z","etag":null,"topics":["recodex","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/exyi.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":"2017-11-03T13:29:11.000Z","updated_at":"2024-11-18T10:52:39.000Z","dependencies_parsed_at":"2022-08-15T09:00:43.025Z","dependency_job_id":null,"html_url":"https://github.com/exyi/anyexec2C","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exyi%2Fanyexec2C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exyi%2Fanyexec2C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exyi%2Fanyexec2C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exyi%2Fanyexec2C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exyi","download_url":"https://codeload.github.com/exyi/anyexec2C/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254323255,"owners_count":22051747,"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":["recodex","rust"],"created_at":"2024-11-19T11:54:27.244Z","updated_at":"2026-02-25T14:39:48.607Z","avatar_url":"https://github.com/exyi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AnyExec2C\n\nThis is a simple program used wrap any executable into some source code. When the resulting source is compiled and run, it acts as a bootstrap stage. It unpacks the executable from within itself, dumps it to disk and runs it afterwards via Unix `exec` syscall. Historically, main target language has been C. As of now, also C# and Python3 are supported as a target language.\n\n## Purpose\n\nPrimary purpose of this program is to bypass programming language limitations in [ReCodEx](https://github.com/ReCodEx) - software used to programmatically check validity of student's code. Check out [WORKING_LANGUAGES.md](WORKING_LANGUAGES.md) for more info about which languages work in ReCodEx and what we have found out about them. However, this tool is not limited to ReCodEx. The generated code should work in other program testing environments too.\n\n## Usage\n\n``` bash\n# simplest usage\nanyexec2c -x executableFile \u003e source.c\n\n# insert actual source code as comments\nanyexec2c -x executableFile -c original_source.any \u003e source.c\n\n# if something does not work, you can add some diagnostic return codes using `-e` flag\nanyexec2c -e -x executable \u003e source.c\n\n# for supported languages, you can just pass in the source code\nanyexec2c -b source.d \u003e source.c      # (D lang with  DMD compiler)\nanyexec2c -b source.go \u003e source.c     # (Go)\nanyexec2c -b src/main.rs \u003e source.c   # (Rust using cargo - necessary to call from projects main dir)\n\n# we can also generate C# programs for cases when C/C++ is not an allowed language (using --target or -t switch)\n# this packs our memory test tool into a C# environement\nanyexec2c -b tools/memtest.c -t C# \u003e memtest.cs\n# or a Python program :)\nanyexec2c -b tools/memtest.c -t python \u003e memtest.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexyi%2Fanyexec2c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexyi%2Fanyexec2c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexyi%2Fanyexec2c/lists"}