真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網站制作重慶分公司

http_banner獲取2.0

更新如下

創(chuàng)新互聯(lián)公司2013年至今,公司以網站制作、網站建設、系統(tǒng)開發(fā)、網絡推廣、文化傳媒、企業(yè)宣傳、平面廣告設計等為主要業(yè)務,適用行業(yè)近百種。服務企業(yè)客戶近1000家,涉及國內多個省份客戶。擁有多年網站建設開發(fā)經驗。為企業(yè)提供專業(yè)的網站建設、創(chuàng)意設計、宣傳推廣等服務。 通過專業(yè)的設計、獨特的風格,為不同客戶提供各種風格的特色服務。

  1. 端口可自定義 默認80

  2. 線程可自定義 默認10

  3. 使用了隊列存消息

#-*-coding=utf-8-*-
# __author__  = 'sanr'
# __email__   = '5754190@qq.com'
# __url__     = 'http://0x007.blog.51cto.com/'
# __version__ = '2.0'
import requests
import re
import sys
from threading import Thread,Lock
import Queue
import chardet
import netaddr
import socket
import struct
import optparse
import os
import time


lock = Lock()

q = Queue.Queue()

def ip2int(addr):
	return struct.unpack("!I", socket.inet_aton(addr))[0]
def int2ip(addr):
	return socket.inet_ntoa(struct.pack("!I", addr))
 
def int_dec(pagehtml):
    '''
	智能獲取頁面編碼
	第一步查找charset
	第二步使用chardect智能匹配
	'''
	charset = None
	if pagehtml != '':
		# print 'use charset dect'
		enc = chardet.detect(pagehtml)
		# print 'enc= ', enc
		if enc['encoding'] and enc['confidence'] > 0.9:
			charset = enc['encoding']

		if charset == None:
			charset_re = re.compile("((^|;)\s*charset\s*=)([^\"']*)", re.M)
			charset=charset_re.search(pagehtml[:1000]) 
			charset=charset and charset.group(3) or None

		# test charset
		try:
			if charset:
				unicode('test',charset,errors='replace')
		except Exception,e:
			print 'Exception',e
			charset = None
	# print 'charset=', charset
	return charset


def http_banner():

	while True:
		try:
			if q.qsize() == 0:
				break;
			ip = q.get()
			
			url='http://%s:%s'%(ip,port)
			url=requests.get(url,timeout=2)	

			body = url.content
			
			charset = None
			if body != '':
				charset = int_dec(body)

			if charset == None or charset == 'ascii':
				charset = 'ISO-8859-1'

			if charset and charset != 'ascii' and charset != 'unicode':
				try:
					body = unicode(body,charset,errors='replace')
				except Exception, e:
					body = ''
			#獲取狀態(tài)碼
			Struts=url.status_code
			#獲取webserver信息
			Server=url.headers['server'][0:13]
			#獲取title
			if Struts==200 or Struts==403 or Struts==401:
				title=re.findall(r"(.*)<\/title>",body)
				if len(title):
					title = title[0].strip()
				else:
					title = ''
				#輸出加鎖 防止第二行輸入
				#申請鎖
				lock.acquire()
				print ('%s\t%d\t%-10s\t%s'%(ip.lstrip('http://'),Struts,Server,title))
				#釋放鎖
				lock.release()
		except (requests.HTTPError,requests.RequestException,AttributeError,KeyError),e:
			pass


def main(ips,threads=10):
	if '-' in ips:
		start, end = ips.split('-')
		startlong = ip2int(start)
		endlong = ip2int(end)
		ips = netaddr.IPRange(start,end)
		for ip in list(ips):
			q.put(str(ip))
	elif '/'	in ips:
		ips = netaddr.IPNetwork(ips)
		for ip in ips:
			q.put(str(ip))
			
	ths = []
	for i in xrange(threads):
		th = Thread(target=http_banner,name='thread'+str(i))
		th.start()
		ths.append(th)
		
