{"id":13397938,"url":"https://github.com/feross/spoof","last_synced_at":"2025-05-15T07:03:51.147Z","repository":{"id":15244608,"uuid":"17973518","full_name":"feross/spoof","owner":"feross","description":"Easily spoof your MAC address in macOS, Windows, \u0026 Linux!","archived":false,"fork":false,"pushed_at":"2020-11-05T00:50:22.000Z","size":481,"stargazers_count":1818,"open_issues_count":11,"forks_count":103,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-05-15T07:03:46.508Z","etag":null,"topics":["javascript","linux","mac","nodejs","spoof","spoofmac","wifi"],"latest_commit_sha":null,"homepage":"https://feross.org/spoofmac/","language":"JavaScript","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/feross.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}},"created_at":"2014-03-21T08:48:49.000Z","updated_at":"2025-05-13T06:14:30.000Z","dependencies_parsed_at":"2022-08-07T08:01:00.480Z","dependency_job_id":null,"html_url":"https://github.com/feross/spoof","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fspoof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fspoof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fspoof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fspoof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/spoof/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254291962,"owners_count":22046425,"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":["javascript","linux","mac","nodejs","spoof","spoofmac","wifi"],"created_at":"2024-07-30T18:01:55.408Z","updated_at":"2025-05-15T07:03:51.122Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","readme":"# spoof [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/spoof/master.svg\n[travis-url]: https://travis-ci.org/feross/spoof\n[npm-image]: https://img.shields.io/npm/v/spoof.svg\n[npm-url]: https://npmjs.org/package/spoof\n[downloads-image]: https://img.shields.io/npm/dm/spoof.svg\n[downloads-url]: https://npmjs.org/package/spoof\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Easily spoof your MAC address in macOS, Windows, \u0026 Linux!\n\nNode.js port of the popular [SpoofMAC](https://pypi.python.org/pypi/SpoofMAC/) Python utility (GitHub: [feross/SpoofMAC](https://github.com/feross/SpoofMAC)).\n\n![anonymous](img/img.png)\n\n## Why?\n\nI made this because changing your MAC address on macOS is harder than it should be. The Wi-Fi card needs to be manually disassociated from any connected networks in order for the change to apply correctly – super annoying! Doing this manually each time is tedious and lame.\n\nInstead, just run `spoof` and change your MAC address in one command.\n\n**Now for Windows and Linux, too!**\n\n## Instructions for beginners\n\nHere are some easy install instructions for complete beginners.\n\n1. Install [node.js](http://nodejs.org/) (it's a programming platform like Python, Java, etc.)\n\n2. Open **Terminal**. Let's use Spotlight to find it.\n\n  ![terminal](img/spotlight-terminal.png)\n\n3. Install **spoof** by typing this command and pressing `Enter`.\n\n  ```bash\n  npm install spoof -g\n  ```\n\n  That's it! **spoof** is installed.\n\n3. Now, let's print out the **help page**. Just like before, run this command in **Terminal**.\n\n  ```bash\n  spoof --help\n  ```\n\n4. Now, let's print out all our network devices.\n\n  ```bash\n  spoof list\n  ```\n\n5. Find the device you want to set or randomize the MAC address for in the list. Wi-Fi is usually called `en0` on modern Macs. Then, run this command:\n\n  ```bash\n  sudo spoof randomize en0\n  ```\n\n  You may need to reconnect to the Wi-Fi hotspot you were connected to. But, that's it! Your MAC address is changed. You can confirm by re-running:\n\n   ```bash\n   spoof list\n   ```\n\n## Full command list\n\nYou can always see up-to-date usage instructions by running spoof --help.\n\n### List available devices\n\n```bash\nspoof list\n- \"Ethernet\" on device \"en0\" with MAC address 70:56:51:BE:B3:00\n- \"Wi-Fi\" on device \"en1\" with MAC address 70:56:51:BE:B3:01 currently set to 70:56:51:BE:B3:02\n- \"Bluetooth PAN\" on device \"en1\"\n```\n\n### List available devices, but only those on Wi-Fi\n\n```bash\nspoof list --wifi\n- \"Wi-Fi\" on device \"en0\" with MAC address 70:56:51:BE:B3:6F\n```\n\n### Randomize MAC address *(requires root)*\n\nYou can use the hardware port name, such as:\n\n```bash\nspoof randomize wi-fi\n```\n\nor the device name, such as:\n\n```bash\nspoof randomize en0\n```\n\n### Set device MAC address to something specific *(requires root)*\n\n```bash\nspoof set 00:00:00:00:00:00 en0\n```\n\n### Reset device to its original MAC address *(requires root)*\n\nWhile not always possible (because sometimes the original hardware MAC\nisn't available), you can try setting the MAC address of a device back\nto its burned-in address using `reset`:\n\n```bash\nspoof reset wi-fi\n```\n\nOn macOS, another option to reset your MAC address is to simply restart your\ncomputer. macOS doesn't preserve changes to your MAC address between restarts.\n\n## Linux support?\n\nYep!\n\nLinux support requires the `ifconfig` utility to be installed. It comes\npre-installed with most Linux distributions.\n\n## Windows support?\n\nYep!\n\n## Automatically randomize MAC address on startup\n\nIf you want to set or randomize your MAC address and have it persist between restarts on\nmacOS, consider using the Python version of this program,\n[SpoofMAC](https://github.com/feross/SpoofMAC), and following the instructions\nfor [running automatically on startup](https://github.com/feross/spoofmac#optional-run-automatically-at-startup).\n\n## License\n\nMIT. Copyright [Feross Aboukhadijeh](https://feross.org).\n","funding_links":[],"categories":["JavaScript","\u003ca id=\"06fccfcc4faa7da54d572c10ef29b42e\"\u003e\u003c/a\u003e移动\u0026\u0026Mobile","nodejs","Uncategorized","\u003ca id=\"58cd9084afafd3cd293564c1d615dd7f\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"dbde77352aac39ee710d3150a921bcad\"\u003e\u003c/a\u003eiOS\u0026\u0026MacOS\u0026\u0026iPhone\u0026\u0026iPad\u0026\u0026iWatch","Uncategorized","\u003ca id=\"d0108e91e6863289f89084ff09df39d0\"\u003e\u003c/a\u003e新添加的"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fspoof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Fspoof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fspoof/lists"}