https://github.com/fortra/impacket
Impacket is a collection of Python classes for working with network protocols.
https://github.com/fortra/impacket
dcerpc dcom impacket kerberos msrpc netbios pass-the-hash python smb wmi
Last synced: about 1 month ago
JSON representation
Impacket is a collection of Python classes for working with network protocols.
- Host: GitHub
- URL: https://github.com/fortra/impacket
- Owner: fortra
- License: other
- Created: 2015-04-15T14:04:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2026-10-14T14:25:40.000Z (about 1 month ago)
- Last Synced: 2026-10-14T23:35:12.914Z (about 1 month ago)
- Topics: dcerpc, dcom, impacket, kerberos, msrpc, netbios, pass-the-hash, python, smb, wmi
- Language: Python
- Homepage: https://www.coresecurity.com
- Size: 11.2 MB
- Stars: 16,168
- Watchers: 370
- Forks: 3,970
- Open Issues: 322
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-python - fortra/impacket - Impacket is a collection of Python classes for working with network protocols. (Networking and Distributed / Networking)
- Python-Security-Tool-Database - Impacket - Impacket is a flexible toolkit for crafting, manipulating, and analyzing network protocols. Never leave home without it. (Synopsis / Table of Contents)
- awesome-hacking-lists - fortra/impacket - Impacket is a collection of Python classes for working with network protocols. (Python)
- awesome-killchain - Impacket - 2.0 (Offensive (ATT&CK tactics) / ▶️ Execution)
- awesome-rea - Impacket - Impacket is a Python library for constructing and parsing network packets and working with protocol implementations. <sub>Tool · [Full entry](https://awesomerea.org/resources/impacket/)</sub> (Resources / Protocol)
- github-ultimate-repos - fortra/impacket - | ⭐ 16,192★ | 🍴 3,974 | 💻 `Python`🔗 <https://github.com/fortra/impacket>📝 Impacket is a collection of Python classes for working with network protocols.⚙️ `Community-driven Markdown AST linting -> automated link health validation CI -> structured taxonomy indexing -> curated developer guidance publication.` (📜 Master Categorized Repository Directory (100% Clickable Links) / [01] CURATED KNOWLEDGE, DEVELOPER GUIDES, BOOKS & AWESOME COLLECTIONS)
- awesome-pentest-tools - impacket
- awesome-ai-agents - fortra/impacket - (16242 Python) - Impacket is a Python library offering low-level programmatic access and implementations for various network protocols, focusing on security research and educational use. (Security & Privacy Agents / Runtime Analysis Tools)
README

Impacket
========
[](https://pypi.python.org/pypi/impacket/)
[](https://github.com/fortra/impacket/actions/workflows/build_and_test.yml)
Copyright Fortra, LLC and its affiliated companies. All rights reserved.
Impacket was originally created by [SecureAuth](https://www.secureauth.com/labs/open-source-tools/impacket), and now maintained by Fortra's Core Security.
Impacket is a collection of Python classes for working with network
protocols. Impacket is focused on providing low-level
programmatic access to the packets and for some protocols (e.g.
SMB1-3 and MSRPC) the protocol implementation itself.
Packets can be constructed from scratch, as well as parsed from
raw data, and the object-oriented API makes it simple to work with
deep hierarchies of protocols. The library provides a set of tools
as examples of what can be done within the context of this library.
What protocols are featured?
----------------------------
* Ethernet, Linux "Cooked" capture.
* IP, TCP, UDP, ICMP, IGMP, ARP.
* IPv4 and IPv6 Support.
* NMB and SMB1, SMB2 and SMB3 (high-level implementations).
* MSRPC version 5, over different transports: TCP, SMB/TCP, SMB/NetBIOS and HTTP.
* Plain, NTLM and Kerberos authentications, using password/hashes/tickets/keys.
* Portions/full implementation of the following MSRPC interfaces: EPM, DTYPES, LSAD, LSAT, NRPC, RRP, SAMR, SRVS, WKST, SCMR, BKRP, DHCPM, EVEN6, MGMT, SASEC, TSCH, DCOM, WMI, OXABREF, NSPI, OXNSPI.
* Portions of TDS (MSSQL) and LDAP protocol implementations.
Maintainer
==========
[Core Security](https://www.coresecurity.com/)
Table of Contents
=================
* [Getting Impacket](#getting-impacket)
* [Setup](#setup)
* [Testing](#testing)
* [Licensing](#licensing)
* [Disclaimer](#disclaimer)
* [Contact Us](#contact-us)
Getting Impacket
================
### Latest version
* Impacket v0.13.1
[](https://pypi.python.org/pypi/impacket/)
[Current and past releases](https://github.com/fortra/impacket/releases)
### Development version
* Impacket v0.14.0-dev (**[master branch](https://github.com/fortra/impacket/tree/master)**)
[](https://github.com/fortra/impacket/tree/master)
Setup
=====
### Quick start
> :information_source: We recommend using `pipx` over `pip` for system-wide installations.
In order to grab the latest stable release run:
python3 -m pipx install impacket
If you want to play with the unreleased changes, download the development
version from the [master branch](https://github.com/fortra/impacket/tree/master),
extract the package, and execute the following command from the
directory where Impacket has been unpacked:
python3 -m pipx install .
### Docker Support
Build Impacket's image:
$ docker build -t "impacket:latest" .
Using Impacket's image:
$ docker run -it --rm "impacket:latest"
Testing
=======
The library leverages the [pytest](https://docs.pytest.org/) framework for organizing
and marking test cases, [tox](https://tox.readthedocs.io/) to automate the process of
running them across supported Python versions, and [coverage](https://coverage.readthedocs.io/)
to obtain coverage statistics.
A [comprehensive testing guide](TESTING.md) is available.
Licensing
=========
This software is provided under a slightly modified version of
the Apache Software License. See the accompanying [LICENSE](LICENSE) file for
more information.
SMBv1 and NetBIOS support based on Pysmb by Michael Teo.
Disclaimer
==========
The spirit of this Open Source initiative is to help security researchers,
and the community, speed up research and educational activities related to
the implementation of networking protocols and stacks.
The information in this repository is for research and educational purposes
and not meant to be used in production environments and/or as part
of commercial products.
If you desire to use this code or some part of it for your own uses, we
recommend applying proper security development life cycle and secure coding
practices, as well as generate and track the respective indicators of
compromise according to your needs.
## Contact Us
For general questions, bug reports, or feature requests, please use GitHub issues.
Contributions are welcome. If you would like to contribute a fix, improvement, or new feature, please open a GitHub pull request with a clear description of the proposed change.
If you believe you have discovered a security vulnerability in Impacket, or if you believe Impacket is being abused or misused, please do **not** report it through a public GitHub issue, discussion, or pull request. Instead, follow the instructions in our [Security Policy](SECURITY.md).