{"id":13828681,"url":"https://github.com/splitline/PHPFuck","last_synced_at":"2025-07-09T06:32:36.877Z","repository":{"id":54659970,"uuid":"221392609","full_name":"splitline/PHPFuck","owner":"splitline","description":"PHPFuck: ([+.^]) / Using only 7 different characters to write and execute php. ","archived":false,"fork":false,"pushed_at":"2021-02-05T08:52:31.000Z","size":52,"stargazers_count":386,"open_issues_count":4,"forks_count":37,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-04T09:09:00.667Z","etag":null,"topics":["obfuscator","php","phpfuck"],"latest_commit_sha":null,"homepage":"https://splitline.github.io/PHPFuck/","language":"Python","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/splitline.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}},"created_at":"2019-11-13T06:54:09.000Z","updated_at":"2024-06-23T21:18:51.000Z","dependencies_parsed_at":"2022-08-13T23:10:19.081Z","dependency_job_id":null,"html_url":"https://github.com/splitline/PHPFuck","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/splitline%2FPHPFuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitline%2FPHPFuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitline%2FPHPFuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitline%2FPHPFuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splitline","download_url":"https://codeload.github.com/splitline/PHPFuck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225492420,"owners_count":17482869,"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":["obfuscator","php","phpfuck"],"created_at":"2024-08-04T09:02:59.434Z","updated_at":"2024-11-20T08:30:59.695Z","avatar_url":"https://github.com/splitline.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# PHPFuck: ([+.^])\nUsing only 7 different characters to write and execute php. \n\nOnly support PHP 7+ currently.\n\n## Example Code\nThe following source will execute `phpinfo();`:\n\n```php\n\u003c?php \n  ((([]^[]).[][[]]^([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]).(([].[])[([]^[[]])]).(([\n  ]^[]).[][[]]^([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]).(([].[])\n  [([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[])])\n  .(([]^[]).[][[]]^([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]).(([]\n  ^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]\n  ])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[]\n  )[([]^[])]^([].[])[([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]\n  ]).[][[]]^([].[])[([]^[])]).(([]^[]).[][[]]^([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])\n  ]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[]).[][[]]^(\n  []^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+(\n  []^[[]]).[][[]]^([].[])[([]^[])]).(([]^[]).[][[]]^([].[])[([]^[])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]^([\n  ].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])\n  .[][[]]^([].[])[([]^[])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[\n  ]])]).(([]^[]).[][[]]^([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])]^([].[])[([]^[[]])+([\n  ]^[[]])+([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]))(...((([]^[[]])+([]^[[]]).[][[]]^([].[]\n  )[([]^[])]).(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[])]).(([].[])[([]^[[]])])\n  .(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([\n  ]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]])+([]^[[]]).[][[]]^([]^[[]])+([]^[[]])+(\n  []^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[]).[][[]]^([]^[[]])+([]^[[]])+([]^[[\n  ]])+([]^[[]]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[\n  ]]).[][[]]^([].[])[([]^[])]).(([]^[]).[][[]]^([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[]]\n  )]).(([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[])]).(([]^[]).[][[]]^([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[]\n  [[]]^([].[])[([]^[[]])]))((([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[\n  ]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]]).[][[]]^([].[])[([]^[[]])]^([].[])[([]^[[]]\n  )+([]^[[]])+([]^[[]])]).(([]^[[]]).[][[]]^([].[])[([]^[])]).(([]^[[]]).[][[]]^([].[])[([]^[])]^([].[])[([]^[\n  []])+([]^[[]])+([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]]).[][[]]^([].[])[([]^[]\n  )]).(([]^[]).[][[]]^([].[])[([]^[])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^\n  [[]])+([]^[[]])]).(([]^[]).[][[]]^([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[[]])]^([].[])[\n  ([]^[[]])+([]^[[]])+([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]])+([]^[[]])+([]^[[\n  ]])+([]^[[]]).[][[]]^([].[])[([]^[])]^([].[])[([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]])+\n  ([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]]).[][[]]^([].[])[([]^[])]^([].[])[([]^[[]])+([]^[[]])+([]^[[\n  ]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])\n  ]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[[]]).[][[]]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])]\n  ^([].[])[([]^[[]])+([]^[[]])+([]^[[]])+([]^[[]])]).(([]^[]).[][[]]^([].[])[([]^[[]])]^([].[])[([]^[[]])+([]^\n  [[]])+([]^[[]])+([]^[[]])]).(([]^[[]]).[][[]]^([].[])[([]^[[]])]^([].[])[([]^[[]])+([]^[[]])+([]^[[]])])))()\n?\u003e\n```\n\n## Usage\n\n```\nusage: phpfuck.py [-h] [-O FILE] [-P] [-E {assert,create_function}] code\n\npositional arguments:\n  code                  any string to encode.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -O FILE, --output-file FILE\n                        write encoded string into some file.\n  -P, --plain-string    encode as plain string (without eval it).\n  -E {assert,create_function}, --eval {assert,create_function}\n                        choose eval mode. (`assert` mode only support PHP \u003c 7.1)\n```\n\nYou can just use it like this: `python3 phpfuck.py \"system('id');\"`\n\n### Arguments\n- code (required)\n  - Any string or php code to encode.\n- -O, --output-file\n  - Write encoded string into some file.\n- -P, --plain-string\n  - Encode as plain string (without eval it). \n  - With this argument, I will not wrap your code into `assert` or `create_function` to eval.\n- -E, --eval\n  - You can choose your eval mode!\n  - `create_function` mode (default)\n    - `create_function('', YOUR_CODE)();`\n  - `assert` mode\n    - Only support PHP \u003c 7.1 (=7.0.x).\n    - `assert( '(function(){ YOUR_CODE; return 1; })()' );`\n\n## TODO\n- [x] Support characters other than ASCII range.\n- [ ] Don't use deprecated feature. (`create_function` has been DEPRECATED)\n- [x] Web interface. (https://splitline.github.io/PHPFuck/)\n- [ ] Compatible with PHP 8\n  - Maybe string mode only, since the `create_function` has been removed from PHP 8 :(\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitline%2FPHPFuck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplitline%2FPHPFuck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitline%2FPHPFuck/lists"}