if __name__ == '__main__':
	parser = optparse.OptionParser('usage: %prog [options] target')
	parser.add_option('-p', '--port', dest='port', default='80',type='string', help='Port.default = 80')
	parser.add_option('-t', '--threads', dest='threads_num',default=10, type='int',help='Number of threads. default = 10')
	(options,args) = parser.parse_args()
	if len(args) < 1:
		parser.print_help()
		print 'usage: python %s 218.92.227.1-218.92.227.254'%os.path.basename(sys.argv[0])
		print 'usage: python %s 218.92.227.1/24 '%os.path.basename(sys.argv[0])
		print 'usage: python %s 218.92.227.1/24 -p 8080'%os.path.basename(sys.argv[0])
		print 'usage: python %s 218.92.227.1/24 -t 100 -p 8080'%os.path.basename(sys.argv[0])

		sys.exit(0)
	ips=args[0]
	port=options.port
	threads = options.threads_num
	main(ips,int(threads))	
	</pre><p></p><p></p>            
            
                        <br>
            網頁標題:http_banner獲取2.0            <br>
            標題鏈接:<a href="http://weahome.cn/article/jehosh.html">http://weahome.cn/article/jehosh.html</a>
        </div>
    </div>
</div>
<div   id="squ6kqw"   class="other container">
    <h3>其他資訊</h3>
    <ul>
        <li>
                <a href="/article/dicoiec.html">androidlame的簡單介紹</a>
            </li><li>
                <a href="/article/dicoije.html">移動+html5源碼 移動端html</a>
            </li><li>
                <a href="/article/dicoipg.html">威聯(lián)通使用Linux命令 威聯(lián)通vmware</a>
            </li><li>
                <a href="/article/dicoipp.html">jquery去除轉義字符 jquery去除屬性</a>
            </li><li>
                <a href="/article/dicoipi.html">html5種樹源碼 漂亮html5樹形結構</a>
            </li>    </ul>
</div>
<div   id="squ6kqw"   class="footer">
    <div   id="squ6kqw"   class="foota container">
        <div   id="squ6kqw"   class="foot_nav fl col-lg-8 col-md-8 col-sm-12 col-xs-12">
            <ul>
                <li id="squ6kqw"    class="col-lg-3 col-md-3 col-sm-3 col-xs-6">
                    <h3>網站制作</h3>
                    <a  target="_blank">成都網站制作</a><a  target="_blank">網站制作公司</a><a  target="_blank">溫江網站制作</a><a  target="_blank">網站制作</a><a  target="_blank">網站制作報價</a><a  target="_blank">手機網站制作</a>                </li>
                <li id="squ6kqw"    class="col-lg-3 col-md-3 col-sm-3 col-xs-6">
                    <h3>企業(yè)服務</h3>
                    <a  target="_blank">藥房許可證</a><a  target="_blank">鏈接買賣</a><a  target="_blank">免費收錄</a><a  target="_blank">免費收錄網站</a><a  target="_blank">軟文平臺</a><a  target="_blank">買友情鏈接</a>                </li>
                <li id="squ6kqw"    class="col-lg-3 col-md-3 col-sm-3 col-xs-6">
                    <h3>網站建設</h3>
                    <a  target="_blank">高端網站建設</a><a  target="_blank">成都網站建設</a><a  target="_blank">南充網站建設</a><a  target="_blank">成都營銷型網站建設</a><a  target="_blank">物流公司網站建設方案</a><a  target="_blank">網站建設公司</a>                </li>
                <li id="squ6kqw"    class="col-lg-3 col-md-3 col-sm-3 col-xs-6">
                    <h3>服務器托管</h3>
                    <a  target="_blank">成都機柜租用</a><a  target="_blank">重慶服務器托管</a><a  target="_blank">服務器托管機柜</a><a  target="_blank">貴安電信機房</a><a  target="_blank">綿陽服務器托管</a><a  target="_blank">綿陽服務器托管</a>                </li>
            </ul>
        </div>
        <div   id="squ6kqw"   class="footar fl col-lg-4 col-md-4 col-sm-12 col-xs-12">
            <p>全國免費咨詢:</p>
            <b>400-028-6601</b>
            <p>業(yè)務咨詢:028-86922220 / 13518219792</p>
            <p>節(jié)假值班:18980820575 / 13518219792</p>
            <p>聯(lián)系地址:成都市太升南路288號錦天國際A幢1002號</p>
        </div>
    </div>
    <div   id="squ6kqw"   class="footb">
        <div   id="squ6kqw"   class="copy container">
            <div   id="squ6kqw"   class="fl">Copyright ? 成都創(chuàng)新互聯(lián)科技有限公司重慶分公司  <a  target="_blank">渝ICP備2021005571號</a></div>
            <!--<div   id="squ6kqw"   class="fr"><a  target="_blank">成都網站建設</a>:<a  target="_blank">創(chuàng)新互聯(lián)</a></div>-->
        </div>
    </div>
    <div   id="squ6kqw"   class="link">
        <div   id="squ6kqw"   class="container">
            友情鏈接::
            <a  target="_blank">成都網站建設</a>
            <a  target="_blank">重慶網站建設</a>
            <a href="">四川網站建設</a>
            <a href="">重慶建設網站</a>
            <a  target="_blank">移動服務器托管</a>
            <a  target="_blank">成都服務器托管</a>
            <a  target="_blank">云服務器</a>
            <a  target="_blank">廣告設計制作</a>
            <a  target="_blank">重慶網頁設計</a>
            <a  target="_blank">重慶做網站</a>
            <a  target="_blank">重慶網站制作</a>
            <a href="">重慶網站建設</a>
            <a href="">重慶網站公司</a>
            <a href="">渝中網站制作</a>
            <a href="">重慶網站設計</a>
        </div>
    </div>
