{"id":20961334,"url":"https://github.com/perbu/dhcp-detective","last_synced_at":"2026-04-27T09:01:55.097Z","repository":{"id":243032540,"uuid":"811272522","full_name":"perbu/dhcp-detective","owner":"perbu","description":"Rogue DHCP server detection slack bot","archived":false,"fork":false,"pushed_at":"2024-07-08T09:14:25.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T19:21:03.181Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perbu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-06-06T09:22:01.000Z","updated_at":"2024-07-08T09:14:29.000Z","dependencies_parsed_at":"2024-06-06T10:58:46.831Z","dependency_job_id":"2274db69-eed0-4425-9f2d-92aa40d9819f","html_url":"https://github.com/perbu/dhcp-detective","commit_stats":null,"previous_names":["perbu/dhcp-detective"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/perbu/dhcp-detective","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdhcp-detective","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdhcp-detective/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdhcp-detective/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdhcp-detective/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perbu","download_url":"https://codeload.github.com/perbu/dhcp-detective/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perbu%2Fdhcp-detective/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32329466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-11-19T02:02:54.698Z","updated_at":"2026-04-27T09:01:55.073Z","avatar_url":"https://github.com/perbu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHCP Detective\n\nDHCP Detective is a tool for detecting rogue DHCP servers on a network. It listens for DHCP packets on a specified network interface and alerts via Slack if it detects a DHCP server other than the one specified by its MAC address.\n\n## Features\n\n- Listens for DHCP packets on a specified network interface\n- Filters packets based on an allowed MAC address (presumably the legitimate DHCP server)\n- Sends alerts to a Slack channel if a rogue DHCP server is detected\n- Throttles alerts to once every 10 minutes to avoid flooding the Slack channel\n\n## Installation\n\n1. Install and build the binary:\n   ```\n   go install github.com/perbu/dhcp-detective@latest\n   ```\n\n2. Set the following environment variables:\n   ```\n   SLACK_TOKEN=your_slack_bot_token\n   SLACK_CHANNEL=your_slack_channel_id\n   ```\n   \n\n## Usage\n\nRun the tool with the following command:\n\n```\ngo run main.go -i interface -a allowed_mac_address\n```\n\nReplace `interface` with the network interface to listen on (e.g., `eth0`) and `allowed_mac_address` with the MAC address of the legitimate DHCP server.\n\nFor example:\n\n```\ngo run main.go -i eth0 -a 00:11:22:33:44:55\n```\n\nThe tool will start listening for DHCP packets on the specified interface. If it detects a DHCP packet from a server other than the one specified by the allowed MAC address, it will send an alert to the configured Slack channel.\n\n## Tests\n\nThere are no tests. There isn't really much logic here, it's all glue code.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\nThis project is licensed under the BSD 3-Clause License. See the [LICENSE.md](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fdhcp-detective","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperbu%2Fdhcp-detective","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperbu%2Fdhcp-detective/lists"}