{"id":18057760,"url":"https://github.com/safememoryzone/cobfus","last_synced_at":"2025-04-05T10:42:16.907Z","repository":{"id":244265223,"uuid":"814739151","full_name":"SafeMemoryZone/cobfus","owner":"SafeMemoryZone","description":"Simple C-obfuscator written in C. ","archived":false,"fork":false,"pushed_at":"2024-06-30T09:58:08.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T21:36:48.711Z","etag":null,"topics":["c","obfuscator"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SafeMemoryZone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T15:49:48.000Z","updated_at":"2024-07-15T10:26:00.000Z","dependencies_parsed_at":"2024-10-31T02:22:46.166Z","dependency_job_id":"948f85e7-5cbb-496b-9556-756b939da032","html_url":"https://github.com/SafeMemoryZone/cobfus","commit_stats":null,"previous_names":["safememoryzone/cobfus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafeMemoryZone%2Fcobfus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafeMemoryZone%2Fcobfus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafeMemoryZone%2Fcobfus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafeMemoryZone%2Fcobfus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SafeMemoryZone","download_url":"https://codeload.github.com/SafeMemoryZone/cobfus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325646,"owners_count":20920713,"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":["c","obfuscator"],"created_at":"2024-10-31T02:22:37.865Z","updated_at":"2025-04-05T10:42:16.877Z","avatar_url":"https://github.com/SafeMemoryZone.png","language":"C","readme":"# cobfus\nA simple C-obfuscator written in C. \n\n## Example\n\nObfuscated [donut.c](https://www.a1k0n.net/2011/07/20/donut-math.html):\n\n```c\nint _0;double sin(),cos();main(){float _1=0,_2=0,_3,_4,_5[1760];char _6[1760];printf(\"\\x1b[2J\");for(\n;;){memset(_6,32,1760);memset(_5,0,7040);for(_4=0;6.28\u003e_4;_4+=0.07){for(_3=0;6.28\u003e_3;_3+=0.02){float\n_7=sin(_3),_8=cos(_4),_9=sin(_1),_10=sin(_4),_11=cos(_1),_12=_8+2,_13=1/(_7*_12*_9+_10*_11+5),_14=\ncos(_3),_15=cos(_2),_16=sin(_2),_17=_7*_12*_11-_10*_9;int _18=40+30*_13*(_14*_12*_15-_17*_16),_19=12\n+15*_13*(_14*_12*_16+_17*_15),_20=_18+80*_19,_21=8*((_10*_9-_7*_8*_11)*_15-_7*_8*_9-_10*_11-_14*_8*\n_16);if(22\u003e_19\u0026\u0026_19\u003e0\u0026\u0026_18\u003e0\u0026\u002680\u003e_18\u0026\u0026_13\u003e_5[_20]){_5[_20]=_13;_6[_20]=\".,-~:;=!*#$@\"[_21\u003e0?_21:0];}\n}}printf(\"\\x1b[d\");for(_0=0;1761\u003e_0;_0++)putchar(_0%80?_6[_0]:10);_1+=0.04;_2+=0.02;}}\n```\n\n## Quickstart\n\n```console\n$ cc -o cobfus src/cobfus.c\n```\n\n## Usage\n\n```console\n$ ./cobfus \u003cinput_file\u003e [-o \u003coutput_file\u003e] [-l \u003ctarget_ln_len\u003e] [-i ...]\n```\n\n### Flags\n\n- `-o`: output file (default is `\u003cinput_file\u003e.obfus`)\n- `-l`: target line len (in chars) - the obfuscator will try to keep this line len\n- `-i`: a list of symbols that won't be renamed (some are automatically ignored like `main`, `printf`, `malloc`, `free` ...) \n\n## Limitations\n\nThe input program must only use primitive data types and specify the functions that should not be renamed (see `ignored_c_funcs`).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafememoryzone%2Fcobfus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafememoryzone%2Fcobfus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafememoryzone%2Fcobfus/lists"}