Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
aod — FreeBSD and Linux kernel modules that rewrite TCP/IP and ICMPv6 fields so hosts and jails/containers answer Nmap, p0f and JA4T as a different operating system. | Kitploit
Tools/GitHubGitHub/daisu-mi/aod
Defensive ToolsEmbedded Systems SecurityPacket Sniffing & AnalysisNetwork SecurityPapers & ResearchFingerprint Spoofing
GitHubdaisu-mi/aod

aod

FreeBSD and Linux kernel modules that rewrite TCP/IP and ICMPv6 fields so hosts and jails/containers answer Nmap, p0f and JA4T as a different operating system.

View Repository
15h 2m agoNot yet reviewed
Share

aod — Anti OS Detection

A kernel module that makes a host answer OS fingerprinting tools as if it ran a different operating system. There is one for FreeBSD and one for Linux.

The first version was a modified FreeBSD 4.3 kernel, described in a 2001 paper. This repository holds a rewrite for FreeBSD 15.1 as a loadable module, and a version for Linux built from the same personality table. The patch and source tree of the old version were recovered later and are kept in legacy/.

DirectoryContents
freebsd/The module for FreeBSD 15.1 (pfil(9) hooks, no change to the kernel source)
freebsd/jail/Giving each jail its own personality
linux/The module for Linux (netfilter hooks; written against Linux 7.0)
linux/lxc/Giving each container its own personality
common/The personality definitions shared by both modules
test/The scripts used for the measurements (scripts/) and the raw Nmap output (results/)
legacy/The 2001 patch for FreeBSD 4.3, its source tree, and the WIT2001 paper and slides

What it does

The tables in this section were measured with the FreeBSD module on the host.

With the module loaded and a personality selected, the tools report:

net.inet.tcp.emu_kindPersonalityNmap 7.98 -Op0f 3.09b (outbound SYN)
0offno exact match (guesses FreeBSD 12–13)FreeBSD
6Linux, as in the Nmap databaseexact: Linux 4.15 – 5.19, usually with other Linux-based entries (see below)Linux 2.2.x-3.x
7Linux, as measured on Ubuntu 26.04.1no exact match; best guess Linux 4.15 – 5.19 (97%)Linux 2.2.x-3.x
8Windows 11exact: Microsoft Windows 10 1703 or Windows 11 21H2Windows NT kernel

Each personality was compared with a real host on the same test network:

  • Windows 11 (build 22621). Nmap, p0f and JA4T give personality 8 and the real host the same result. In the Nmap fingerprints every test line from OPS to IE is identical; the SEQ line differs only in two measured values that also vary between runs of the same host.
  • Ubuntu 26.04.1 (Linux 7.0). Nmap does not recognize the real host: its database ends at Linux 6.0. Personality 7 gets the same non-match, with the same list of guesses. Personality 6 follows the database instead and is an exact match. Pick 6 to satisfy the tool, 7 to look like a current machine. With 6, Nmap lists every database entry the fingerprint satisfies. Linux 4.15 – 5.19 is always first. In most runs OpenWrt 21.02 (Linux 5.4) follows, and often MikroTik RouterOS 7.2 – 7.5 (Linux 5.6.3) as well; both are Linux systems. The fingerprints of these runs differ only in two measured values of the SEQ line. test/results/kind6-rerun/ holds six such runs.

With personality 8, FIN, NULL and Xmas scans show every port as closed, as they do against Windows. SYN and connect scans show the true state with every personality.

IPv6

Both modules also work on IPv6. Nmap identifies IPv6 hosts with a separate classifier whose known systems are older than those of its IPv4 database, so the names differ from the table above. Each row is five scans with nmap -6 -O; all five gave the same verdict.

TargetPersonalityNmap 7.98 -6 -O
FreeBSD 15.1 with the module0, offno match (guess: FreeBSD 12, 91%)
6, Linuxexact: Linux 4.19
8, Windows 11exact: Microsoft Windows Vista, Windows 7 SP1, Windows Server 2008 R2 or Windows 8.1
Ubuntu 26.04.1 with the module0, offexact: Linux 4.19
8, Windows 11exact: Microsoft Windows Vista, Windows 7 SP1, Windows Server 2008 R2 or Windows 8.1
a real Windows 11 (build 22621)exact: Microsoft Windows Vista, Windows 7 SP1, Windows Server 2008 R2 or Windows 8.1