</div>
<div   id="squ6kqw"   class="foot">
    <ul class="public-celan">
        <li>
            <a  target="_blank" class="a1 db tc">
                <img src="/Public/Home/img/icon-23.png" alt="" class="db auto">
                <span id="squ6kqw"    class="span-txt">在線咨詢</span>
            </a>
        </li>
        <li>
            <a href="tel:18980820575" class="a1 db tc">
                <img src="/Public/Home/img/icon-24.png" alt="" class="db auto">
                <span id="squ6kqw"    class="span-txt">電話咨詢</span>
            </a>
        </li>
        <li>
            <a target="_blank" href="tencent://message/?uin=1683211881&Site=&Menu=yes" class="a1 db tc">
                <img src="/Public/Home/img/icon-25.png" alt="" class="db auto">
                <span id="squ6kqw"    class="span-txt">QQ咨詢</span>
            </a>
        </li>
        <li>
            <a target="_blank" href="tencent://message/?uin=532337155&Site=&Menu=yes" class="a1 db tc public-yuyue-up">
                <img src="/Public/Home/img/icon-26.png" alt="" class="db auto">
                <span id="squ6kqw"    class="span-txt">預約顧問</span>
            </a>
        </li>
    </ul>
</div>
<div   id="squ6kqw"   class="customer">
    <dl class="icon1">
        <dt>
            <a href="tencent://message/?uin=1683211881&Site=&Menu=yes">
                <i class="iconT"><img src="/Public/Home/img/QQ.png" alt=""></i>
                <p>在線咨詢</p>
            </a>
        </dt>
    </dl>
    <dl class="icon2">
        <dt><i><img src="/Public/Home/img/weixin.png" alt=""></i><p>微信咨詢</p></dt>
        <dd><img src="/Public/Home/img/ewm.png"></dd>
    </dl>
    <dl class="icon3">
        <dt><i><img src="/Public/Home/img/dianhua.png" alt=""></i><p>電話咨詢</p></dt>
        <dd>
            <p>028-86922220(工作日)</p>
            <p>18980820575(7×24)</p>
        </dd>
    </dl>
    <dl class="icon4">
        <dt class="sShow">
            <a href="tencent://message/?uin=244261566&Site=&Menu=yes">
                <i><img src="/Public/Home/img/dengji.png" alt=""></i><p>提交需求</p>
            </a>
        </dt>
    </dl>
    <dl class="icon5">
        <dt class="gotop">
            <a href="#top">
                <i><img src="/Public/Home/img/top.png" alt=""></i><p>返回頂部</p>
            </a>
        </dt>
    </dl>
</div>

<footer>
<div class="friendship-link">
<p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p>
<a href="http://weahome.cn/" title="真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆">真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆</a>

<div class="friend-links">


</div>
</div>

</footer>


