{"id":27953834,"url":"https://github.com/binaryanalysisplatform/bap-mode","last_synced_at":"2025-07-23T09:36:22.139Z","repository":{"id":71066969,"uuid":"143280410","full_name":"BinaryAnalysisPlatform/bap-mode","owner":"BinaryAnalysisPlatform","description":"An Emacs major mode for BAP's intermediate language","archived":false,"fork":false,"pushed_at":"2020-07-10T08:38:03.000Z","size":21,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T17:15:06.752Z","etag":null,"topics":["bap","emacs","emacs-lisp","intermediate-language"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","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/BinaryAnalysisPlatform.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,"zenodo":null}},"created_at":"2018-08-02T10:36:19.000Z","updated_at":"2025-02-22T21:16:20.000Z","dependencies_parsed_at":"2023-02-22T02:15:30.381Z","dependency_job_id":null,"html_url":"https://github.com/BinaryAnalysisPlatform/bap-mode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BinaryAnalysisPlatform/bap-mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryAnalysisPlatform%2Fbap-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryAnalysisPlatform%2Fbap-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryAnalysisPlatform%2Fbap-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryAnalysisPlatform%2Fbap-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BinaryAnalysisPlatform","download_url":"https://codeload.github.com/BinaryAnalysisPlatform/bap-mode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinaryAnalysisPlatform%2Fbap-mode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266655700,"owners_count":23963554,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bap","emacs","emacs-lisp","intermediate-language"],"created_at":"2025-05-07T17:15:04.767Z","updated_at":"2025-07-23T09:36:22.122Z","avatar_url":"https://github.com/BinaryAnalysisPlatform.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bap-mode: an Emacs major mode for BAP's IR\n[![MELPA](https://melpa.org/packages/bap-mode-badge.svg)](https://melpa.org/#/bap-mode)\n\n## What is bap-mode?\n\nbap-mode is an Emacs major mode for reading and analyzing programs in [BAP](https://github.com/BinaryAnalysisPlatform/bap)'s IR. It allows to interact with BAP from within emacs. For example, *bap-open-file* (`C-c C-b o`) opens a file with BAP and emits the IR to an Emacs buffer. bap-mode hightlights the syntax and allows to quickly navigate the code (e.g. `C-c C-b m` to jump to the main function).\n\n## How to install bap-mode?\n\nbap-mode is avilable on [Melpa](https://melpa.org/). Install it with `M-x package-install \u003cRET\u003e bap-mode \u003cRET\u003e`. bap-mode requires [Helm](https://emacs-helm.github.io/helm/).\n\n## How to use bap-mode?\n\nThe following keybindings are defined per default:\n- `C-c C-b d` *bap-goto-function-definition*: jump to a function definition (presents function candidates with Helm)\n- `C-c C-b l` *bap-goto-label*: jump to a label\n- `C-c C-b m` *bap-goto-main*: jump to main function\n- `C-c C-b o` *bap-open-file*: opens a binary with BAP and emits the IR\n- `C-c C-b p` *bap-open-file-with-extra-pass*: same as above but adds an extra pass before emitting the IR\n\n## Future work\n\nSome of the things that would be nice to have are:\n- jump to definition at point (function or address)\n\nAs always on github, pull requests are welcomed!\n\n## Acknowledgments\nThis project is partly financed by [German Federal Office for Information Security (BSI)](https://www.bsi.bund.de). \n\n## License\n```\n    The MIT License (MIT)\n\n    bap-mode\n    Copyright (C) 2018 - 2019 Thomas Barabosch of Fraunhofer FKIE\n    \n    Based on emacs-mips-mode\n    Copyright (c) 2017 Henrik Lissner\n    \n    Permission is hereby granted, free of charge, to any person obtaining\n    a copy of this software and associated documentation files (the\n    \"Software\"), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and/or sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryanalysisplatform%2Fbap-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinaryanalysisplatform%2Fbap-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryanalysisplatform%2Fbap-mode/lists"}