Personality 8 gets the verdict that the real Windows 11 gets, and personality 6 on FreeBSD gets the verdict of the real Linux host. Before the IPv6 hooks were added, a FreeBSD host set to 8 was still reported as FreeBSD over IPv6 while it was reported as Windows over IPv4.

A jail with its own network stack (FreeBSD) and a network namespace (Linux) keep their own personality over IPv6 as well. The IPv4 verdicts did not change. The raw output is in test/results/ipv6/.

Values 1 to 5 are the personalities of the 2001 version (FreeBSD, NetBSD, Windows, Windows 2000, Cisco). They are kept for reference and do not match anything in a current Nmap database: those systems generated initial sequence numbers in recognizable ways, and this module does not change sequence numbers.

Build and use

On FreeBSD 15.1 with the kernel sources in /usr/src:

cd freebsd
make
kldload ./aod.ko
sysctl net.inet.tcp.emu_kind=8

To stop: sysctl net.inet.tcp.emu_kind=0, then kldunload aod.

While a personality is active the module turns off per-connection TCP timestamp offsets (net.inet.tcp.ts_offset_per_conn). The previous value is restored when the personality is switched off or the module is unloaded.

The setting is kept per network stack. A jail with its own stack can have a personality of its own, and can be kept from changing it; see freebsd/jail/.

Linux

With the kernel headers installed:

cd linux
make
insmod ./aod_linux.ko
sysctl -w net.ipv4.tcp_emu_kind=8

To stop: sysctl -w net.ipv4.tcp_emu_kind=0, then rmmod aod_linux.

While a personality is active the module changes tcp_timestamps and tcp_ecn of the namespace, and puts them back afterwards. The setting is kept per network namespace; see linux/lxc/ for containers.

The Linux module was tested with personality 8 only. On an Ubuntu 26.04.1 host (Linux 7.0) and in a container on it, Nmap 7.98 reports an exact match: Microsoft Windows 10 1703 or Windows 11 21H2. The IPv6 result is in the table above. The other numbers in "What it does" and "Cost" were not measured with it.

How it works

Two hooks are registered on the IPv4 pfil head of each network stack and two on the IPv6 head (on Linux, netfilter hooks in each network namespace). The module keeps no per-connection state.

  • Outbound: TTL, DF, IP ID, the window of SYN and SYN/ACK, the order of TCP options, the timestamp option of the host's own SYN, the window scale value, the acknowledgment field of a bare RST, the code of an ICMP echo reply.
  • Inbound: clears the ECN bits of a SYN, and answers by itself the segments that the imitated system treats differently (no flags, SYN+FIN, FIN without ACK).
  • IPv6: the hop limit takes the place of the TTL, and the TCP handling is the same code. Four things were added for personality 8 after comparing with the real Windows 11: the window of a SYN/ACK is rounded to the IPv6 minimum segment size, an echo request with a nonzero code is answered with code 0, a solicited neighbor advertisement carries the override flag and the link-layer address, and the acknowledgment field of a bare RST repeats its sequence field. The flow label and other ICMPv6 messages are left as the kernel sends them.

Cost

Measured in a QEMU/KVM guest (8 vCPU) against the host over a virtual link; medians of five rounds. Differences below about ten percent are not resolved by this setup.

Conditionreceive Gbit/ssend Gbit/sconnections/s
no module2.5016.6414828
loaded, off2.5316.0114483
6 Linux (database)2.4916.0316537
7 Linux (as measured)2.4916.1314252
8 Windows 112.5116.2816747

An earlier Windows variant that used no TCP timestamps at all sent about 9% slower with TSO and LRO disabled. The same drop appears without the module when timestamps are disabled in the stock kernel, so it comes from running without timestamps, not from the module. Personality 8 does without timestamps only on the connections the host opens.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    934
  • 2

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    929
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    698
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    463
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    412
  • 6

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    391

Explore all tools

Browse our collection of tools

View all tools →