<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
</body><div id="5tvj5" class="pl_css_ganrao" style="display: none;"><legend id="5tvj5"><tt id="5tvj5"></tt></legend><ol id="5tvj5"><rp id="5tvj5"></rp></ol><thead id="5tvj5"><optgroup id="5tvj5"><ol id="5tvj5"><thead id="5tvj5"></thead></ol></optgroup></thead><strike id="5tvj5"><em id="5tvj5"><ruby id="5tvj5"><i id="5tvj5"></i></ruby></em></strike><pre id="5tvj5"><thead id="5tvj5"></thead></pre><em id="5tvj5"><var id="5tvj5"><big id="5tvj5"><pre id="5tvj5"></pre></big></var></em><progress id="5tvj5"><dfn id="5tvj5"><th id="5tvj5"><thead id="5tvj5"></thead></th></dfn></progress><dl id="5tvj5"><legend id="5tvj5"><tt id="5tvj5"><rp id="5tvj5"></rp></tt></legend></dl><em id="5tvj5"><var id="5tvj5"></var></em><form id="5tvj5"><ruby id="5tvj5"></ruby></form><strong id="5tvj5"><legend id="5tvj5"><sub id="5tvj5"><mark id="5tvj5"></mark></sub></legend></strong><ins id="5tvj5"><pre id="5tvj5"><var id="5tvj5"><strike id="5tvj5"></strike></var></pre></ins><rp id="5tvj5"></rp><style id="5tvj5"><form id="5tvj5"></form></style><sub id="5tvj5"><mark id="5tvj5"><dfn id="5tvj5"><pre id="5tvj5"></pre></dfn></mark></sub><mark id="5tvj5"><legend id="5tvj5"><b id="5tvj5"><strong id="5tvj5"></strong></b></legend></mark><span id="5tvj5"><nobr id="5tvj5"></nobr></span><label id="5tvj5"><acronym id="5tvj5"><legend id="5tvj5"><tt id="5tvj5"></tt></legend></acronym></label><track id="5tvj5"><b id="5tvj5"><video id="5tvj5"><optgroup id="5tvj5"></optgroup></video></b></track><small id="5tvj5"></small><strong id="5tvj5"><var id="5tvj5"><style id="5tvj5"><listing id="5tvj5"></listing></style></var></strong><video id="5tvj5"></video><small id="5tvj5"></small><label id="5tvj5"><strong id="5tvj5"></strong></label><pre id="5tvj5"></pre><form id="5tvj5"><ruby id="5tvj5"><i id="5tvj5"><font id="5tvj5"></font></i></ruby></form><u id="5tvj5"></u><u id="5tvj5"><strong id="5tvj5"><p id="5tvj5"><sub id="5tvj5"></sub></p></strong></u><thead id="5tvj5"></thead><legend id="5tvj5"><sub id="5tvj5"><nobr id="5tvj5"><pre id="5tvj5"></pre></nobr></sub></legend><small id="5tvj5"></small><video id="5tvj5"></video><optgroup id="5tvj5"></optgroup><ins id="5tvj5"></ins><thead id="5tvj5"></thead><acronym id="5tvj5"><div id="5tvj5"><span id="5tvj5"><mark id="5tvj5"></mark></span></div></acronym><b id="5tvj5"><listing id="5tvj5"><optgroup id="5tvj5"><sup id="5tvj5"></sup></optgroup></listing></b><u id="5tvj5"><nobr id="5tvj5"></nobr></u><nobr id="5tvj5"><legend id="5tvj5"></legend></nobr><mark id="5tvj5"><optgroup id="5tvj5"><th id="5tvj5"><i id="5tvj5"></i></th></optgroup></mark><dfn id="5tvj5"><form id="5tvj5"></form></dfn><label id="5tvj5"><dl id="5tvj5"></dl></label><nobr id="5tvj5"><div id="5tvj5"><b id="5tvj5"><listing id="5tvj5"></listing></b></div></nobr><strong id="5tvj5"><strong id="5tvj5"><ol id="5tvj5"><progress id="5tvj5"></progress></ol></strong></strong><dl id="5tvj5"><legend id="5tvj5"><tt id="5tvj5"><nobr id="5tvj5"></nobr></tt></legend></dl><label id="5tvj5"><pre id="5tvj5"></pre></label><th id="5tvj5"><style id="5tvj5"><address id="5tvj5"><ruby id="5tvj5"></ruby></address></style></th><strong id="5tvj5"><div id="5tvj5"><span id="5tvj5"><mark id="5tvj5"></mark></span></div></strong><pre id="5tvj5"><thead id="5tvj5"><font id="5tvj5"><track id="5tvj5"></track></font></thead></pre><address id="5tvj5"><output id="5tvj5"><u id="5tvj5"><dl id="5tvj5"></dl></u></output></address><pre id="5tvj5"></pre><address id="5tvj5"><track id="5tvj5"></track></address><var id="5tvj5"></var><strike id="5tvj5"></strike><sup id="5tvj5"><strike id="5tvj5"></strike></sup><font id="5tvj5"></font><label id="5tvj5"></label><legend id="5tvj5"><tt id="5tvj5"><strong id="5tvj5"><meter id="5tvj5"></meter></strong></tt></legend><font id="5tvj5"></font><i id="5tvj5"></i><strike id="5tvj5"><acronym id="5tvj5"><div id="5tvj5"><thead id="5tvj5"></thead></div></acronym></strike><rp id="5tvj5"></rp><form id="5tvj5"><meter id="5tvj5"></meter></form><output id="5tvj5"><label id="5tvj5"><strong id="5tvj5"><menuitem id="5tvj5"></menuitem></strong></label></output><pre id="5tvj5"></pre><span id="5tvj5"><thead id="5tvj5"></thead></span><nobr id="5tvj5"></nobr><progress id="5tvj5"><optgroup id="5tvj5"><ol id="5tvj5"><mark id="5tvj5"></mark></ol></optgroup></progress><tt id="5tvj5"><nobr id="5tvj5"></nobr></tt><thead id="5tvj5"></thead><font id="5tvj5"><output id="5tvj5"></output></font><listing id="5tvj5"><div id="5tvj5"></div></listing><em id="5tvj5"><output id="5tvj5"></output></em><b id="5tvj5"></b><sup id="5tvj5"><mark id="5tvj5"><optgroup id="5tvj5"><ol id="5tvj5"></ol></optgroup></mark></sup><pre id="5tvj5"></pre><ol id="5tvj5"></ol><em id="5tvj5"></em><strike id="5tvj5"><form id="5tvj5"></form></strike><tt id="5tvj5"><rp id="5tvj5"><dfn id="5tvj5"><sup id="5tvj5"></sup></dfn></rp></tt><pre id="5tvj5"><ins id="5tvj5"></ins></pre><strike id="5tvj5"></strike><p id="5tvj5"></p><big id="5tvj5"><em id="5tvj5"><track id="5tvj5"><label id="5tvj5"></label></track></em></big><track id="5tvj5"><thead id="5tvj5"><font id="5tvj5"><var id="5tvj5"></var></font></thead></track><pre id="5tvj5"></pre><label id="5tvj5"><listing id="5tvj5"><strong id="5tvj5"><dfn id="5tvj5"></dfn></strong></listing></label><b id="5tvj5"></b><sup id="5tvj5"><i id="5tvj5"></i></sup><listing id="5tvj5"><p id="5tvj5"><thead id="5tvj5"><nobr id="5tvj5"></nobr></thead></p></listing><ol id="5tvj5"><i id="5tvj5"></i></ol><style id="5tvj5"><label id="5tvj5"></label></style><menuitem id="5tvj5"></menuitem><sup id="5tvj5"></sup><sup id="5tvj5"></sup><small id="5tvj5"><dfn id="5tvj5"></dfn></small><nobr id="5tvj5"><pre id="5tvj5"></pre></nobr><form id="5tvj5"><acronym id="5tvj5"></acronym></form><thead id="5tvj5"><listing id="5tvj5"><legend id="5tvj5"><thead id="5tvj5"></thead></legend></listing></thead><address id="5tvj5"><output id="5tvj5"></output></address></div>
</html>
<script>
    $(".con img").each(function(){
        var src = $(this).attr("src");    //獲取圖片地址
        var str=new RegExp("http");
        var result=str.test(src);
        if(result==false){
            var url = "https://www.cdcxhl.com"+src;    //絕對路徑
            $(this).attr("src",url);
        }
    });
    window.onload=function(){
        document.oncontextmenu=function(){
            return false;
        }
    }
</script>