Member-only story
Exploring More: Scapy
Scapy: Getting more Out of your packets
Index:
DNS Query
Traceroute
Ping Collection
· In throughout blog I am using below mentioned 2 ip address,
192.168.1.16: Use as destination IP addresses.
192.168.1.1: Use as Destination (Router) IP Address:
· DNS Query: The Domain Name System (DNS) is a hierarchical and decentralized naming system for computers, services, or other resources connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities.
To execute “DNS” the base domain of canonical domain name.
sr1(IP(dst=”192.168.1.16")/UDP()/DNS(rd=1,qd=DNSQR(qname=”www.google.com")))
Command Used:
sr1 : This is used to send and receives function that only returns the first answered packet.
Dst: Destination IP of the machine where you want to this packet.
UDP(): User DataGramProtocol. DNS is a UDP port which works on port 53.
DNS- To tell Scapy that we want to create a DNS packet.
Rd=1: 1 is used for recursion
qd=DNSQR(qname=”www.somesite.com”):
qd = “QueryDomain”