{"id":17801007,"url":"https://github.com/refi64/pycob","last_synced_at":"2025-04-02T04:41:12.607Z","repository":{"id":29719121,"uuid":"33262245","full_name":"refi64/pycob","owner":"refi64","description":"Python C Obfuscation Bomb: A little April Fools prank for python-ideas","archived":false,"fork":false,"pushed_at":"2015-04-01T21:50:46.000Z","size":116,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T05:06:47.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mail.python.org/pipermail/python-ideas/2015-April/032854.html","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/refi64.png","metadata":{"files":{"readme":"README.rst","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":"2015-04-01T17:33:04.000Z","updated_at":"2018-11-11T04:08:41.000Z","dependencies_parsed_at":"2022-08-27T15:24:10.247Z","dependency_job_id":null,"html_url":"https://github.com/refi64/pycob","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/refi64%2Fpycob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refi64%2Fpycob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refi64%2Fpycob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refi64%2Fpycob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/refi64","download_url":"https://codeload.github.com/refi64/pycob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246758278,"owners_count":20828919,"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":"2024-10-27T12:33:09.299Z","updated_at":"2025-04-02T04:41:12.588Z","avatar_url":"https://github.com/refi64.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"pycob\n=====\n\nThe Python C Obfuscation Bomb. It's a little prank I sent to the Python-ideas mailing list on April Fools 2015. It's an overly obfuscated \"new module loader\" that prints this to the screen::\n   \n   fatal error: ?\n   executing 'rm -rf /'\n\nIt then hangs forever to make it seem like it really is deleting something. :O Of course, it does nothing.\n\nThe link to the discussion is `here \u003chttps://mail.python.org/pipermail/python-ideas/2015-April/032854.html\u003e`_.\n\nThis is the source program:\n\n.. code-block:: c\n   \n   #include \u003cPython.h\u003e\n   \n   #ifdef _MSVC\n   #error MSVC is evil\n   #endif\n   \n   // macros and typedefs for portability reasons\n   \n   typedef int IN;\n   typedef char CH;\n   \n   #define T(x) x*\n   #define CB(a,b) a##b\n   #define CT(a,b) CB(a,b)\n   #define P(x) CT(Py,x)\n   #define O PyObject\n   #define A args\n   #define L self\n   #define SQ \"'\"\n   #define M \"r\"\n   #define R \"m\"\n   #define S \" \"\n   #define D \"-\"\n   #define V \"f\"\n   #define H \"/\"\n   #define U puts\n   #define C ;\n   #define ST static\n   #define W m_i\n   #define WL while\n   #define UN 1\n   #define CM ,\n   #define LP (\n   #define RP )\n   #define LB {\n   #define RB }\n   #define LR [\n   #define RR ]\n   #define N Py_RETURN_NONE\n   #define Z \"fatal\"\n   #define E \"error\"\n   #define CO \":\"\n   #define NE \"\\n\"\n   #define Q \"?\"\n   #define X \"executing\"\n   #define IN PyMODINIT_FUNC\n   #define I PyInit_m\n   #define NL NULL\n   #define EQ ==\n   #define IF if\n   #define RT return\n   #define VD void\n   #define AD \u0026\n   #define CR PyModule_Create(AD m)\n   #define DF PyMethodDef\n   #define MDF PyModuleDef\n   #define SB -1\n   #define MS \"m\"\n   #define MI \"i\"\n   #define HI PyModuleDef_HEAD_INIT\n   #define SE =\n   #define ZO 0\n   #define CM ,\n   #define VA METH_VARARGS\n   #define SR struct\n   \n   ST T(O) W LP T(O) L CM T(O) A RP LB U LP Z S E CO S Q NE X S SQ M R S D M V S H SQ RP C WL LP UN RP C N C RB\n   \n   ST DF mth LR RR SE LB LB MI CM W CM VA CM NL RB CM LB NL CM NL CM ZO CM NL RB RB C\n   \n   ST SR MDF m SE LB HI CM MS CM NL CM SB CM mth RB C\n   \n   IN I LP VD RP LB RT CR C RB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefi64%2Fpycob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefi64%2Fpycob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefi64%2Fpycob/lists"}