Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
96 views

I need to manipulate pcap with some packets that are IP-in-IP encapsulated. Wireshark/tshark readily shows encapsulation: However, scapy can't see encapsulated packet (IP layer): Wireshark shows ...
LetMeSOThat4U's user avatar
-2 votes
1 answer
101 views

Edit: theoretically maximum size of a packet is 64KB. However, broken or not, such packets do happen in practice on some more exotic network hardware. For purpose of testing a network device I need to ...
LetMeSOThat4U's user avatar
-4 votes
1 answer
98 views

I'm working on a project about VPN tunneling, I've been following along with this example (https://www.youtube.com/watch?v=t_VmiXNWKkk&list=WL&index=2&pp=gAQBiAQB). The guy demonstrates ...
Robert Chaney's user avatar
0 votes
1 answer
94 views

When running the following code: import time from scapy.all import AsyncSniffer sniffy = AsyncSniffer(iface="wlp0s20f3", filter="not arpand not port 22") sniffy.start() time....
Mo_'s user avatar
  • 2,383
0 votes
1 answer
78 views

Getting into protocol development with Scapy, going through documentation and watching videos on Scapy but I'm a bit confused with field types. Let's assume something generic for a packet structure: | ...
Darkonode's user avatar
0 votes
0 answers
24 views

I've implemented a protocol(Packet) in Scapy, which is does send its defined fields as well as its app_data either inverted or non-inverted on the wire. I want to use a simple flag attribute which is ...
CAoT's user avatar
  • 192
0 votes
0 answers
64 views

Environment: WSL Ubuntu Network: Bridge When requesting DNS through dns.resolver in Python, a response is received, but when importing Scapy and requesting a DNS query, no response is received. No ...
user30767100's user avatar
1 vote
0 answers
73 views

I am using Scapy to learn about Wi-Fi. I am new to both Scapy and Wi-Fi. I have a Raspberry Pi 5 and a laptop, running Debian GNU/Linux 12 (Bookworm) and Ubuntu 22.04.1 LTS, respectively, and an ALFA ...
Aldo's user avatar
  • 398
0 votes
0 answers
60 views

I am building a user-space NAT/router in Python using Scapy (on Windows 11, with Npcap). The setup is: Laptop1: Runs the NAT script, it has a single Wi-Fi NIC Laptop2: Sets Laptop1 as its default ...
dpnoob's user avatar
  • 1
-3 votes
2 answers
276 views

I am trying to send a raw tcp packet over Ipv6 using Scapy. But I always get the warning: No route found for IPv6 destination (ipv6 address) (no default route?) I am deploying in Kali Linux. My ...
IceLove's user avatar
  • 25
0 votes
0 answers
158 views

I need some help in accomplishing 2 things with scapy: extract the payload bytes as integers from the TCP layer Also get access to the HTTP components like the Host , path , Cookies , Headers , User ...
Nikhil Shivanath's user avatar
0 votes
0 answers
43 views

How do I get my router in Mininet to send the "Packet Too Big" error back to the host before the host fragments the packet? In Wireshark, I am only able to view the fragmented packets when I ...
Vimal Rich's user avatar
0 votes
0 answers
93 views

I am trying to conduct a spoofing attack using scapy. Here is my code: import scapy.all as scapy from scanner import scan #NOTE: The scanner module takes in an IP Address and finds the #...
Sereen Taleb's user avatar
1 vote
0 answers
118 views

I want to do a script for get all hostnames from IP addresses of my internal DNS. I have used socket.gethostbyaddr(ip) and I got always the correct answer but when I try to do it with Scapy with PTR ...
CoDeC__'s user avatar
  • 113
1 vote
0 answers
49 views

For purposes of testing network hardware I need to set (obsolete) Kind=15 (alternate checksum) option on TCP/IP connection in a pcap file I received from somebody. This answer specifies how to set an ...
LetMeSOThat4U's user avatar
1 vote
1 answer
103 views

So , I am trying to create scapy dissection for mms protcol . Currently I am stuck with ISO 8823 OSI Presentation Layer Protocol. I want to create field dissection for Length A , but its dependent on ...
klin's user avatar
  • 41
1 vote
1 answer
66 views

from scapy.all import traceroute def perform_traceroute(target): result, _ = traceroute(target, maxttl=50, verbose=True) print(result) for hop in result: query_packet = hop[0]...
Wayne McNicol's user avatar
1 vote
0 answers
364 views

I have been working on Scapy to sniff the wifi packets & works like a champ. With self interest started to read other supporting feature like bluetooth that supported by Scapy framework Started to ...
Anand's user avatar
  • 1,985
1 vote
1 answer
569 views

These are the two main functions for scapy: def spck_clbk(packet): global ip_cnt if IP in packet: save_pkDATA(packet) ip_cnt += 1 ip_src = packet[IP].src ip_trg ...
derCollegeblock's user avatar
1 vote
0 answers
33 views

I am trying to extend Scapy's protocol parsing capabilities. Here is my code: from scapy.all import * class IEEE1722(Packet): name = "ieee1722" fields_desc = [ BitField(&...
goon's user avatar
  • 25
1 vote
1 answer
170 views

Not able to sniff the packet on New Raspberry pi5 device Arm64 using wifi TP link Ac600 dongle but the same code works on pi4 for same dongle. Wlan1 is set to monitor mode from scapy.all import * ...
anandyn02's user avatar
  • 465
5 votes
1 answer
216 views

Trying to extract the vendor information (Apple, Samsung, etc) from Probe Request coming from mobile, So far no luck. Not sure where the corrections to be made to get this info. Adding my code: import ...
Anand's user avatar
  • 1,985
0 votes
1 answer
140 views

I'm experimenting with IPv6 Scapy and trying to set Router Alert Hop By Hop option. Here is the code sample: hdr = IPv6ExtHdrHopByHop(options=[("Router Alert", b'\x01\x00')]) ip6 = IPv6(src=&...
Some Name's user avatar
  • 9,760
1 vote
0 answers
79 views

I'm working on a project to design a network scanner. target_network_input.py is a script that asks the user to input the target network range. It prints all the possible networks on the console along ...
prince singh's user avatar
0 votes
0 answers
58 views

I’m trying to sniff ICMP packets on my network using Python, but I’ve noticed a limitation. When I use my script, I can only sniff packets that receive replies (e.g., echo-reply). However, for offline ...
John Adams's user avatar
0 votes
1 answer
167 views

In scapy I've added a layer with "bind_layers". But it seems that I did something wrong and a packet is not recognized correctly. I try to add a layer to scipy and don't understand where am ...
онконвулб дгюквншад's user avatar
4 votes
1 answer
168 views

I am experimenting with scapy in python and captured a test pcap which only contains a transfer of a file over HTTP. The contents of the file are plaintext. I am trying to basically change the Server ...
bd55's user avatar
  • 111
0 votes
1 answer
23 views

So, I have a simple python script which aims at detecting syn flood attacks in a virtual network environment called mininet using scapy. from scapy.all import * from collections import defaultdict ...
fclorenzo's user avatar
1 vote
2 answers
63 views

I'm doing a MitM attack homework. It requires me to change the HTTP payload (adding script tags to the HTML content). I was able to inject the script but I found the content received on the user's ...
Patrick's user avatar
  • 157
0 votes
0 answers
42 views

from scapy.all import IP, ICMP, TCP, sr1 import sys def probe_scan(ip): probe_packet = IP(dst=ip) / ICMP() return sr1(probe_packet, timeout=10) != None def tryXMas(ip, port): xMas_packet ...
Artem Lysenko's user avatar
1 vote
1 answer
152 views

I am creating a TCP socket: with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as server_sock: server_sock.bind((HOST, PORT)) server_sock.listen() while True: sock, addr = ...
AndAsh's user avatar
  • 21
0 votes
0 answers
51 views

I am capturing a single package using scapy: from scapy.all import * while True: data = sniff(iface = 'lo', count = 1) Then I try to convert the resulting object into bytes: print(raw(data)) ...
AndAsh's user avatar
  • 21
1 vote
1 answer
57 views

For testing and debugging purposes, I'd like to be able to simulate the arrival of a package on a specific interface and have it then regularly go through the entire network stack. Is this possible ...
Philippe's user avatar
  • 2,146
0 votes
1 answer
384 views

Is it possible to intercept traffic with ARP-spoofing on Termux(rooted Android)? I have this python script: from scapy.all import * from scapy.interfaces import * from threading import Thread import ...
Kthun's user avatar
  • 11
-1 votes
1 answer
42 views

I am testing my Scapy code and when sending UDP, Wireshark shows the IPv4 protocol (without the ability to view the UDP packet). How to configure Wireshark to view more than just IP packets. Or is it ...
Mango's user avatar
  • 1
0 votes
0 answers
409 views

Is there a way to speed up pyshark processing? Details The rate in which pyshark loops over the packets is ~1000 packet per second, is it possible to speed it up? For comparison, scapy was checked ...
weshouman's user avatar
  • 973
0 votes
0 answers
111 views

PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of ...
S L Udit's user avatar
0 votes
0 answers
557 views

I am developing an IPS and using Scapy to parse the packets and to take actions based on the payloads present in the packet . I am currently trying to implement Drop/Block functionality . Came across ...
TECH HINDER's user avatar
0 votes
1 answer
453 views

I have a very simple tcp server socket listening for new connections. use std::net::TcpListener; fn main() { let listener = TcpListener::bind("127.0.0.1:7878").expect("Failed to ...
user avatar
0 votes
1 answer
127 views

>>> from scapy.all import load_contrib >>> load_contrib('ikev2') >>> IKEv2_Transform() Traceback (most recent call last): File "<stdin>", line 1, in <...
user26918948's user avatar
0 votes
0 answers
760 views

I have a python script which imports scapy to do some network packet analysis. The first thing my script reports is "WARNING: No libpcap provider available ! pcap won't be used". Without ...
Rolf's user avatar
  • 7,298
0 votes
1 answer
174 views

At the moment I play a little bit with scapy, Qt and python. So far everything worked fine when starting the programm with VSC. Now I tried to make an .exe with PyInstaller. It also worked, I got an ....
dennis_10-33's user avatar
1 vote
0 answers
224 views

I have a code that uses mitmproxy http function and it miserably fails here: def main(stdscr): try: parser = argparse.ArgumentParser(description='NetSour Network Analyzer') parser....
raspberry400's user avatar
1 vote
1 answer
115 views

I'm building an arp spoofer in Python with scapy and I have this function to send spoofed arp packets: def arp_spoof (dest_ip, dest_mac, source_ip): scapy.sendp(scapy.Ether(dst=dest_mac)/ scapy....
il.giaco's user avatar
1 vote
2 answers
2k views

I have this code, I want to automize the process of ARP Spoofing. You run the program like this sudo python3 arpSpoof.py 192.168.1.1 192.168.1.101 The first IP address is the one of the router, and ...
giaco dev's user avatar
1 vote
0 answers
363 views

I have been trying to extract statistical features from a packet(pcap) using pyflowmeter but I keep on getting traceback error that :'scapy.error.Scapy_Exception: tcpdump is not available', I know ...
Nehal Ahmed's user avatar
0 votes
0 answers
143 views

This is my code, I have tried flushing ip tables and enabled port forwarding. I don't know what is wrong with this script, I have also turned firewall off from my windows VM(target machine). Don't ...
Iamspeed Mc's user avatar
0 votes
1 answer
83 views

I am encountering a problem when trying to reconstruct packets in AH tunnel mode using Scapy. The packets are sent through a socket using the raw() method. Setup: AH Tunnel Mode Configuration: Outer ...
Ramon's user avatar
  • 1
1 vote
1 answer
135 views

I have 3 scripts: scriptA: creates a certain type of connection to a server using scapy and responds to some sort of keepalive packets it finds using AsyncSniffer(). This works fine. scriptB: sends a ...
Bobert1234's user avatar
0 votes
0 answers
58 views

I am trying to run some broadcast related tests in my network. I have a wireless client 10.48.225.30 and a wired host on the same subnet 10.48.225.45. I have a simple scapy script to run some ...
maxpower8888's user avatar

1
2 3 4 5
44