Error Processing Of Port Scapy Failed
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more importerror: no module named pcapy about Stack Overflow the company Business Learn more about hiring developers or posting scapy windows ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack
Scapy Python 3
Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Python/Macports import error - scapy up vote 0 down vote favorite
Scapy Tutorial
I had some free time tonight, and decided to try out a tool called wifijammer (https://github.com/DanMcInerney/wifijammer) that I read about on reddit a while back. I cloned the project off gituhub, chmod'd the python file, and installed scapy using macports. However, when I run the wifijammer.py file, it gives me: ImportError: No module named scapy And references the line: from scapy.all import * I googled around and found that macports there is a difference between v1.x and v2.x which requires scapy or scapy.all — I tried both without success. I also check my version with, sudo port installed | grep -i scapy Which spits back: scapy @2.2.0_1 (active) I'm really not too sure where to go with this one. I can post any additional information that people may need. Help? python macports scapy share|improve this question asked Mar 14 '14 at 7:13 bhekman 1,8661323 possible duplicate of Error Importing scapy into Python interpreter on OSX [MacPorts install] –J.F. Sebastian Mar 14 '14 at 13:13 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote Nevermind! Finally found the source of the problem. Y'all can read about it and its solution here: Error Importing scapy into Python interpreter on OSX [MacPorts install] share|improve this answer answered Mar 14 '14 at 7:19 bhekman 1,8661323 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not
here for a quick overview of the site Help Center Detailed answers to
Wget
any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack http://stackoverflow.com/questions/22398427/python-macports-import-error-scapy Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why is the scapy installation failing on Mac? up vote 4 down vote favorite When I try installing scapy on Mac, I get this error: Collecting scapy Downloading http://stackoverflow.com/questions/33849901/why-is-the-scapy-installation-failing-on-mac scapy-2.3.1.zip (1.1MB) 100% |████████████████████████████████| 1.1MB 436kB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://stackoverflow.com/questions/30572551/how-to-fix-tcp-out-of-range-seq-number-error-when-replaying-pcap-file-using-sc Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to fix, TCP out of error processing range seq number error, when replaying pcap file using scapy and python script? up vote 1 down vote favorite I am using following python script to replay PCAP files from Debian machine. from scapy.all import * global src_ip, dst_ip src_ip = "10.1.1.14" dst_ip = "10.1.1.1" src_mac = "Src_mac_addr" dst_mac = "Dst_mac_addr" infile = "mms.pcap" def my_send(rd, count=100): pkt_cnt = 0 p_out = [] for p in error processing of rd: pkt_cnt += 1 np = p.payload if p.haslayer(IP) == 1: np[IP].dst = dst_ip np[IP].src = src_ip del np[IP].chksum if p.haslayer(Ether) == 1: p[Ether].dst = dst_mac p[Ether].src = src_mac #del np[IP].chksum #del np[TCP].chksum if p.haslayer(TCP) == 1: del np[TCP].chksum if p.haslayer(UDP) == 1: del np[UDP].chksum #np[IP].show2() p_out.append(np) if pkt_cnt % count == 0: send(PacketList(p_out)) p_out = [] # Send remaining in final batch send(PacketList(p_out)) print "Total packets sent %d" % pkt_cnt try: my_reader = PcapReader(infile) my_send(my_reader) except IOError: print "Failed reading file %s contents" % infile sys.exit(1) But Packets are getting dropped in firewall with the following error messages: 1 11:15:16.481371 no matching TCP flow (#178) TCP: 10.1.1.14 > 10.1.1.1 ports 102 > 1089, SA, MSS 1460, SACK OK, DF, DSCP 0 2 11:15:16.482790 TCP out of range seq number * (#82) TCP: 10.1.1.14 > 10.1.1.1 ports 1089 > 102, A, DF, DSCP 0 3 11:15:16.620475 TCP out of range seq number * (#82) TCP: 10.1.1.14 > 10.1.1.1 ports 1089 > 102, data length 4, PA, DF, DSCP 0 4 11:15:16.687494 TCP out of range seq number * (#82) TCP: 10.1.1.14 > 10.1.1.1 ports 1089 > 102, data length 18, PA, DF, DSCP 0 5