Tag: impacket

Hacking, Python

Manipulate Network Packets

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 (for instance NMB, SMB1-3 and MS-DCERPC) the protocol implementation itself. Packets can be constructed from scratch, as well as parsed from raw data, and the object oriented API …

Linux, Python

Simple python sniffer with pcapy and impacket

Pcapy home page Impacket home page To install pcapy and impacket: sudo apt-get install python-pcapysudo apt-get install python-pcapy sudo apt-get install python-impacketsudo apt-get install python-impacket Run the script below with root privileges. #!/usr/bin/python   import pcapy import sys from impacket import ImpactDecoder   def callback(header, data): decoder = ImpactDecoder.EthDecoder() ethernet_pck = decoder.decode(data) ip_hdr = ethernet_pck.child() …