Package sending error with scapy

0

I'm doing the Python course for Hackers, but I came across a problem in the lesson on HOW TO CREATE YOUR FIRST PACKAGE. I can create the package, but I can not send it through sr (), sr1 (), srloop (), srloop1 (), etc ... I always come across this error here:

fail 1: IP / TCP 192.168.15.8:ftp_data > 192.168.15.8:http S

Does anyone have an idea of what can be and how can I solve it? I already researched the internet but could not find the solution (I could not actually find someone who has had this problem)

Note: Scapy is installed correctly, I already ran python as sudo and these were the commands I executed to create and send my package:

from scapy.all import *
ip = IP(dst="192.168.15.8")
tcp = TCP(dport=80)
pkt = ip/tcp
sr(pkt)

When I run these commands, I only see a lot of dots, so I use srloop() to see what happened, and when I run this command, the output I have is the error that I presented. If anyone has an idea of what can be and how to solve it, please help me.

    
asked by anonymous 05.08.2018 / 19:18

1 answer

0

Problem solved. My router works with the ip other than that, but when I execute commands to check the ip of the connection, this is the ip that appears.

    
05.08.2018 / 19:28