Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

impacket

> 编程语言
Open source

Impacket is a collection of Python classes for working with network protocols.

16.0K stars0 likes5 views
WebsiteGitHub

About

Impacket is a collection of Python classes for working with network protocols.

Impacket

Copyright Fortra, LLC and its affiliated companies. All rights reserved.

Impacket was originally created by SecureAuth, 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

Table of Contents

  • Getting Impacket
  • Setup
  • Testing
  • Licensing
  • Disclaimer
  • Contact Us

Getting Impacket

Latest version

  • Impacket v0.13.1 Current and past releases

Development version

  • Impacket v0.14.0-dev (master branch) 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, 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 framework for organizing and marking test cases, tox to automate the process of running them across supported Python versions, and coverage to obtain coverage statistics.

A comprehensive testing guide is available.

Licensing

This software is provided under a slightly modified version of the Apache Software License. See the accompanying 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

Whether you want to report a bug, send a patch, or give some suggestions on this package, reach out to us at https://www.coresecurity.com/about/contact.

For security-related questions check our security policy.

Issues· 314 open

View all issuesOpen on GitHub
  • #2277

    SMB 3.1.1: guest sessions still get signed, TREE_CONNECT then fails with STATUS_ACCESS_DENIED

    questionin reviewUpdated Sep 25, 2026
  • #2289

    [Security Advisory]

    Updated Sep 10, 2026
  • #2284

    findDelegation.py and GetNPUsers.py silently truncate results at 999 (missing paged search)

    bugUpdated Sep 10, 2026
  • #2271

    All SMB shares report type of Disk

    bugmediumUpdated Sep 3, 2026
  • #2257

    SMB3.kerberosLogin(mutualAuth=True) uses the full AP-REP subkey as `Session.SessionKey` instead of its first 16 bytes (breaks AES-256 encrypted sessions)

    in reviewUpdated Aug 12, 2026
  • #2249

    KRB5CCNAME with FILE: prefix is treated as a literal filesystem path

    enhancementUpdated Aug 12, 2026
  • #1573

    SMB SessionError: STATUS_MORE_PROCESSING_REQUIRED

    Updated Jul 22, 2026
  • #1374

    Exception when running tstool.py with verb qwinsta

    Updated Jun 24, 2026
  • #2022

    [Code Cleanup] getUnixTime function definition in many classes

    mediumUpdated Jun 23, 2026
  • #2139

    ntlmrelayx.py ldap socks bug for sasl GSS-SPNEGO authentication "unknown ldap binding request , cannot continue"

    in reviewUpdated Jun 18, 2026

> Tags

Pythondcerpcdcomimpacketkerberos

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言