IPv6 decoder for pcapy/impacket

I use the pcapy/impacket library to decode network packets in Python. It has an IP decoder which knows about the syntax of IPv4 packets but apparently no IPv6 decoder. Does anyone get one? In a...

Changing the packet data with pcapy/impacket

I'm writing a small program in Python on Linux that will intercept packets flying over the wire on specific port from host A to host B. Host C will act as a man in the middle so all traffic will...

How to send an IP packet with given hex payload in Python?

I have sniffed an IGMP packet and now I would like to send it with the help of python. Is there any way to just send packet like 0x0000 01 00 5E 00 43 67 00 02-B3 C8 7F 44 81 00 00 DE ...

Displaying real time output to wx.TextCtrl

I'm currently in the process of building a wi-fi packet capture utility in Ubuntu using the modules wxPython, Pcapy and impacket. I have created the GUI in wxPython and the capture code...

Getting TCP packet payload from Python and impacket

I've been able to find packets of interest using code based on this example: https://stackoverflow.com/questions/2247140/how-can-i-filter-a-pcap-file-by-specific-protocol-using-python The next...

'Cannot request session' when using impacket's SMB client against a Windows machine

i am running on fedora 15 ( python 2.7 ) i've tried the imapcket.smb against windows 2000 sp4 (frensh) , windows xp sp2 (frensh) , windows xp sp3 (frensh) and it worked perfectly , but when i use...

How can I extract plain text from a packet Hex dump?

I'm using pycapy and Impacket to write a script that records and analyzes network traffic. The output looks like this: Ether: 00:1b:21:50:aa:b2 -> 00:25:11:2c:12:56 IP DF xxx.xxx.xxx.xx1 ->...

Packet sniffer in python using pcapy impacket

I'm trying to create a packet sniffer using pcapy and impacket. I'm stuck with data extraction phase. Unfortunately impacket is not properly documented. At least i could n't find one. Could anyone...

Impacket & dpkt sending features?

Is there any support for sending packets in impacket or dpkt libraries? I was able to find examples of sniffing, interpreting and constructing packets using these libraries, but they don't seem to...

Global name error in python program

I've got a code like that : #!/usr/bin/python # -*- coding: utf-8 -*- import tkMessageBox as box import time from tkFileDialog import...

Sending ICMPv6 Messages using Impacket (ImpactPacket and Impact Decoder)

I can't seem to find a good documentation for sending packets on ICMPv6 Messages. There is a sample from Impacket but it uses Ping6 so it simply calls ICMP6.ICMP6.Echo_Request(1,...

(Python impacket) smb Server with Logon?

I'm trying to implement an authentication section into the smbserver.py from the impacket lib. I changed the errorCode at the Line 2201 to STATUS_LOGON_FAILURE under some conditions, but my...

Sending a ICMPv6 Packet with VLAN while using Impacket

Hey guys I am quite a bind I have this function def send_ra_packet(self,source_link_layer, send_frequency,vlan_id = 0): ip = IP6.IP6() ip.set_source_address(self.get_source_address()) ...

Python - Pcapy to Scapy on SPAN port, odd behaviour

I built a network sniffer in Scapy but it can't handle the rate of packets I am sniffing (it adds 15-20 minutes of latency which is just unacceptable). I have used Pcapy before in the past at this...

"cannot import name smbserver" when using impacket with smbrelayx.py

I know this is not an actual info-sec question, but I am having problems with getting the smbrealyx.py module to work. For some reason I get the following error when I try to execute the...

I can not run a python script

I'm new and I use a translator, sorry if you do not understand well I'm trying to run a python script and I kali linux throws several errors. I do not understand python, I searched in google...

SublimeCodeIntel isn't looking in python 3 paths

I installed SublimeCodeIntel package in sublime text, and I use it to code in python 3. However, the problem is that it uses python2 paths to do the import, so if a library is installed in python2...

Parse WebCacheV01.dat in C#

I'm looking to parse the WebCacheV01.dat file using C# to find the last file location for upload in an Internet browser. %LocalAppData%\Microsoft\Windows\WebCache\WebCacheV01.dat I using the...

Script for Sambacry exploit encountered bug

I am doing a small school cybersec project, there is one small bug with my Python (with Impacket library: transport module for RPC) script. It is a very simple script and payload can be found on...

How to run file with smb

How can I use smb.py and smbConnection.py from impacket to run a file? I'm looking for something like: dir = smbConn.connectTree('C$') smbConn.openFile(dir, '/picture.jpg')

Get SMB Shared Files Name and Permissions In Java

I want to connect to an SMB server and browse through its files, and for a given path, to be able to retrieve a list of files and folders, with the names and permissions. I need to support all SMB...

python wmiexec.py(impacket) library to avoid writing files on ADMIN$ share folder

Need help on how to use impacket library which executes commands on remote windows servers from Linux, to not write any file on the remote server and still get the output, as wmiexec.py uses...

Understanding smb and DCERPC for remote command execution capabilities

I'm trying to understand all the methods available to execute remote commands on Windows through the impacket...

No module named 'pyrebase' in heroku python app

I'm trying to upload my django website to heroku platform but i got error: no module named pyrebase I'm trying to connect my django app with firebase API wrapper which "pyrebase". Everything is...

Are ADMIN$ and/or IPC$ shares enabled on Windows 10 machines in environments usually?

I am setting up a vulnerable windows 10 machine for use in my home testing lab and wonder if there is a business case for companies to usually have the ADMIN$ and/or IPC$ shares open (writable?)...

Cannot install PyExfil, zlib and ftplib not found

Tryed with pip: pip3 install pyexfil Requirement already satisfied: pyexfil in /usr/local/lib/python3.7/dist-packages/PyExfil-1.3-py3.7.egg (1.3) Requirement already satisfied: requests>=1.0.0 in...

SMB session setup failed: NT_STATUS_LOGON_FAILURE

I'm setting a mini Windows AD. My setup is a Windows Domain (2019), a W10 Client and a Linux Machine When I am accessing the C$ of the W10 client with smbclient as any user (even Administrator...

Python Script Fails

I am a complete novice at Python and I wish to run a script someone has made up to check against a critical windows vulnerability. I downloaded python and I thought I had downloaded all the...

Error with the Zerologon POC on Samba AC DC

I have a school projet that require me to emulate the CVE-2020-1472 (Zerologon) on a local environment. I am currently trying to test following github script but I am facing some issue that I...

Issue with impacket & python

Hi there boys and girls, I am trying to run a script written in python and the console is telling me this: Install the following library to make this script work Impacket :...