Category : scapy

Is there a way to increment IPv6 address (routing prefix block only) using python ? 2001:db8:3333:4444:5555:6666:7777:8888 3333 should be incremented by 5333 (2000+) On each iterations value should be 2000+, Inside for loop I tried incrementing ipv6 address by, addr1 = ipaddress.IPv6Address(‘2001:db8:3333:4444:5555:6666:7777:8888’) addr1 = addr1 + 1000000 addr1 IPv6Address(‘2001:db8:3333:4444:5555:6666:7786:cac8’) Source: Python-3x..

Read more

Hi I’m trying to capture network incoming traffic and make reason of the data returned from a server. Here is an example: { "Ethernet": { "dst": "00:e0:4c:68:4e:ea", "src": "d4:35:1d:15:2d:46", "type": "IPv4" }, "IP": { "version": "4", "ihl": "5", "tos": "0x80", "len": "140", "id": "8738", "flags": "DF", "frag": "0", "ttl": "106", "proto": "tcp", "chksum": "0x8883", "src": ..

Read more

I have a Python script that is passing some Scapy commands, and I need to increment the sport by one each time the packet is sent (10 times). The command I have is this: from scapy.all import * import time Packet3 = send(IP(src="xxx.xxx.xxx.xxx", dst="xxx.xxx.xxx.xxx")/TCP(sport = 32700+1, flags="SFR")/"name of payload", count=10) What is being returned is ..

Read more

I am having an issue with creating a loop in such a way that it runs the same scapy script in 5-10 different instances. As of now this is the absolute minimum of packet building and sending in a loop. pkt=Ether(src=RandMAC())/IP(src=RandIP(),dst="8.8.8.8")/fuzz(UDP(sport=RandShort(), dport=int(80))) sendp(pkt, loop=1, verbose=0) What I am trying to achieve is to run this ..

Read more

**Dear friends i want to create neighbor relationship between Kali machine and Cisco firewall , but i don’t know which parameters should be else modified for that purpose ????strong text , I actually modified only IP source (Kali machine). and got only this when typed show ospf neighbor on firewall EXSTART/DROTHER relation .enter image description ..

Read more

I am using a very simple scapy code to send a dns packet to 8.8.8.8: from scapy.all import IP,DNS,DNSQR,UDP,sendp,Ether dns_req = IP(dst="8.8.8.8")/UDP(sport=6900,dport=53)/DNS(rd=1, qd=DNSQR(qname="www.google.com", qtype="A")) send(dns_req) I ran this exact code just a few days ago and could receive the reply. But now when I am trying it again, it is not working. Wireshark doesn’t even ..

Read more