{"id":13439160,"url":"https://github.com/libnet/nemesis","last_synced_at":"2026-02-21T19:46:36.951Z","repository":{"id":52645282,"uuid":"128102291","full_name":"libnet/nemesis","owner":"libnet","description":"A command-line network packet crafting and injection utility","archived":false,"fork":false,"pushed_at":"2023-09-29T05:47:13.000Z","size":797,"stargazers_count":489,"open_issues_count":3,"forks_count":68,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-08-04T09:01:53.883Z","etag":null,"topics":["nemesis","packet-crafting","packet-generator","packet-injection"],"latest_commit_sha":null,"homepage":"https://troglobit.com/projects/nemesis/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libnet.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-04-04T18:14:12.000Z","updated_at":"2024-08-01T02:05:09.000Z","dependencies_parsed_at":"2022-08-21T12:10:32.710Z","dependency_job_id":"179e793b-dbf7-4688-87fb-f869c0cf8c2d","html_url":"https://github.com/libnet/nemesis","commit_stats":null,"previous_names":["troglobit/nemesis"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libnet%2Fnemesis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libnet%2Fnemesis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libnet%2Fnemesis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libnet%2Fnemesis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libnet","download_url":"https://codeload.github.com/libnet/nemesis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244570917,"owners_count":20474148,"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":["nemesis","packet-crafting","packet-generator","packet-injection"],"created_at":"2024-07-31T03:01:11.640Z","updated_at":"2026-02-21T19:46:36.922Z","avatar_url":"https://github.com/libnet.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"N E M E S I S  -  Crafting \u0026 Injection\n======================================\n[![License Badge][]][License]  [![GitHub Status][]][GitHub] [![Coverity Status][]][Coverity Scan] \u003cimg align=\"right\" src=\"docs/logo.png\"\u003e\n\nThe Nemesis Project is designed to be a command line based, portable\nhuman IP stack for UNIX-like and Windows systems.  The suite is broken\ndown by protocol, and should allow for useful scripting of injected\npackets from simple shell scripts.\n\nThe latest release is always available from GitHub at  \n\u003e https://github.com/libnet/nemesis/releases\n\n\nKey Features\n------------\n\n* ARP/RARP, DNS, ETHERNET, ICMP, IGMP, IP, OSPF, RIP, TCP and UDP\n  protocol support\n* Layer 2 or Layer 3 injection on UNIX-like systems\n* Layer 2 injection (only) on Windows systems\n* Packet payload from file\n* IP and TCP options from file\n* Tested on OpenBSD, Linux, Solaris, Mac OS X and Windows 2000\n\nEach supported protocol uses its own protocol \"injector\" which is\naccompanied by a man page explaining its functionality.\n\nConsult the ChangeLog for release details, and the documentation for\neach protocol injector for in-depth descriptions of the available\nfunctionality.\n\n\nExamples\n--------\n\n* Inject malformed ICMP redirect\n\n        sudo nemesis icmp -S 10.10.10.3 -D 10.10.10.1 -G 10.10.10.3 -i 5\n\n* DHCP Discover (must use sudo and `-d` to send with source IP 0.0.0.0):\n\n        sudo nemesis dhcp -d eth0\n\n* IGMP v2 join for group 239.186.39.5\n\n        sudo nemesis igmp -v -p 22 -S 192.168.1.20 -g 239.186.39.5 -D 239.186.39.5\n\n* IGMP v2 query, max resp. time 10 sec, with Router Alert IP option\n\n        echo -ne '\\x94\\x04\\x00\\x00' \u003eRA\n        sudo nemesis igmp -v -p 0x11 -c 100 -D 224.0.0.1 -O RA\n\n  or\n\n        echo -ne '\\x94\\x04\\x00\\x00' | sudo nemesis igmp -v -p 0x11 -c 100 -D 224.0.0.1 -O -\n\n* IGMP v3 query, with Router Alert IP option\n\n        echo -ne '\\x03\\x64\\x00\\x00' \u003e v3\n        sudo nemesis igmp -p 0x11 -c 100 -i 0.0.0.0 -P v3 -D 224.0.0.1 -O RA\n\n* Random TCP packet\n\n        sudo nemesis tcp\n\n* DoS and DDoS testing\n\n        sudo nemesis tcp -v -S 192.168.1.1 -D 192.168.2.2 -fSA -y 22 -P foo\n        sudo nemesis udp -v -S 10.11.12.13 -D 10.1.1.2 -x 11111 -y 53 -P bindpkt\n        sudo nemesis icmp redirect -S 10.10.10.3 -D 10.10.10.1 -G 10.10.10.3 -qR\n        sudo nemesis arp -v -d eth0 -H 0:1:2:3:4:5 -S 10.11.30.5 -D 10.10.15.1\n\n\nBuild \u0026 Install\n---------------\n\nNemesis is built around [libnet][].  Windows platform builds require\n[libpcap][] as well.  Nemesis \u003c= 1.4 was built around libnet 1.0 and\nNemesis \u003e= 1.5 require libnet 1.1, or later.\n\n### Debian/Ubuntu\n\n    curl -sS https://deb.troglobit.com/pubkey.gpg | sudo apt-key add -\n    echo \"deb [arch=amd64] https://deb.troglobit.com/debian stable main\" | sudo tee /etc/apt/sources.list.d/troglobit.list\n    sudo apt-get update \u0026\u0026 sudo apt-get install nemesis\n\n### Building from Source\n\nOn Debian and Ubuntu derived GNU/Linux systems:\n\n    sudo apt install libnet1-dev\n\nThis installs the libnet headers and library in a standard location\nwhich the `configure` script easily can find.  Should your libnet1\ninstallation be in a non-standard location you can provide the paths\nlike this:\n\n    configure LDFLAGS=-L/path/to/lib CPPFLAGS=-I/path/to/header\n\nThe [GNU Configure \u0026 Build][buildsystem] system use `/usr/local` as the\ndefault install prefix.  Usually this is sufficient, the below example\ninstalls to `/usr` instead:\n\n    tar xf nemesis-1.7.tar.xz\n    cd nemesis-1.7/\n    ./configure --prefix=/usr\n    make -j5\n    sudo make install-strip\n\n### Installing on Windows\n\nnemesis.exe can be installed anywhere on a Windows system.  The caveat is \nthat LibnetNT.dll must exist either in the same directory as nemesis.exe or\nin any of the directories listed in the `%PATH%` variable.  On Windows 2000\nthis would be `%SystemRoot%\\System32`\n\n**Note:** the windows build has not been tried or tested in over a decade. YYMV\n\n\nBuilding from GIT\n-----------------\n\nIf you want to contribute, or simply want to try out the latest but\nstill unreleased features, then you need to know a few things about\nthe [GNU Configure \u0026 Build][buildsystem] system:\n\n- `configure.ac` and a per-directory `Makefile.am` are key files\n- `configure` and `Makefile.in` are generated from `autogen.sh`,\n  they are not stored in GIT but automatically generated for the\n  release tarballs\n- `Makefile` is generated by `configure` script\n\nTo build from GIT you first need to clone the repository and run the\n`autogen.sh` script.  This requires `automake` and `autoconf` to be\ninstalled on your system.\n\n    git clone https://github.com/libnet/nemesis.git\n    cd nemesis/\n    ./autogen.sh\n    ./configure \u0026\u0026 make\n\nGIT sources are a moving target and are not recommended for production\nsystems, unless you know what you are doing!\n\n\nOrigin \u0026 References\n--------------------\n\n* **1999**: Nemesis was created by Mark Grimes\n* **2001**: Jeff Nathan took over maintainership\n* **2018**: Project resurrected by Joachim Nilsson\n\nThe project is currently maintained at [GitHub][] with the intention to\nserve as a focal point for new development.  If you have patches and/or\nideas, please submit them using the issue tracker or as pull requests.\n\n[License]:         https://en.wikipedia.org/wiki/BSD_licenses\n[License Badge]:   https://img.shields.io/badge/License-BSD%203--Clause-blue.svg\n[GitHub]:          https://github.com/libnet/nemesis\n[libnet]:          https://sourceforge.net/projects/libnet-dev/\n[libpcap]:         http://www.tcpdump.org/\n[buildsystem]:     https://airs.com/ian/configure/\n[GitHub]:          https://github.com/libnet/nemesis/actions/workflows/ci.yml/\n[GitHub Status]:   https://github.com/libnet/nemesis/actions/workflows/ci.yml/badge.svg\n[Coverity Scan]:   https://scan.coverity.com/projects/15484\n[Coverity Status]: https://scan.coverity.com/projects/15484/badge.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibnet%2Fnemesis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibnet%2Fnemesis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibnet%2Fnemesis/lists"}