Skip to content
Security
Command

/op-identity

Rotate MAC address, hostname, DNS, and network identity markers

From plugin
fsociety
2063 skills7 agents63 commands
Install
$ npx -y skills add ogrodev/fsociety --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/op-identity

Context preview

What this command does when you run it.

Rotate MAC address, hostname, DNS, and network identity markers

Command definition

op-identity.md
description: Rotate MAC address, hostname, DNS, and network identity markers
allowed-tools: Bash, Read, Write
argument-hint: <rotate|spoof|restore|status> [--interface eth0|wlan0]

> **Storage Policy**: ALL output files MUST be saved in the project directory. NEVER write to /tmp/ or any system temporary directory.

Network Identity Management

Target and options: `$ARGUMENTS`

1. Parse `$ARGUMENTS` for the subcommand (`rotate`, `spoof`, `restore`, or `status`) and `--interface` flag (default: primary active interface). Validate the subcommand is recognized.

2. **rotate**: Randomize all network identity markers:

  • Generate a random MAC address with `macchanger -r <interface>` (bring interface down first, then back up)
  • Change the hostname to a random plausible hostname via `hostnamectl set-hostname`
  • Flush DNS cache with `systemd-resolve --flush-caches` or `resolvectl flush-caches`
  • Request a new Tor circuit if Tor is running: `echo -e 'AUTHENTICATE ""\r\nSIGNAL NEWNYM\r\n' | nc 127.0.0.1 9051`

3. **spoof**: Set specific identity values:

  • If `--mac` flag is provided: set the exact MAC address with `macchanger -m <mac> <interface>`
  • If `--hostname` flag is provided: set the hostname with `hostnamectl set-hostname <hostname>`
  • Support vendor prefix selection: allow choosing a MAC vendor prefix (e.g., `--vendor apple|dell|lenovo`) to blend with the local network

4. **restore**: Revert to original identity:

  • Restore permanent/burned-in MAC with `macchanger -p <interface>`
  • Restore original hostname from backup (stored during first rotation)
  • Restart networking services to apply changes

5. **status**: Display current network identity state:

  • Current MAC address per interface
  • Current hostname and FQDN
  • External IP address (via `curl -s ifconfig.me`)
  • Configured DNS servers (from `/etc/resolv.conf` or `resolvectl status`)
  • Tor circuit status if active

6. Log each identity rotation to the identity tracker:

   node "${CLAUDE_PLUGIN_ROOT}/scripts/identity-tracker.js" add <type> <interface> <old-value> <new-value>

7. Update session metrics:

   node "${CLAUDE_PLUGIN_ROOT}/scripts/session-state.js" metric identities_rotated
Read more
Ships withfsociety

Multi-plugin marketplace for Claude Code offensive security plugins

Get the whole plugin, auto-invoked
Stats
20
Stars
0
Views
2
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
4mo ago
Last commit
5mo ago
Created

Repo: ogrodev/fsociety