{"id":18388393,"url":"https://github.com/jmcph4/mph","last_synced_at":"2025-10-27T09:36:28.442Z","repository":{"id":87928961,"uuid":"117183662","full_name":"jmcph4/mph","owner":"jmcph4","description":"Python API for interfacing with arbitrary executables","archived":false,"fork":false,"pushed_at":"2018-01-12T02:51:20.000Z","size":2,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T10:42:34.482Z","etag":null,"topics":["binary-analysis","executable","fuzzing","host","managed","python","subprocess"],"latest_commit_sha":null,"homepage":null,"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/jmcph4.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":"2018-01-12T02:50:59.000Z","updated_at":"2020-02-12T04:40:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf212907-9537-4318-8b0a-aa3f3db69a57","html_url":"https://github.com/jmcph4/mph","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/jmcph4%2Fmph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2Fmph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2Fmph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcph4%2Fmph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmcph4","download_url":"https://codeload.github.com/jmcph4/mph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247583107,"owners_count":20961970,"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":["binary-analysis","executable","fuzzing","host","managed","python","subprocess"],"created_at":"2024-11-06T01:34:06.463Z","updated_at":"2025-10-27T09:36:28.339Z","avatar_url":"https://github.com/jmcph4.png","language":"Python","readme":"# MPH #\n---\n\nMPH (managed program host) is a Python package providing an API for interfacing\nwith arbitrary executables in a generic way. It should be noted that MPH is not\na virtual machine, nor is it a emulator of any sort. MPH simply provides an API\nfor providing input and output to arbitrary executables.\n\nUsing MPH, users can provide input to arbitrary guest executables and retrieve\nthe output (on both `stdout` and `stderr`) and the return value of the program.\n\n# Examples #\n\n    from mph import program\n\n    prog = program.Program(\"/path/to/myprog\", [])   # initialise program\n    prog.append_string_stdin(\"Hello, world!\")       # write to stdin\n    prog.exec()                                     # run program\n\n    # check return value of gues executable\n    if prog.retval == 0:\n        print(prog.stdout)\n    else:\n        print(\"Inferior returned with return code \" + str(prog.retval) + \"\\n\")\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcph4%2Fmph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmcph4%2Fmph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcph4%2Fmph/lists"}