goofile.py 文件源码

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

项目:kali-linux-repo 作者: DynamicDesignz 项目源码 文件源码
def run(dmn,file):

    h = httplib.HTTP('www.google.com')
    h.putrequest('GET',"/search?num=500&q=site:"+dmn+"+filetype:"+file)
    h.putheader('Host', 'www.google.com')
    h.putheader('User-agent', 'Internet Explorer 6.0 ')
    h.putheader('Referrer', 'www.g13net.com')
    h.endheaders()
    returncode, returnmsg, headers = h.getreply()
    data=h.getfile().read()
    data=re.sub('<b>','',data)
        for e in ('>','=','<','\\','(',')','"','http',':','//'):
        data = string.replace(data,e,' ')
    r1 = re.compile('[-_.a-zA-Z0-9.-_]*'+'\.'+file) 
    res = r1.findall(data) 
    return res
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号