Skip to content
项目

关于

Cross-platform identity spoofing toolkit - MAC randomization + wire-level Windows TCP/IP persona via NFQUEUE packet rewriting. For authorized pentesting.

安全与隐私

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
ID-Spoofer Logo

ID-Spoofer v2.0.8

License Version Platform Language Status Go Reference

A cross-platform identity spoofing toolkit for penetration testing and security assessments. Written in Go, ID-Spoofer randomizes MAC addresses and projects a convincing OS network persona (Windows, macOS, or iOS) at the wire level — without touching the system hostname or breaking internal configuration. Optional protocol encapsulation routes traffic through Tor, WireGuard, I2P, Shadowsocks, QUIC tunnels, an embedded tun2socks pivot for raw-socket tools, or layered combinations.

Demo

ID-Spoofer interactive TUI demo
ID-Spoofer — Multi-OS TCP/IP identity projection + protocol encapsulation, wire-level, zero hostname changes  ·  idarti.com

Screenshots

Dashboard Dashboard: interfaces, active VPNs, default route with VPN detection, listening ports and warnings

Live interfaces, active VPNs (Mullvad detected through policy routing), default route and listening ports with their owning processes.


Tunnel profiles Tunnel tab: protocol list, profile panel, live tunnel status and log tail

Pick a protocol, create or paste a profile from the preset catalog, test it, and watch the live tunnel state and log, all inside the TUI.


Status Status tab: spoofed MAC, active macOS persona, modified TCP/IP fingerprint, active tun2socks tunnel

After apply: spoofed MAC, active persona, the modified TCP/IP fingerprint and the running tunnel.

How it works

The key design principle: your system hostname is never modified. Instead, ID-Spoofer manipulates the network stack so that passive observers (p0f, Nmap, Wireshark) see a different operating system.

Network personas

Five personas are available, each projecting a different OS identity at the wire level:

Persona TTL TCP Timestamps Window Scale TCP Options Order DHCP Vendor Class mDNS
Windows (default) 128 Disabled 8 MSS, NOP, WS, NOP, NOP, SOK MSFT 5.0 Avahi stopped
macOS 64 Enabled 8 MSS, NOP, WS, NOP, NOP, TS, SOK None Avahi left running
Linux 64 Enabled 7 MSS, SACK, TS, NOP, WS None Avahi left running
iOS 64 Enabled 16 MSS, NOP, WS, NOP, NOP, TS, SOK None Avahi left running
Android 64 Enabled 8 MSS, SACK, TS, NOP, WS None Avahi left running

Network persona layers

When you run idspoof apply, five layers activate simultaneously:

Layer What changes Effect
sysctl TTL, tcp_timestamps, tcp_window_scaling, tcp_sack, tcp_ecn, tcp_rfc1337 Kernel-level TCP/IP parameters matching the selected OS
iptables IDSPOOF_NETEMU mangle chain Forces correct TTL on outgoing packets, clamps MSS to path MTU on SYN
NFQUEUE (queue 42) Intercepts outgoing SYN packets Rewrites IP ID (Linux=0 → incrementing) and reorders TCP options to match OS layout
DHCP Option 12 (hostname) + Option 60 (vendor class, Windows only) Router sees appropriate hostname (e.g., DESKTOP-A1B2C3D or Admins-MacBook-Pro)
mDNS Stops Avahi (Windows) or leaves it running (macOS/iOS) Controls hostname visibility on local network

The NFQUEUE rewriter is pure Go with no CGo and no external C libraries. It builds TCP options in the exact order the target OS uses, including Timestamps for macOS/iOS personas.

p0f signatures after apply:

  • Windows: *:128:0:*:65535,8:mss,nop,ws,nop,nop,sok:df,id+:0
  • macOS: *:64:0:*:65535,8:mss,nop,ws,nop,nop,ts,sok,eol+1:df,id+:0
  • Linux: *:64:0:*:29200,7:mss,sackOK,ts,nop,ws:df,id+:0
  • iOS: *:64:0:*:65535,16:mss,nop,ws,nop,nop,ts,sok,eol+1:df,id+:0
  • Android: *:64:0:*:65535,8:mss,sackOK,ts,nop,ws:df,id+:0

Protocol encapsulation

Optional tunnel support routes all traffic through an encrypted protocol. Each tunnel wraps an existing system binary — ID-Spoofer manages lifecycle and iptables rules.

