Questions tagged [scapy]
Scapy is a network packet manipulation tool for use with Python.
scapy
2,207
questions
0
votes
0
answers
10
views
I don't understand what is Network Padding
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....
0
votes
0
answers
13
views
Python Scapy, the ARP packge gives me the WARNING that I should put destination mac address, but I did
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 ...
-1
votes
0
answers
32
views
Modifying UDP payload on the fly with scapy
My network has 2 interfaces
eth1 ethernet 192.168.1.1
eth2 wifi 10.42.0.1
Linux Ubuntu
I'm getting ~20 udp packets to the port 10000 each 1 sec with the eth1 interface and it sends to my wifi hotspot ...
0
votes
0
answers
11
views
Trouble sending ICMP packets using Scapy in Mininet
Description:
I'm working on a project using Mininet and Python to simulate an ad-hoc network where nodes communicate using ICMP packets. I’m trying to send ICMP echo requests (ping) directly using ...
1
vote
0
answers
22
views
tcpdump is not available when extracting packet features in windows
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 ...
0
votes
0
answers
19
views
Sending Ethernet Frame Without any local network (Scappy)
I am using two computers, one in linux with wireshark and monitor mode activated to sniff all nearby requests, and one with windows that uses scappy to send ethernet frames.
Is it possible to send ...
0
votes
0
answers
33
views
Raw payload of a packet change while passing through a gre tunnel
I have to tag a packet using the personal id of the sender, and in order to do that I'm encapsulating it in a gre packet. I'm using an hash function on the id and then:
gre_packet = Ether() / IP(src=...
0
votes
0
answers
36
views
intercept a packet/request and block it in python scapy
I am working on a project where I analyze the traffic of my computer with scapy, I would like to be able to intercept the request and when it is a request to a certain IP address to be able to block ...
0
votes
0
answers
35
views
ARP spoofing makes my Target Machine lose internet
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 ...
0
votes
0
answers
12
views
How do I ping an Ip address using scapy and Python? [duplicate]
In my Python homework I need to ping an Ip address 3 times using scapy, I managed to get an Ip address but I don't know how to ping that address. Any suggestions?
I tried Looking online and I found ...
0
votes
0
answers
32
views
OSError: [Errno 97] Address family not supported by protocol on Pycharm using scapy
I am trying to learn more coding to sniff network traffic and I chose to learn about the python package scapy. Tutorials are going OK except whenever I try to send packets I get an error stating "...
0
votes
0
answers
19
views
Extract PDU info from pcapng file using scapy
I have pcapng file, and I want to extract information from layers. When I open file in Wireshark, I have following layers: Ethernet, VLAN, IpV6, User Diagram protocol, PDU Transport Protocol. I have ...
0
votes
1
answer
20
views
Scapy IPsec AH Tunnel mode in socket
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 ...
0
votes
0
answers
35
views
Scapy AH Tunnel Mode
When AH is generated with Scapy Security Association, Wireshark does not show the protocol type as AH and only displays the inner IP protocol in the packet listing.
from scapy.all import *
from ...
1
vote
1
answer
67
views
multiple sniffers with scapy using tornado
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 ...