{"id":21279869,"url":"https://github.com/greenboxal/wifi-hijack","last_synced_at":"2025-07-11T09:31:23.436Z","repository":{"id":145262335,"uuid":"81699923","full_name":"greenboxal/wifi-hijack","owner":"greenboxal","description":"Wifi DNS hijacker","archived":false,"fork":false,"pushed_at":"2017-02-12T03:22:14.000Z","size":4,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T02:23:43.783Z","etag":null,"topics":["dns","dns-spoof","hijack","security","wifi"],"latest_commit_sha":null,"homepage":"","language":"Go","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/greenboxal.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-02-12T03:19:55.000Z","updated_at":"2025-02-22T09:48:51.000Z","dependencies_parsed_at":"2023-07-08T17:01:05.920Z","dependency_job_id":null,"html_url":"https://github.com/greenboxal/wifi-hijack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/greenboxal/wifi-hijack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenboxal%2Fwifi-hijack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenboxal%2Fwifi-hijack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenboxal%2Fwifi-hijack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenboxal%2Fwifi-hijack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greenboxal","download_url":"https://codeload.github.com/greenboxal/wifi-hijack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greenboxal%2Fwifi-hijack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264777699,"owners_count":23662537,"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":["dns","dns-spoof","hijack","security","wifi"],"created_at":"2024-11-21T10:26:50.642Z","updated_at":"2025-07-11T09:31:23.413Z","avatar_url":"https://github.com/greenboxal.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wifi-hijack\n\nWifi DNS hijacker\n\nActually works on any network if you can MITM it.\n\n# How it works\n\nwifi-hijack sniffs a network device for DNS requests using libpcap. When a desired DNS query is sent by someone (except yourself), a fake response is written, hopefully before the actual DNS server responds. This causes the device that made the query believe that your response is the right one, hijacking the traffic to whatever IP you want.\n\n# Usage\n\n```\nUsage: wifi-hijack CONFIG\n\nHijacks DNS requests on the given device.\n\nArguments:\n  CONFIG        configuration file\nOptions:\n  -h --help\n```\n\n# Config\n\n```\n# Device where to sniff DNS traffic\nsource_device: en0\n\n# Device where to inject fake DNS responses\ntarget_device: en7\n\n# Target DNS queries\ntargets:\n  - address: 10.0.0.8   # Address is the fake response\n    matches:            # Matches are a list of regexes to match agains't the query\n      - \"google.com\"\n      - \"*.google.com\"\n  - address: 10.0.0.7\n    matches:\n      - \"*\"\n```\n\nTargets are evaluated in order, consider this if building a complex configuration. (wait... wat u doin m8?)\n\n# Disclaimer\n\nI'm not responsible by anything that you do with this tool. It was created solely by the curiosity about the security flaws of open wifi networks.\n\n*Don't be evil.*\n\n# LICENSE\n\nCopyright (c) 2017 Jonathan Lima \u003cgreenboxal@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenboxal%2Fwifi-hijack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreenboxal%2Fwifi-hijack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreenboxal%2Fwifi-hijack/lists"}