Tunnel Binary Required Transparent Mode SOCKS Mode Notes
Tor tor iptables redirect to TransPort 9040 SOCKS5 on 127.0.0.1:9050 Anonymity network, multi-hop onion routing
WireGuard wg-quick Default route via wg0 N/A Fast kernel-level VPN
I2P i2pd HTTP/HTTPS via outproxy SOCKS5 on :4447, HTTP on :4444 Garlic routing, hidden services
Shadowsocks sslocal or ss-local iptables redirect to redir :1081 SOCKS5 on 127.0.0.1:1080 AEAD proxy, censorship evasion
QUIC hysteria iptables redirect via tproxy SOCKS5 on 127.0.0.1:1080 Hysteria2 UDP tunnel, anti-DPI
LWO wg-quick + obfs4proxy Default route via wg-obfs0 N/A WireGuard with obfuscation headers
Tor over VPN tor + wg-quick VPN first → Tor through it — ISP sees VPN, VPN sees Tor entry
VPN over Tor tor + wg-quick Tor first → VPN through Tor — ISP sees Tor, VPN never knows real IP

Tunnels run in two modes:

  • Transparent (default): all system traffic is automatically redirected through the tunnel via iptables
  • SOCKS: a local SOCKS5 proxy is exposed; configure applications manually

Requirements

  • Linux (Phases 5–6 will add macOS and Windows support)
  • Root privileges
  • iproute2 — interface management
  • iptables — packet mangling rules
  • NetworkManager or dhclient — DHCP hostname injection
  • Optional: avahi-daemon (stopped during Windows persona)

For tunnels (install only what you need):

  • tor — Tor anonymity network
  • wg-quick — WireGuard VPN
  • i2pd — I2P garlic routing
  • sslocal or ss-local — Shadowsocks proxy
  • hysteria — QUIC tunnel (Hysteria2)
  • obfs4proxy — LWO obfuscation layer

Installation

Debian, Ubuntu, Kali (recommended)

Download idspoof_<version>_linux_amd64.deb (or _arm64) from the Releases page, then:

sudo apt install ./idspoof_*_linux_amd64.deb

This installs the binary, the boot daemon (a systemd service that starts before the network, like the Mullvad daemon), an ID-Spoofer entry in the application menu with its icon, and an example config directory. Open it from the menu, or run sudo idspoof menu. Press B in the TUI to choose what starts at boot. An .rpm is published as well.

Other Linux, from the tarball

tar xzf idspoof_<version>_linux_amd64.tar.gz
cd idspoof_<version>_linux_amd64
sudo ./install.sh              # remove again with: sudo ./install.sh uninstall

Installs to /usr/local (set PREFIX=/usr to change), enables the daemon and adds the menu entry and icon. Check downloads against checksums.txt.

macOS and Windows

Download the archive for your platform from Releases and run the binary (sudo ./idspoof menu / an elevated terminal). The boot daemon and menu entry are Linux only for now.

Build from source

git clone https://github.com/NubleX/ID-Spoofer.git
cd ID-Spoofer/idspoof
make build        # binary in bin/idspoof
sudo make install # binary + boot daemon + menu entry + icon

Go 1.26+ required (the exact version is in idspoof/go.mod). Install Go from https://go.dev/dl/.

The boot daemon

idspoof daemon runs as root from idspoof.service. With no boot profile it idles. Press B in the TUI to save the current selection (MAC, persona, tunnel profile) as the boot profile, or write /etc/idspoof/boot.yaml. At boot the daemon applies the identity before network-pre.target (so the first DHCP request already carries it), starts and supervises the tunnel, and restores everything when stopped. If a boot profile ever breaks your network, add idspoof.disable=1 to the kernel command line in the boot loader.

Usage

All commands require root.

# Full identity spoof: MAC + Windows network persona + sysinfo
sudo idspoof apply

# Choose a different persona
sudo idspoof apply --persona macos
sudo idspoof apply --persona linux
sudo idspoof apply --persona ios

# MAC addresses only
sudo idspoof apply --mac-only

# Network persona only (TCP/IP + DHCP + NFQUEUE)
sudo idspoof apply --netident-only

# Add a tunnel (transparent mode by default)
sudo idspoof apply --tunnel tor
sudo idspoof apply --tunnel wireguard --tunnel-config /etc/wireguard/wg0.conf
sudo idspoof apply --tunnel shadowsocks --tunnel-config ~/ss.json --tunnel-mode socks

# Layered tunnels
sudo idspoof apply --tunnel tor-over-vpn --tunnel-config /etc/wireguard/wg0.conf
sudo idspoof apply --tunnel vpn-over-tor --tunnel-config /etc/wireguard/wg0.conf

# Preview changes without applying
sudo idspoof apply --dry-run

# Show current state vs saved originals
sudo idspoof status

# Roll back everything (persona + MAC + tunnel)
sudo idspoof restore

# Roll back only MAC addresses
sudo idspoof restore --mac

# Roll back only network persona
sudo idspoof restore --netident

# Interactive TUI (everything below is also available here)
sudo idspoof menu

