Error sending package with scapy

Asked

Viewed 47 times

0

Guys I’m taking the course Python for Hackers, but I came across a problem in the class about HOW TO CREATE YOUR FIRST PACKAGE. I can create the package, but I can’t send it through mr(), 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 any idea what it could be and how I can fix it? I’ve searched the internet but I couldn’t find the solution (actually I couldn’t find anyone who had this problem)

Note: Scapy is installed correctly, I already ran python as sudo and these were the commands I ran 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 rotate these commands only appear a bit of dots, then I use the srloop() to see what happened, and when I turn this command, the exit I have is the mistake I presented. If anyone has any idea what it might be and how to fix it, please help me.

1 answer

0

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.