{"id":19592002,"url":"https://github.com/hakbyte/peff","last_synced_at":"2025-02-26T14:14:28.256Z","repository":{"id":255076360,"uuid":"846812673","full_name":"hakbyte/peff","owner":"hakbyte","description":"Command line tool to list imported DLLs.","archived":false,"fork":false,"pushed_at":"2024-12-02T21:36:41.000Z","size":24,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T06:47:20.430Z","etag":null,"topics":["redteam","reverse-engineering","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/hakbyte.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-08-24T03:06:29.000Z","updated_at":"2024-08-28T06:27:02.000Z","dependencies_parsed_at":"2024-08-27T22:15:47.268Z","dependency_job_id":"44610b06-f3d9-4b34-ab58-072f01f45914","html_url":"https://github.com/hakbyte/peff","commit_stats":null,"previous_names":["hakbyte/peff"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakbyte%2Fpeff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakbyte%2Fpeff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakbyte%2Fpeff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakbyte%2Fpeff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakbyte","download_url":"https://codeload.github.com/hakbyte/peff/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240867427,"owners_count":19870405,"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":["redteam","reverse-engineering","rust"],"created_at":"2024-11-11T08:32:28.305Z","updated_at":"2025-02-26T14:14:28.209Z","avatar_url":"https://github.com/hakbyte.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# peff\n\nA small command line tool to list the DLLs imported by a Windows binary. Get a\ncopy from the [Release](https://github.com/hakbyte/peff/releases) page.\n\n## Usage\n\n\n```\n$ peff.exe --help\nUsage: peff [\u003ctarget...\u003e] [--version] [-q]\n\nShow DLLs imported by a Windows binary (EXE, DLL, OCX, SYS, etc.)\n\nPositional Arguments:\n  target            input files to analyze\n\nOptions:\n  --version         print version and exit\n  -q, --quiet       suppress errors\n  --help            display usage information\n```\n\n\u003e :memo: **Note**: Only *statically* imported symbols are shown. A binary can\n\u003e also dynamically load DLLs during runtime via *LoadLibrary()* and other APIs.\n\nEver wondered which DLLs a binary is importing? Here is an example:\n\n```\n$ peff.exe C:\\Windows\\System32\\calc.exe\nC:\\Windows\\System32\\calc.exe: [\n    ADVAPI32.dll\n    KERNEL32.dll\n    SHELL32.dll\n    api-ms-win-core-libraryloader-l1-2-0.dll\n    api-ms-win-core-processthreads-l1-1-0.dll\n    api-ms-win-core-synch-l1-2-0.dll\n    msvcrt.dll\n]\n```\n\nIf you pass a directory, `peff`  will recursively search all files inside the\ndirectory and analyze them. In this case it's useful to pass the `-q` flag to\navoid seeing errors arising from trying to parse non-binary files.\n\n## Why?\n\nSometimes during a Red Team exercise I come across unknown binaries and need to\nquickly asses what they're doing. Knowing which DLLs the unknown binary imports\nis an important first step in this search.\n\n## Compiling\n\nIf you wish, you can compile the source code yourself:\n\n```\n$ git clone https://github.com/hakbyte/peff.git\n$ cd peff\n$ cargo build --release\n```\n\nOr use [cargo install](https://doc.rust-lang.org/cargo/commands/cargo-install.html)\nto build and install in a single step:\n\n```\n$ cargo install --git https://github.com/hakbyte/peff.git\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakbyte%2Fpeff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakbyte%2Fpeff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakbyte%2Fpeff/lists"}