更新时间:2022-05-29 21:44:40
好的.我找到了我的答案,我想在这里分享,因为有人可以寻找同样的东西.一行代码足以在scapy中进行反向dns查询,即:
Ok. I have found my answerm and I want to share it in here, because someone could look for same thing. One line of code is enough to make a reverse dns query in scapy, which is:
sr1(IP(dst="8.8.8.8")/UDP()/DNS(rd=1,qd=DNSQR(qname="211.196.59.69.in-addr.arpa", qtype='PTR')))