{"id":15690587,"url":"https://github.com/linusu/dhcp-spy","last_synced_at":"2025-05-07T23:44:10.480Z","repository":{"id":65991825,"uuid":"111594766","full_name":"LinusU/dhcp-spy","owner":"LinusU","description":"Silently listen for DHCP requests on the network","archived":false,"fork":false,"pushed_at":"2019-11-17T00:47:05.000Z","size":21,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:44:04.713Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinusU.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-11-21T19:54:42.000Z","updated_at":"2020-10-31T01:27:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c7d1993-d286-4373-b4d4-ff1dc73073df","html_url":"https://github.com/LinusU/dhcp-spy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fdhcp-spy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fdhcp-spy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fdhcp-spy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fdhcp-spy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/dhcp-spy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973617,"owners_count":21834105,"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":[],"created_at":"2024-10-03T18:12:24.173Z","updated_at":"2025-05-07T23:44:10.459Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHCP Spy\n\nSilently listen for DHCP requests on the network. Useful for monitoring when devices connects to the network, and can be used to detect presses on an [Amazon Dash Button](https://www.amazon.co.uk/Amazon-Dash-Button/b?ie=UTF8\u0026node=10833773031).\n\nRequires root priveligies in order to listen on port 67.\n\n## Installation\n\n```sh\nnpm install --save dhcp-spy\n```\n\n## Usage\n\n```js\nconst spy = require('dhcp-spy')\n\nspy.listening.then(() =\u003e {\n  console.log('Listening for DHCP requests')\n})\n\nspy.on('detected', (mac) =\u003e {\n  console.log(`Detected a request from ${mac}`)\n})\n\nspy.on('78:e1:03:b0:08:24', () =\u003e {\n  console.log('Someone pressed the \"Mentos\" dash button')\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fdhcp-spy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fdhcp-spy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fdhcp-spy/lists"}