{"id":23384325,"url":"https://github.com/lazypwny751/potential-broccoli","last_synced_at":"2025-08-24T05:30:39.978Z","repository":{"id":269114215,"uuid":"841470874","full_name":"lazypwny751/potential-broccoli","owner":"lazypwny751","description":"an eBPF based alarm generator written in bpftrace and bash.","archived":false,"fork":false,"pushed_at":"2024-12-21T02:34:44.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-21T03:17:12.058Z","etag":null,"topics":["alarm","aya","ebpf","rust","security"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lazypwny751.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":"2024-08-12T13:24:58.000Z","updated_at":"2024-12-21T02:35:40.000Z","dependencies_parsed_at":"2024-12-21T03:17:20.003Z","dependency_job_id":"ae284b76-f99c-4feb-97b6-efa7c3ac656d","html_url":"https://github.com/lazypwny751/potential-broccoli","commit_stats":null,"previous_names":["lazypwny751/potential-broccoli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazypwny751%2Fpotential-broccoli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazypwny751%2Fpotential-broccoli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazypwny751%2Fpotential-broccoli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazypwny751%2Fpotential-broccoli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lazypwny751","download_url":"https://codeload.github.com/lazypwny751/potential-broccoli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230777271,"owners_count":18278672,"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":["alarm","aya","ebpf","rust","security"],"created_at":"2024-12-21T23:18:12.964Z","updated_at":"2024-12-21T23:18:21.265Z","avatar_url":"https://github.com/lazypwny751.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# potential-broccoli\n\n![image](https://github.com/user-attachments/assets/9c4dc2b8-a629-4cdb-a9a9-ef347740c334)\n\n## Prerequisites\n\n1. stable rust toolchains: `rustup toolchain install stable`\n1. nightly rust toolchains: `rustup toolchain install nightly --component rust-src`\n1. (if cross-compiling) rustup target: `rustup target add ${ARCH}-unknown-linux-musl`\n1. (if cross-compiling) LLVM: (e.g.) `brew install llvm` (on macOS)\n1. (if cross-compiling) C toolchain: (e.g.) [`brew install filosottile/musl-cross/musl-cross`](https://github.com/FiloSottile/homebrew-musl-cross) (on macOS)\n1. bpf-linker: `cargo install bpf-linker` (`--no-default-features` on macOS)\n\n## Build \u0026 Run\n\nUse `cargo build`, `cargo check`, etc. as normal. Run your program with:\n\n```shell\ncargo run --release --config 'target.\"cfg(all())\".runner=\"sudo -E\"'\n```\n\nCargo build scripts are used to automatically build the eBPF correctly and include it in the\nprogram.\n\n## Cross-compiling on macOS\n\nCross compilation should work on both Intel and Apple Silicon Macs.\n\n```shell\nCC=${ARCH}-linux-musl-gcc cargo build --package potential-broccoli --release \\\n  --target=${ARCH}-unknown-linux-musl \\\n  --config=target.${ARCH}-unknown-linux-musl.linker=\\\"${ARCH}-linux-musl-gcc\\\"\n```\nThe cross-compiled program `target/${ARCH}-unknown-linux-musl/release/potential-broccoli` can be\ncopied to a Linux server or VM and run there.\n\n# License\n[GPL3](https://choosealicense.com/licenses/gpl-3.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazypwny751%2Fpotential-broccoli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazypwny751%2Fpotential-broccoli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazypwny751%2Fpotential-broccoli/lists"}