# Boot daemon (installed by the .deb / install.sh; the TUI's B key configures it)
systemctl status idspoof

# Version info
idspoof version

TUI keys

Key Action
1-5, Tab Dashboard, Identity, Tunnel, Traffic, Status
A Apply the selection (shows a preview first; a 30 s auto-revert guard follows)
R Restore: everything, MAC only, persona only, or the tunnel only
B Boot profile: save the selection as what starts at boot, restart the service
L Reopen the last result
Tunnel tab: n p g t m d u x New profile from a preset, paste a config, generate keys, test, toggle mode, delete, start, stop
Forms: Ctrl+G Ctrl+R Ctrl+T Ctrl+S Generate field, generate all, show secrets, save

Apply flags

--persona windows|macos|linux|ios|android   Network persona to project (default: windows)
--tunnel PROTOCOL             Tunnel protocol: tor, wireguard, i2p, shadowsocks, quic, lwo,
                              tor-over-vpn, vpn-over-tor, tun2socks
--tunnel-mode MODE            transparent (default) or socks
--tunnel-config PATH          Config file for the tunnel (WireGuard .conf, Shadowsocks .json, etc.)

Global flags

--quiet        Suppress output, skip confirmations
--debug        Verbose logging
--log FILE     Log to file
--state-dir    State directory (default: /var/log/idspoof)

Verifying the persona

Use tcpdump or Wireshark to capture a SYN packet and inspect:

  • Windows: TTL=128, no timestamps, options: MSS → NOP → WScale → NOP → NOP → SACKPermitted
  • macOS: TTL=64, timestamps present, options: MSS → NOP → WScale → NOP → NOP → Timestamps → SACKPermitted
  • Linux: TTL=64, timestamps present, options: MSS → SACK → Timestamps → NOP → WScale (kernel default order)
  • iOS: Same as macOS but window scale factor 16 instead of 8
sudo tcpdump -i any -nn 'tcp[tcpflags] & tcp-syn != 0' -X

State management

State is stored in /var/log/idspoof/state.env — an atomic key=value file backward-compatible with the v1 Bash format. Keys include ORIG_MACS, ORIG_TTL, ORIG_TCP_TIMESTAMPS, and related sysctl originals. restore uses these to fully roll back.

Architecture

The Go rewrite (idspoof/) replaces the original Bash scripts with a structured, cross-platform binary:

cmd/idspoof/          CLI commands (cobra): apply, restore, status, menu, daemon, version; the TUI
internal/
  daemon/             Boot-time supervisor behind `idspoof daemon` (systemd notify)
  boot/               Boot profile (/etc/idspoof/boot.yaml)
  profile/            Tunnel profiles, preset catalog, key and password generators
  mac/                MAC generation and Linux interface manipulation
  netident/           Multi-OS network persona: sysctl, iptables, NFQUEUE, DHCP, mDNS
  tunnel/             Protocol encapsulation: Tor, WireGuard, I2P, Shadowsocks, QUIC, tun2socks, combos
  spoofer/            Orchestrator: runs selected operations, collects results
  state/              Atomic key=value state file (bash v1 compatible)
  platform/           Platform abstraction + privilege checks
  ui/                 Banner, colors, confirm prompt, progress
  sysinfo/            Fake hardware profile generation (display-only)
legacy/               Original Bash scripts preserved for reference

The original Bash toolkit is preserved in legacy/ and in the master branch history.

Roadmap

  • Phase 1–2: Go core + Linux MAC/netident/sysinfo
  • Phase 3: CLI commands (apply, restore, status, menu)
  • Phase 4: Multi-OS personas (Windows, macOS, iOS, Android) + protocol encapsulation (8 tunnel protocols)
  • Phase 5: macOS native (ifconfig, scutil, sysctl net.inet.ip.ttl)
  • Phase 6: Windows native (registry MAC, WMI hostname, Tcpip\Parameters)
  • Phase 7: GitHub Actions CI + goreleaser multi-platform releases
  • Phase 8: TUI-native control (profiles, presets, preview and revert guard), boot daemon, .deb/.rpm packages

Acknowledgements

Thanks to the teams whose open-source work makes this possible:

  • Charm — Bubble Tea and Lip Gloss power the interactive TUI. Genuinely excellent libraries.
  • spf13/cobra — the CLI framework behind every subcommand.
  • pythops/oryx — TUI network traffic monitor whose design inspired the Traffic tab's live bandwidth and connection display.
  • anthonyalayo — Helping me improve the project.

Legal disclaimer

For penetration testing on systems you own or have explicit written permission to test, security research, and authorized red team assessments only. Users are responsible for compliance with applicable laws.


Visit https://www.idarti.com

探索相关项目

加载中…