hostname-discovery.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:Concierge 作者: lixmk 项目源码 文件源码
def scan():
    print "[*] Starting Scan"
    nm = nmap.PortScanner()
    if dns is not None:
        print "[*] Performing DNS lookups using DNS server: "+dns
        nm.scan(hosts=rhosts, arguments=('-sL -R --dns-server '+dns))
    else:
        print "[*] Performing DNS lookups using System DNS"
        nm.scan(hosts=rhosts, arguments='-sL -R')
    for host in nm.all_hosts():
        results.append(nm[host].hostname().lower()+","+host)
    print "[*] Scan Complete"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号