Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

dns request scapy

from scapy.all import DNS, DNSQR, IP, sr1, UDP

dns_req = IP(dst='8.8.8.8') / UDP(dport=53) / DNS(rd=1, qd=DNSQR(qname='www.thepacketgeek.com'))
answer = sr1(dns_req, verbose=0)
Comment

PREVIOUS NEXT
Code Example
Python :: how to minimize tkinter window 
Python :: django bootstrap 5 
Python :: delete element of a list from another list python 
Python :: celsius to fahrenheit in python 
Python :: distance euc of two arrays python 
Python :: roc curve python 
Python :: python print file 
Python :: opencv get area of contour 
Python :: first position dict python 
Python :: pandas remove row if missing value in column 
Python :: python copy file and rename 
Python :: how to change background color in python turtle 
Python :: pandas convert to 2 digits decimal 
Python :: check if any value is null in pandas dataframe 
Python :: pd.to_datetime python 
Python :: file exist python 
Python :: csv to numpy array 
Python :: pip install apache beam gcp 
Python :: array for each in python 
Python :: python set env var 
Python :: disable devtools listening on ws://127.0.0.1 python 
Python :: debugging pytest in vscode 
Python :: add column as index pandas 
Python :: docker python 3.8 ubuntu 
Python :: matplotlib legend out of plot 
Python :: how to loop the length of an array pytoh 
Python :: how to take list of float as input in python 
Python :: ver todas linhas dataframe pandas 
Python :: pca in sklearn 
Python :: generate matrix python 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =